1. Home
  2. Computing & Technology
  3. Web Design / HTML

<frame />

By Jennifer Kyrnin, About.com

<frame /> Description:

The <frame /> tag creates frames within a frameset.

<frame /> Web Browser Support:

<frame /> Attributes:

<frame /> End Tag:

None. </frame> is a singleton tag

<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> element.
  • Attributes like bordercolor and frameborder are better avoided. You should use CSS instead.

More <frame /> Inframeation:

Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The frame Element - create frames - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.