1. Computing & Technology

Discuss in my forum

<frame />

By , About.com Guide

FRAME Description:

The FRAME tag creates frames within a frameset.

FRAME Web Browser Support:

HTML Versions

FRAME Attributes:

Global attributes and:

Plus, there is one attributes that is browser specific. This attribute is not part of any HTML standard. You should use CSS instead of these attributes:

FRAME End Tag:

None, the FRAME tag is a singleton tag. You should include a trailing slash in XHTML documents.

FRAME Contents:

None.

FRAME Valid Context:

The FRAME tag is valid within the following tags:
frameset

FRAME Usage:

standard frame

<frame src="frame1.html" name="frame1" scrolling="no" frameborder="1" />

FRAME Special Notes:

  • If you use frames, you must use the frameset DTD:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  • When using frames, remember that they are not accessible, and you should always use a NOFRAMES tag.
  • Attributes like bordercolor and frameborder are better avoided. You should use CSS instead.

More FRAME Inframeation:

©2012 About.com. All rights reserved.

A part of The New York Times Company.