<<

vinodsrivastava..com

HTML-

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..

tag is used to divide the window into different section in rows and column. Each section can open independent webpage in it. tag use attribute rows="" for creating rows, or cols=" " for creating columns.

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. drive,(or the servers hard drive) to be displayed in the frame. Code Display top

MMWT-HTML@ VKS-Learning Hub

Page 2 MMWT-HTML-FRAME Topleft.htm Topright. l html Bottom.html Top.html left.html right.html Topleft.htm Topright.htm l l

botleft.html botright.html

<P>This frameset document contains: <UL> <LI><A href="frame1.html"> frame1.html Some neat contents</A> <LI><IMG src=" frame2.gif" alt="A neat Frame3.html image"> <LI><A href="frame3.html"> Some other neat contents</A> </UL> frame2.gif

MMWT-HTML@ VKS-Learning Hub

Page 3 MMWT-HTML-FRAME

topleft.htm topright.htm brtl.htm brtr.htm botleft.htm botrbot.htm

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 tag of HTML Webpage Page

MMWT-HTML@ VKS-Learning Hub

Page 4