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

<iframe></iframe>

By Jennifer Kyrnin, About.com

<iframe> Description:

The <iframe> element creates an inline frame in the XHTML document.

<iframe> Web Browser Support:

<iframe> Attributes:

<iframe> End Tag:

</iframe> REQUIRED

Contents:

CDATA alternative text for browsers that don't support the iframe tag. The following tags are valid within the <iframe> tag:
a, abbr, acronym, address, applet, b, basefont, bdo, big, blockquote, br, button, center, cite, code, dfn, dir, div, dl, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, i, iframe, img, input, isindex, kbd, label, map, menu, noframes, noscript, object, ol, p, pre, q, s, samp, script, select, small, span, strike, strong, sub, sup, table, textarea, tt, u, ul, var

<iframe> Valid Context:

The <iframe> tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

<iframe> Usage:

  • standard iframe
    <iframe src="/index.htm" width="100" height="100" name="About Web Design/HTML front page"> There is a floating frame pointing to http://webdesign.about.com/ </iframe>

<iframe> Special Notes:

  • To keep this tag accessible, be sure to include descriptive text within it.

More <iframe> Information:

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. Frames
  7. iFrames
  8. The iframe Element - inline frames - XHTML 1.0 HTML 4.0

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

All rights reserved.