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

What attributes can a frameset have?

By Jennifer Kyrnin, About.com

Question: What attributes can a frameset have?

Answer:

A frameset can have several attributes:

  • id
    gives the frameset a name
  • class
    gives the frameset a class type
  • title
    provides information about the frameset
  • style
    provides specific style information about the frameset
  • onload
    defines actions that occur when the frameset is loaded
  • onunload
    defines actions that occur when the frameset is unloaded
  • rows
    defines the number of horizontal spaces in a frameset
  • cols
    defines the number of vertical spaces in a frameset

The following attributes are not in the DTD, but are recognized by most browsers:

  • border
    Netscape uses this attribute to define the border width
  • bordercolor
    Netscape uses this to define the color of the border
  • frameborder
    0 or no turns off the border 1 or yes turns it on
  • framespacing
    IE uses this attribute to define the space between frames
  • onblur
    defines actions that occur when the frameset is unselected
  • onfocus
    defines actions that occur when the frameset is selected

More Web Design / HTML Q&A

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. What attributes can a frameset have?

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

All rights reserved.