vinodsrivastava.wordpress.com
HTML- FRAME
Frames
Frames can divide the screen into separate windows. Frames allow you to split the browsers window up in to as many sections as you like, each capable of displaying its own document..
The attributes values ( separated with commas ) can be in the form of
1. pixels for each frame as in cols="400,300" or rows="100,700" 2. percentage as in cols="50%,50%" or rows="10%,70%,20%" 3. use the '*' for a variable value as in cols="100,*" or rows= “100,*,10%”
tag is used to define each frame created using frameset tag in order for its attributes. The frame tag is closed with and then the frame set is closed with
Frame tag is always define inside Frameset tag. No of frame tag to be used inside the frameset will same as the values set in cols / rows attribute of frame set MMWT-HTML-FRAME
FRAMESET's attributes attribute values used for cols="50%,50%" setting the number of columns (each cols="” cols="400,300” separated with a comma ) cols="100,*" rows="100,700" rows="” setting the number of rows rows="10%,90%” border="2" setting the frames border for Internet border="" border=”0” for no Explorer in pixels border frameborder="2" setting the frames border for Netscape in frameborder="2" frameborder= “0” for pixels no border
FRAME's attributes attribute value used for 0 or No to hide, 1 or Yes to show a border between frameborder="" 0 or 1 frames If set to 0 the frame will be displayed flush with the left marginwidth="" 0 - 100 and right edge of the frame If set to 10 , there will be a space (10 pixels wide) marginheight="" 0 - 100 between the window and the top of the frame Assigning a name to your frames so you can use name="" any name them as targets with the tag noresize none Disallowing the user to resize the frame. Turning the scrollbars on the right side of each frame scrolling="" auto-on-off on or off. Sets the file name and its location on your hard src="" filename.html drive,(or the servers hard drive) to be displayed in the frame. Code Display
MMWT-HTML@ VKS-Learning Hub
Page 2 MMWT-HTML-FRAME
botleft.html botright.html
This frameset document contains:
Page 3 MMWT-HTML-FRAME
Tag contain the html content which will be displayed if browser does not support frame document. It’s a container tag. Closed by
If we don’t use Tag and Browser does not support Frames, in that case Error page will be displayed by the browser
TAG basically helps stopping the error page instead displayed the content which is basically a link to a non frame page
Tag is used to link a frame/Window where the hyperlinked webpage of other frame will be displayed . is used to open all link document to be open in particular frame of frameset/ Window. is always declared in
Page 4