Webmaster
| |
| <frame> | |
| Defines a frame. | |
| Starting/ending tag | Required/Illegal. |
| Attributes | Attributes name="...": Frame name. src="...": Source document to be displayed in a frame. frameborder="...": Toggles the border between frames (0, 1). marginwidth="...": the horizontal space between the frame content and border. marginheight="...": The vertical space between the frame content and border. noresize: Disables sizing. scrolling="...": Defines the scrollbar presence (auto, yes, no). |
| Empty | Yes |
| Notes | In XHTML 1.0, this tag should be in the form <frame /> to ensure compatibility with older browsers. |
| Example | <frameset cols="20%,80%"> <frame name="left" src="menu.html"> <frame name="right" src="home.html"> </frameset> |
| <frameset>...</frameset> | |
| Defines the layout of frames within a window. | |
| Starting/ending tag | Required/Required |
| Attributes | Attributes rows="...": Number of rows. cols="...": Number of columns. onload="...": Intrinsic event triggered when the document loads. onunload="...": Intrinsic event triggered when the document unloads. |
| Empty | No |
| Notes | Framesets can be nested. |
| Example | <frameset cols="20%,80%"> <frame name="left" src="menu.html"> <frame name="right" src="home.html"> </frameset> |
| <iframe>...</iframe> | |
| Creates an inline frame. | |
| Starting/ending tag | Required/Required |
| Attributes | Attributes name="...": Frame name. src="...": Source document to be displayed in a frame. frameborder="...": Toggles the border between frames (0, 1). marginwidth="...": Width space between the frame border and the content. marginheight="...": Height space between the frame border and the content. scrolling="...": Defines the scrollbar presence (auto, yes, no). height="...": Height. width="...": Width. |
| Deprecated | Deprecated align="...": Controls alignment (left, center, right, justify). |
| Empty | No |
| Example | <iframe src="http://www.my_site.com" bame="zone1" height="350" width="450"> Sorry, but your browser does not support local frames. </iframe> |
| <noframes>...</noframes> | |
| Alternative content to display when frames are not supported. | |
| Starting/ending tag | Required/Required |
| Attributes | AttributesNone |
| Empty | No |
| Example | <noframe>Here is the code used for browsers that do not support frames</noframe> |
| |