Required | Tag Specific | Core | Focus | Events | Language |
---|---|---|---|---|---|
frameborder longdesc marginheight marginwidth name1 noresize scrolling src | id class style title | ||||
Notes: 1. deprecated in XHTML. |
Attribute | Description |
---|---|
frameborder | The frameborder attribute specifies whether or not separators should be drawn between this frame and the frames that surround it. Possible values are "1" or "0": "1" = separators should be drawn. "0" = separators should not be drawn. The default value is "1". HTML <frame> tag example using the frameborder attribute. <frameset cols="20%,30%,50%"> <frame src="text.html" frameborder="0"> <frame src="text.html" frameborder="0"> <frame src="text.html" frameborder="1"> </frameset> <noframes></noframes> XHTML <frame> tag example using the frameborder attribute. <frameset cols="20%,30%,50%"> <frame src="text.html" frameborder="0" /> <frame src="text.html" frameborder="0" /> <frame src="text.html" frameborder="1" /> </frameset> <noframes></noframes> |
longdesc | The longdesc attribute is used to specify the URL of a long description for the frame. HTML <frame> tag example using the longdesc attribute. <frame src="../html/span_tag.html" longdesc="../html/frame_info.html">
XHTML <frame> tag example using the longdesc attribute. <frame src="../html/span_tag.html" longdesc="../html/frame_info.html" /> |
marginheight | The marginheight attribute is used to specify the size of the margin, in pixels, between the frame content and the top and bottom of the frame. HTML <frame> tag example using the marginheight attribute. <frameset cols="50%,50%"> <frame src="text.html" marginheight="5"> <frame src="text.html" marginheight="100"> </frameset> <noframes></noframes> XHTML <frame> tag example using the marginheight attribute. <frameset cols="50%,50%"> <frame src="text.html" marginheight="5" /> <frame src="text.html" marginheight="100" /> </frameset> <noframes></noframes> |
marginwidth | The marginwidth attribute is used to specify the size of the margin, in pixels, between the frame content and the left and right sides of the frame. HTML <frame> tag example using the marginwidth attribute. <frameset rows="50%,50%"> <frame src="text.html" marginwidth="5"> <frame src="text.html" marginwidth="100"> </frameset> <noframes></noframes> XHTML <frame> tag example using the marginwidth attribute. <frameset rows="50%,50%"> <frame src="text.html" marginwidth="5" /> <frame src="text.html" marginwidth="100" /> </frameset> <noframes></noframes> |
name | The name attribute is used to assign a name to the frame. The frame can be specified as the target for links by using its name. The name attribute has been deprecated in XHTML but not HTML. For XHTML, the id attribute can be used instead. To increase forward and backward compatibility, both the name and id attributes can be set to the same value. HTML <frame> tag example using the name attribute. <frameset cols="50%,50%">
<frame src="frame_name.html">
<frame src="text.html" name="two" id="two">
</frameset>
<noframes></noframes> XHTML <frame> tag example using the name attribute. <frameset cols="50%,50%">
<frame src="frame_name.html" />
<frame src="text.html" name="two" id="two" />
</frameset>
<noframes></noframes> Note: deprecated in XHTML. |
noresize | The noresize attribute can be used to prevent the frame from being resized by the user. HTML <frame> tag example using the noresize attribute. <frameset rows="33%,33%,*">
<frame src="text.html" noresize="noresize">
<frame src="text.html">
<frame src="text.html">
</frameset>
<noframes></noframes> XHTML <frame> tag example using the noresize attribute. <frameset rows="33%,33%,*">
<frame src="text.html" noresize="noresize" />
<frame src="text.html" />
<frame src="text.html" />
</frameset>
<noframes></noframes> |
scrolling | The scrolling attribute is used to specify whether or not scrolling mechanisms (typically scroll bars) are provided for the frame. Possible values are "auto", "no", or "yes": "auto" = scrolling mechanisms provided when necessary. "no" = do not provide scrolling mechanisms. "yes" = provide scrolling mechanisms. The default value is "auto". HTML <frame> tag example using the scrolling attribute. <frameset rows="50%,50%"> <frame src="text.html" scrolling="yes"> <frame src="../html/div_tag/" scrolling="no"> </frameset> <noframes></noframes> XHTML <frame> tag example using the scrolling attribute. <frameset rows="50%,50%"> <frame src="text.html" scrolling="yes" /> <frame src="../html/div_tag/" scrolling="no" /> </frameset> <noframes></noframes> |
src | The src attribute specifies the URL of the web page that will be displayed in the frame. HTML <frame> tag example using the src attribute. <html> <head> <title>HTML Test</title> </head> <frameset cols="40%,60%"> <frame src="../html/div_tag/" title="sample frame"> <frame src="../html/span_tag/" title="sample frame"> </frameset> <noframes></noframes> </html> XHTML <frame> tag example using the src attribute. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>HTML Test</title> </head> <frameset cols="40%,60%"> <frame src="../html/div_tag/" title="sample frame" /> <frame src="../html/span_tag/" title="sample frame" /> </frameset> <noframes></noframes> </html> |
id | The id attribute assigns a unique name to a tag. This allows style sheets or scripts to reference the tag. See id Example |
class | The class attribute assigns a class name to a tag. The class name does not need to be unique. More than one tag can have the same class name. This allows style sheets or scripts to reference multiple tags with a single class name. See class Example |
style | The style attribute specifies styles for the tag. For Cascading Style Sheets (CSS), the syntax is name:value. Each name:value pair is separated by semicolons. See style Example |
title | The title attribute specifies additional information about the tag. It is common for browsers to display the title when the pointing device stops over the object. See title Example |