P - Paragraph
||TT, I, B, U, STRIKE, BIG, SMALL, SUB, SUP, EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, A, APPLET, IMG, FONT, BASEFONT, BR, MAP, INPUT, SELECT, TEXTAREA and plain text.
|May occur in:
||BODY, DIV, CENTER, BLOCKQUOTE, FORM, TH, TD and DD, LI, ADDRESS.
The P tag is used to indicate paragraphs. The optional attribute
ALIGN indicates the preferred alignment for the contents of this
paragraph. Support for ALIGN=RIGHT is not as large as support for
the other two. Note that ALIGN=LEFT is the default.
- Some browsers render extra whitespace when multiple empty
paragraphs are used in sequence. This is not required by the specs,
so do not count on this to get vertical whitespace in your document.
- When a paragraph has the ALIGN=CENTER or ALIGN=RIGHT attribute,
some browsers do not use the default alignment for the next
paragraph unless this paragraph is explicitly closed.
- In the very first version of HTML, the P tag was an empty tag like
BR. Some references and books still claim that this is the case.
However, HTML 2.0 defines the P tag as a container, and there is
no difference between a paragraph with and one without
- Despite the above, some browsers treat the closing tag as an
opening tag - they insert an extra paragraph break there.
Reference index ~
Wilbur index ~
Tag overview ~
Copyright © 1997 Arnoud "Galactus" Engelfriet.