How to add a set of frames in HTML?

HTMLWeb DevelopmentFront End Technology

Use the <frameset> tag to add a set of frames. The HTML <frameset> tag is used to divide the window into frames. 

Note − This tag is not supported in HTML5. Do not use.

The following are the attributes −

Attribute
Value
Description
Cols
column size
Specifies the number of columns and their width in either pixels, percentages, or relative lengths. Default is 100%
Rows
row size
Specifies the number of rows and their height in either pixels, percentages, or relative lengths. Default is 100%.

Example

You can try to run the following code to add a set of frames using the <frameset> tag −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML frameset Tag</title>
   </head>
   <frameset cols = "300, *">
      <frame src = "/html/menu.htm" name = "menu_page" />
      <frame src = "/html/main.htm" name = "main_page" />

      <noframes>
         <body>
            Your browser does not support frames.
         </body>
      </noframes>

   </frameset>
</html>
raja
Updated on 24-Jun-2020 08:57:21

Advertisements