ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML Last Update: 5 January 1998 |
The P element marks a
block of text as a paragraph -- the tag <P>
marks the beginning of the paragraph, while the tag
</P>
marks the end of a paragraph. The end
tag, however, is optional, as a paragraph is automatically
ended when you start another paragraph, or when you start
a heading, blockquote, list, table or form.
In general, a browser will add appropriate spacings and
indents to indicate the paragraph. Note that the Netscape
Navigator often adds extra vertical spacing after a paragraph
if you end the paragraph with a </P>
end tag. This is a "bug" with Netscape, but can be used
as a "feature" if you want to more finely control line
spacings between a paragraph and a following element such
as a table or a horizontal rule
For example, the above text, including the heading, was marked up as follows:
<p> The P element marks a block of text as a paragraph -- the tag <code><P></code> marks the beginning of the paragraph, while the tag <code></P></code> marks the end of a paragraph. The end tag, however, is optional, as a paragraph is automatically ended when you start another paragraph, or when you start a heading, blockquote, list, table or form.</p> <p>In general, a browser will add appropriate spacings and indents to indicate the paragraph. Note that the Netscape Navigator often adds extra vertical spacing after a paragraph if you end the paragraph with a <code></P></code> end tag. This is a "bug" with Netscape, but can be used as a "feature" if you want to more finely control line spacings between a paragraph and a following element such as a table or a horizontal rule</p>
HTML 3.2 introduced the ALIGN attribute to control the alignment of text, and also introduced ID to act as a location marker for the paragrah. More specifically:
ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML © 1994-1998 by Ian Graham Last Update: 5 January 1998 |