HTML and CSS Reference
In-Depth Information The align attribute
The default heading alignment for most browsers is left . As with the
<div> and <p> tags, the align attribute can change the alignment to left ,
center , right , or justify . Figure 4-4 shows these alternative alignments
as rendered from the following source:
<h1 align=right>Right over here!</h1>
<h2 align=left>Slide back left.</h2>
<h3 align=center>Smack in the middle.</h3>
Figure 4-4. The heading's align attribute in action
The justify value for align is not yet supported by any browser, and
don't hold your breath. The align attribute is deprecated in HTML 4 and
XHTML, in deference to stylesheet-based controls.
Search WWH ::

Custom Search