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 |
• |
• |
• |
justify |
- |
- |
• |
left |
• |
• |
• |
right |
• |
• |
• |
Default
left
Object Model Reference
- IE
[window.]document.all.elementID.align
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access