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

HTML legend align Attribute

HTML The align attribute

HTML legend Tag Reference HTML tag

Example

Right-align the caption:

 

    Personalia:

    Name:

    Email:

    Date of birth:

 

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers except Opera support the "left" and "right" values of the align attribute. Almost no major browser supports the "bottom" value.


Definition and Usage

HTML5 does not support the align attribute. Please use CSS instead.

In HTML 4.01, The align attribute is deprecated.

The align attribute specifies the alignment of the caption in a fieldset.


Syntax

Attribute values

Value Description
left Left-align the caption (default).
right Right-align the caption.
top Top-align the caption.
bottom Bottom-align the caption.

HTML legend Tag Reference HTML tag