Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Basics Html frames
Navigation menus are one of the basic building blocks for any web or mobile app.

UNSUPPORTED
in HTML5

Tag Description

The frame tag is used to define one particular window (frame) within a frameset.

This tag has the form:

<frame frameborder="{ 0 | 1 }"
  longdesc="long description"
  marginheight="height (px)"
  marginwidth="width (px)"
  name="name"
  noresize="noresize"
  scrolling="{ auto | no | yes}"
  src="contents_src" />

HTML5 and HTML4.01 Differences

Not supported in HTML5.

Attributes

Attribute Value Description
frameborder 0
1
Specifies whether or not to display a border around a frame
longdesc URL Specifies a page that contains a long description of the content of a frame
marginheight pixels Specifies the top and bottom margins of a frame
marginwidth pixels Specifies the left and right margins of a frame
name name Specifies the name of a frame
noresize noresize Specifies that a frame cannot be resized
scrolling yes
no
auto
Specifies whether or not to display scrollbars in a frame
src URL Specifies the URL of the document to show in a frame

Global Attributes

Attribute Value Description
class classname Sets the classname of the element
id id Sets a unique id for the element
style style_def Sets the inline style of the element
title text Sets extra information about the element

Event Attributes

None supported.

Examples

The following example shows the basic use of this tag:

<html>
<frameset cols="30%,70%">
<frame src="left_frame.htm" />
<frame src="right_frame.htm" />
</frameset>
</html>

Browser Support

Chrome Firefox IE Safari Opera

Doctype Declaration Support

The following table lists the doctype declarations this element may appear in:

HTML4.01 / XHTML1.0 XHTML 1.1 HTML 5
Traditional Strict Frameset

Miscellaneous Information

Defined In: HTML4.01
Empty Tag: Yes