A Complete Guide to Web Design

(やまだぃちぅ) #1
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).


NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4D- WebTV - Opera3
...

Centers the enclosed text horizontally on the page (same as

.


NN: 2, 3, 4 -MSIE: 2, 3, 4, 5- HTML 4- WebTV- Opera3
...

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.


NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 -HTML 4- WebTV - Opera3


...


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.

Free download pdf