HTML <frame> Tag


The <frame> tag is used to specify each frame within a frameset. For example, you can have a left frame for navigation and a right frame for the main content. For each frame, you specify the frame with the frame tag.

This tag is not supported in HTML5

Example Code:
<frameset cols="25%,*,25%">
  <frame src="frame_a.php" />
  <frame src="frame_b.php" />
  <frame src="frame_c.php" />
Attribute Definition
name Assigns a name to a frame. This is useful for loading contents into one frame from another.
longdesc A long description - this can elaborate on a shorter description specified with the title attribute.
src Location of the frame contents (for example, the HTML page to be loaded into the frame).
noresize Specifies whether the frame is resizable or not (i.e. whether the user can resize the frame or not).
scrolling Whether the frame should be scrollable or not (i.e. should scrollbars appear).
Possible values:
  • auto
  • yes
  • no
frameborder Whether the frame should have a border or not.
Possible values:
  • 1 (border)
  • 0 (no border)
marginwidth Specifies the margin, in pixels, between the frame's contents and it's left and right margins.
marginheight Specifies the margin, in pixels, between the frame's contents and it's top and bottom margins.
class Specifies a classname for an element.
id Specifies a unique id for an element.
title Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
style Specifies an inline style for an element.