Summary of Text Tags 109
Formatting
Text
Summary of Text Tags
Web Design in a Nutshell, eMatter Edition
Spacing and Positioning
The following tags give authors control over the line breaks, alignment, and
spacing within an HTML document. Tables (discussed in Chapter 10,Tables) and
style sheets (Chapter 23) offer better control over spacing and positioning than the
minimal controls listed here.
NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
Breaks the text and begins a new line, but does not add extra space as the
tag
does.
Attributes
clear=all|left|right
Breaks the text flow and resumes the next line after the specified margin is
clear. This is often used to start the text below an aligned image (preventing
text wrap).
Centers the enclosed text horizontally on the page (same as
Netscape only. Displays enclosed text in multiple columns of approximately the
same length.
Attributes
cols=number
Specifies the number of columns (mandatory).
gutter=number
Specifies the amount of space (in pixels) to maintain between columns.
width=number
Specifies the width of the columns in pixels. All columns within
are the same width.
Text (or graphics) within the “no break” tags will always display on one line,
without allowing any breaks. The line may run beyond the right edge of the
browser window, requiring horizontal scrolling.