Required | Tag Specific | Core | Focus | Events | Language |
---|---|---|---|---|---|
cols onload onunload rows | id class style title |
Attribute | Description |
---|---|
cols | The cols attribute specifies the number of columns and the width of each column. The value for this attribute is a comma separated list of widths. Each value in the list can be in pixels, a percentage (number followed by %), or a relative value of the remaining space (integer followed by *). When using a relative value, "*" is the same as "1*". HTML <frameset> tag example using the cols attribute. <frameset cols="100,30%,*">
<frame src="../html/form_tag/" title="sample frame">
<frame src="../html/div_tag/" title="sample frame">
<frame src="../html/span_tag/" title="sample frame">
</frameset>
<noframes></noframes> XHTML <frameset> tag example using the cols attribute. <frameset cols="100,30%,*">
<frame src="../html/form_tag/" title="sample frame" />
<frame src="../html/div_tag/" title="sample frame" />
<frame src="../html/span_tag/" title="sample frame" />
</frameset>
<noframes></noframes> |
onload | The onload attribute is used to specify a script to be be run when the frames have been loaded. |
onunload | The onunload attribute is used to specify a script to be be run when the web page has been removed. |
rows | The rows attribute specifies the number of rows and the height of each row. The value for this attribute is a comma separated list of heights. Each value in the list can be in pixels, a percentage (number followed by %), or a relative value of the remaining space (integer followed by *). When using a relative value, "*" is the same as "1*". HTML <frameset> tag example using the rows attribute. <frameset rows="80,30%,*">
<frame src="../html/form_tag/" title="sample frame">
<frame src="../html/div_tag/" title="sample frame">
<frame src="../html/span_tag/" title="sample frame">
</frameset>
<noframes></noframes> XHTML <frameset> tag example using the rows attribute. <frameset rows="80,30%,*">
<frame src="../html/form_tag/" title="sample frame" />
<frame src="../html/div_tag/" title="sample frame" />
<frame src="../html/span_tag/" title="sample frame" />
</frameset>
<noframes></noframes> |
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 |
<frameset> tag example. <frameset> tag example using the cols attribute. <frameset> tag example using the rows attribute. |