asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > ALIGN Attribute

ALIGN Attribute | align Property


Specifies the horizontal position of elements relative to the document.

Syntax

Inline <element align = left | center | right... >
Script object.align = left | center | right

Possible Values

left Aligns to the left edge.
center Aligns to the center.
right Aligns to the right edge.

The property is read/write with a default value of left.

Remarks

This attribute has been deprecated in favor of CSS stylesheets.

Example

<table width="70%" border align="center">
<tr><td>Cell 1</td><td>Cell 2</td></tr>
<tr><td>Cell 3</td><td>Cell 4</td></tr>
<tr><td>Cell 5</td><td>Cell 6</td></tr>
</table>
Cell 1Cell 2
Cell 3Cell 4
Cell 5Cell 6

Applies To

APPLET   CAPTION   COL   COLGROUP   DIV   HN   HR   IFRAME   IMG   LEGEND   TABLE   TBODY   TD   TFOOT   TH   THEAD   TR



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note