#FramesinHTML #htmlframesettag #htmlframetag
Frames:-
Frames are used to divide browser window into multiple sections where each section can load a separate HTML document.
frameset element:-Defines a collection of frames and other framesets. Each frame element can hold a separate document. The frameset element specifies HOW MANY columns or rows there will be in the frameset and HOW MUCH percentage/pixels of space will occupy each of them.
Attributes of frameset element:-
Rows:-It specifies horizontal frames in the frameset.
Cols:-It specifies vertical frames in the frameset.
Rows an cols can be specified in terms of pixels , % of available screen size and relative value(*). * specifies the remaining portion.
frame element:-It specifies the web page to be displayed in the frameset.
Attributes of frame element:-
Frameborder=1|0 It specifies whether or not to display a border. Default is 1.
Src=”url”. It specifies the URL of the document.
Scrolling=”yes”|”no”|”auto”. It specifies whether or not to display scrollbars in the frame. Default is auto.
Marginheight=”pixels”. Specifies the top and bottom margins of a frame.
Marginwidth=”pixels”. Specifies the left and right margins of a frame.
Name:-This attribute allows you to give a name to a frame. It is used to indicate which frame a document should be loaded into. This is especially important when you want to create links in one frame that load pages into an another frame, in which case the second frame needs a name to identify itself as the target of the link. Frames are mainly useful to maintain a part of the webpage as static and remaining part of the webpage as dynamic.
noframes:- If the browser does not supports frames concept then the content of noframes will be displayed.