HTML: Frames

<frameset> Tag

The <frameset> tag is not supported in HTML5.

The <frameset> tag defines a frameset.

The <frameset> element holds one or more <frame> elements. Each <frame> element can hold a separate document.

<frameset cols="25%,50%,25%">
  <frame src="frame_a.htm">
  <frame src="frame_b.htm">
  <frame src="frame_c.htm">
</frameset>

The <frameset> element specifies HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them.

Attribute

Value

Description

pixels % *

Not supported in HTML5. Specifies the number and size of columns in a frameset

pixels % *

Not supported in HTML5. Specifies the number and size of rows in a frameset

<frame> Tag

The <frame> tag is not supported in HTML5.

The <frame> tag defines one particular window (frame) within a <frameset>.

Each <frame> in a <frameset> can have different attributes, such as border, scrolling, the ability to resize, etc.

Note: If you want to validate a page containing frames, be sure the <!DOCTYPE> is set to either "HTML Frameset DTD" or "XHTML Frameset DTD".

Attribute

Value

Description

0 1

Not supported in HTML5. Specifies whether or not to display a border around a frame

URL

Not supported in HTML5. Specifies a page that contains a long description of the content of a frame

pixels

Not supported in HTML5. Specifies the top and bottom margins of a frame

pixels

Not supported in HTML5. Specifies the left and right margins of a frame

text

Not supported in HTML5. Specifies the name of a frame

noresize

Not supported in HTML5. Specifies that a frame is not resizable

yes no auto

Not supported in HTML5. Specifies whether or not to display scrollbars in a frame

URL

Not supported in HTML5. Specifies the URL of the document to show in a frame

Last updated