Home  >  Article  >  Web Front-end  >  How to add a set of frames in HTML?

How to add a set of frames in HTML?

PHPz
PHPzforward
2023-09-06 17:37:051532browse

How to add a set of frames in HTML?

Use the

tag to add a set of frames. The HTML 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−

Attributes

Value

Description

Cols

Column Size

Specify the number of columns and their width, you can use pixels, percentages or relative lengths. Default is 100%

Rows

Row size

specified Number of rows and their height, in pixels, percentage, or relative length. The default is 100%.

Example

You can try running the following code to add a set of frames using the

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>

The above is the detailed content of How to add a set of frames in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete