The HTML <frameset> element's rows attribute defines the number and height of rows in the frameset. Values can be set in pixels, percentages, or using an asterisk (*) for flexible distribution of available space.
Syntax
<frameset rows="pixels|%|*">Attribute Values:
- pixels: The height of the row is set in terms of pixels. Example: "50px" or "50".
- %: The height of the row is set in terms of percentage. Example "70%".
- *: The height of the row is set to all available space.
Note: The <frameset> rows Attribute is not supported by HTML 5.
Example: In this example we creates a frameset with three rows using the rows attribute, dividing the viewport into 20%, 60%, and 20% sections, each loading a different image (attr1.png, gradient3.png, and col_last.png).
<!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>
Output:

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