Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML col align attribute

HTML align attribute

HTML col Tag Reference HTML Tag

Example


 
 
 
 
   
   
   
 
 
   
   
   
 
ISBN Title Price
3476896 My first HTML $53

Try it »

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Only Opera and Internet Explorer 8 and earlier IE versions support the align attribute (IE9 does not support it).


Definition and Usage

HTML5 does not support the align attribute.

The align attribute specifies the horizontal alignment of the content associated with the col element.


Syntax

Attribute values

Value Description
left Align the content to the left (default).
right Align the content to the right.
center Align the content to the center (the default for the th element).
justify Stretch the lines so that each line has an equal length (as in newspapers and magazines).
char Align the content to a specified character.

HTML col Tag Reference HTML tag