HTML | <frameset> rows Attribute

The HTML <frameset> rows Attribute is used to specify the size and the number of rows in a frameset. The height of each frame is separated by a comma.

Syntax:

<frameset rows="pixels|%|*">

Attribute Values:

  • pixels: The height of row is set in terms of pixels. Example: “50px” or “50”.
  • %: The height of row is set in terms of percentage. Example “70%”.
  • *: The height of row is set to all available space.

Note: The <frameset> rows Attribute is not supported by HTML 5.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <title>HTML frameset rows Attribute</title>
</head>
  
<!-- frameset attribute starts here -->
<frameset rows="20%, 60%, 20%">
    <frame name="top" src="attr1.png" />
    <frame name="main" src="gradient3.png" />
    <frame name="bottom" src="col_last.png" />
</frameset>
<!-- frameset attribute ends here -->
  
</html>

chevron_right


Output:

Supported Browsers: The browser supported by HTML <frameset> rows Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.