Name

ALIGN — NN all IE all HTML 3.2

Synopsis

ALIGN=”where"

Optional

Determines how the heading is rendered in physical relation to the next outermost container, usually the body. Both Navigator and Internet Explorer support alignment values for center, left, and right alignment. HTML 4.0 adds the possibility of a fully justified alignment, as well.

The ALIGN attribute is deprecated in HTML 4.0 in favor of the text-align: style sheet attribute.

Example

<H1 ALIGN="center">Article I</H1>

Value

The following table shows values for the ALIGN attribute. Values may be treated as case-insensitive values.

Value

NN 4

IE 4

HTML4.0

center

&bull;

&bull;

&bull;

justify

-

-

&bull;

left

&bull;

&bull;

&bull;

right

&bull;

&bull;

&bull;

Default

left

Object Model Reference

IE

[window.]document.all.elementID.align

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.