
Opening tag : <FRAME>
Closing tag: -
Purpose:
Frames are a simple way of setting your page up, often using separate frames for navigation for example. That way when a user moves around your site they don't need to reload the same navigation pane for each page. Many search engines do not correctly index framed sites, and frames don't always appear consistently on different browsers. There are alternative approaches to creating frames, such as using CSS, so we recommend you don't use frames!
Attributes:
name=name
- Sets a unique name for your frame, which can then be referenced in a target attribute.
bordercolor=color
- Specifies the color of the border.
frameborder=bool
- Specifies if the frame should have a border.
framespacing=#
- Specifies a number of pixels to be left blank around each frame.
marginheight=#
- Sets a top and bottom margin for the page.
marginwidth=#
- Sets a left and right margin for the page.
noresize
- Prevents the user from resizing the frame.
scrolling=value
- Sets whether scrollbars should appear around the page - Options are YES, NO and AUTO.
Example:
<frameset>
<frame name="left" src="leftnav.htm">
<frame name="right" src="content.htm">
<noframes>
<body>
This is for browsers that can't use frames!
</body>
</noframes>
</frameset>
Related Tags:
<Frameset></Frameset> - Frameset Tag.
<Noframes></Noframes> - Noframes Tag.
Back to:
Alphabetical Guide
Guide By Type