Basic HTML

Advance HTML

HTML Tags Reference

HTML Code Generator


HTML <frameset> Tag


HTML <frameset> tag define a split specific size the browser window in several individual frames.

HTML <frameset> tag remove in HTML5 specification.


Frameset Example.1       View Result

The frameset (frame_example1.php):

 
<html>
<head>
<title>Frameset Example.1<title>
</head>
<frameset rows = "35%, 65%">
  <frame src ="frame_1.html" />
  <frame src ="frame_2.html" />
</frameset>
</html>

The Frame.1 (frame_1.html):

 
<html>
<body style="background-color:#ff9900;">
<h2 align="center">First frame (frame_1.php)</h2>
</body>
</html>

The Frame.2 (frame_2.html):

 
<html>
<body style="background-color:#ffcc00;">
<h2 align="center">Second frame (frame_2.php)</h2>
</body>
</html>

Frame Example.1 View Result



Frameset Example.2       View Result

The frameset (frame_example2.html):

 
<html>
<head>
<title>Frameset Example.2<title>
</head>
<frameset rows = "35%, 65%">
       <frameset cols = "50%, 50%">
  <frame src ="frame_3.html" />
  <frame src ="frame_4.html" />
      </frameset>
</frameset>
</html>

The Frame.1 (frame_1.html):

 
<html>
<body style="background-color:#ff9900;">
<h2 align="center">First frame (frame_1.html)</h2>
</body>
</html>

The Frame.2 (frame_3.html):

 
<html>
<body style="background-color:#a08029;">
<h2 align="center">Second frame (frame_3.html)</h2>
</body>
</html>

The Frame.3 (frame_4.html):

 
<html>
<body style="background-color:#ffcc00;">
<h2 align="center">Third frame (frame_4.html)</h2>
</body>
</html>

Frame Example.1 View Result


<frameset> tag Attributes

<body> tag is not used in any HTML webpage that contains <frameset> tag.

Attributes Value Description
cols "50%,50%" Use to specify the number of column in which you divide on page. Its value supported pixels and percentage.
rows "50%,50%" se to specify the number of row in which you divide on page. Its value supported pixels and percentage.
noresize
 
Used to you do not want to frames resize.
border "Size_px" Display size of border thickness.
frame bordercolor "purple" Display border color on dived individual frames.

Dynamic Attributes

<frameset> tag supported following Dynamic attributes.

Attributes Value Description
id ID_Name Declared unique id for the element.
class Predefined_Class Used in Cascading Style Sheet (CSS).
style style_Attributes CSS code specify inline the HTML element is presented.
title Title_Description Display on the "tooltip" for your elements.

<frame> tag does not supported following Event attributes.: