Summary of Text Tags 103
Formatting
Text
Summary of Text Tags
Web Design in a Nutshell, eMatter Edition
Paragraphs and Headings (Block-Level Elements)
Block-level elements are always formatted with a line-break before and after, with
most adding some amount of additional space above and below as well. The most
commonly used block elements are paragraphs (
), headings (<h1...h6>), and
blockquotes (
).
Lists and list items are also block-level elements, but they have been grouped in
their own section below.
NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
...
Identifies ownership or authorship information, typically at the beginning or end
of a document. Addresses are generally formatted in italic type with a line break
(but no extra space) above and below.
NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
...
Enclosed text is a blockquote, which is generally displayed with an indent on the
left and right margins and added space above and below the paragraph.
Note that:
- Some older browsers display blockquote material in italic, making it difficult
to read.
- Browsers are inconsistent in the way they display images within blockquotes.
Some align the graphic with the indented blockquote margin; others align the
image with the normal margin of paragraph text. It is a good idea to test on a
variety of browsers.
NN: 2, 3, 4 - MSIE:2, 3, 4, 5 - HTML 4 - WebTV - Opera3
...
Denotes the beginning and end of a division of the page. First introduced in HTML
3.2 as a way to define a unique style for each division, only the alignment func-
tion (using thealign attribute) was implemented by the major browsers.
The
tag has proven itself enormously valuable, however, when used in
conjunction with style sheets (see Chapter 23).
Attributes
align=center|left|right
Aligns the text within the tags to the left, right, or center of the page.