Copyright © tutorialspoint.com

HTML <frameset> tag



Advertisements

Function:

The HTML <frameset> tag is used to divide the window into frames.

Difference between HTML and XHTML:

NONE

Example:

<frameset cols="200, *">
      <frame src="/html/menu.htm" name="menu_page" />
      <frame src="/html/main.htm" name="main_page" />
</frameset>

Online Practice:

To Become more comfortable - Do Online Practice

Attributes:

AttributeValueDescription
colscolumn sizeSpecifies the number of columns and their width in either pixels, percentages, or relative lengths. Default is 100%
rowsrow sizeSpecifies the number of rows and their height in either pixels, percentages, or relative lengths. Default is 100%

Standard Attributes:

AttributeDescription
classDocument wide identifier
idDocument wide identifier
titleSpecifies a title to associate with the element.
styleHelps to include inline casecadubf style sheet.
langSets the language code.

Event Attributes:

AttributeDescription
onloadScript runs when framset is loaded
onunloadScript runs when framset is unloaded

Copyright © tutorialspoint.com