Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1
A.13 Frames Tags^595

rowsAttribute. The rowsattribute specifies how the window will be divided verti-
cally into rows of pixels (think of it as forming one row under another across the
screen). The value can be a percentage of the browser window, a number of pixels, or
the special asterisk value (*). The special asterisk value tells the browser to calculate the
appropriate space for the window. A value is given for each frame row. There can be
multiple frames. For example, to create a frameset with two horizontal frames—one
using 25 percent of the window and the other using what is left of the window—the
code is <frameset rows="25%,*">.
colsAttribute. The colsattribute specifies how the window will be divided hori-
zontally into columns of pixels (think of it as forming one column next to another
across the screen). The value can be a percentage of the browser window, a number of
pixels, or the special asterisk value (*). The special asterisk value tells the browser to
calculate the appropriate space for the window. A value is given for each frame column.
There can be multiple frames. For example, to create a frameset with two vertical
frames—one using 200 pixels of the window and the other using what is left of the
window—the code is <frameset cols="200,*">.

The <frame />Ta g
<frame />
The self-contained <frame />tag specifies a single frame or area of the window con-
tained within a frameset. Table A.22 shows <frame />tag attributes and their values.

The <noframes>Ta g
<noframes></noframes>
The <noframes>tag configures what will display on browsers and other user agents
that don’t support frames.

Table A.21tag attributes


Attribute Value Usage
bordercolor A valid color; the W3C recommends
hexadecimal colors

Specifies the color of the frame borders in the frame-
set. Default color is gray. Not part of the W3C
Recommendation.
cols Number of pixels, percentage, or "*"
to indicate remaining window area

Reserves vertical areas (columns) of the browser
window.
frameborder "0"or "1"(default) "0"indicates that no frame borders will be visible in
the frameset. "1"indicates that frame borders will
display in the frameset (default). Not part of the W3C
Recommendation.
framespacing Number of pixels Specifies the width of the frame borders in the frameset.
Not part of the W3C Recommendation.
rows Number of pixels, percentage, or "*"
to indicate remaining window area

Reserves horizontal areas (rows) of the browser
window.
title A brief text description Provides a text description of the frameset that can be
used by assistive technologies.
Free download pdf