HTML and CSS Reference
In-Depth Information
will take any arbitrary sequence of words and images and display a
nicely formatted paragraph.
If you want to control line length and breaks explicitly, consider using a
preformatted text block with the
<pre>
tag. If you need to force a line
4.1.2.2. The align attribute
Most browsers automatically left-justify a new paragraph. To change
this behavior, HTML 4 and XHTML give you the
align
attribute for the
<p>
tag and provide four kinds of content justification:
left
,
right
,
cen-
ter
, and
justify
.
Figure 4-2
shows the effect of various alignments as rendered from the
following source:
<p align=right>
Right over here!
<br>
This is too.
<p align=left>
Slide back left.
<p align=center>
Smack in the middle.
</p>
Left is the default.