[Index] [Up] [Back] [Next]

4.2 Marking Paragraphs with HTML

The element <P> is used to denote a paragraph break, and is used whenever you wish to separate two blocks of text as logical paragraphs.

In general you do not need paragraph marks around headings, list elements, ADDRESS elements, or BLOCKQUOTES: these elements manage their own spacing.

For example, the above text, including the heading, was marked up as follows:

<H1> 4.2 Marking Paragraphs with HTML </H1>

<p> The element &lt;P> is used to denote a paragraph break,
and is used whenever you wish to separate two blocks of
text as logical paragraphs. 

<p> In general you do <em>not</em> need paragraph marks 
around headings, list elements, <a href="address.html"> 
ADDRESS</a> elements, or <a href="blockquote.html">
BLOCKQUOTES</a>: these elements manage their own spacing.

<p> For example, the above text, including the heading,
was marked up as follows:

Changes for HTML+

HTML+ suggests, but does not require, that each paragraph marked by a beginning tag <p> be terminated by the tag </p>. The form for a paragraph is then
<p>  This is the text of the paragraph.  Now we
write lots of silly things, and then we want to
end the paragraph, so we do so.  </p>
More formally this reflects the fact that the paragraph element is not `empty'. NOTE: Most HTML viewers (Mosaic, Lynx, etc) accept the <p> ..... </p> pairings, so you can use this form if you wish.

Other options new to HTML+ are:

<P ID="p1">
Mark the paragraph for a possible reference via a URL. [NOTE: In HTML+ ID will replace the NAME attribute, currently used to reference hypertext link targets]. This option works with some current servers.
<P ALIGN=center>
( center, left, right, justify, indent). Change the paragraph alignment (the default is left). This option is not implemented in most current browsers.

For more details look in the 'Paragraphs' mark-up section in the HTML+ Markup Format document.


[Index] [Up] [Back] [Next]