Aligning text


HTML - Attributes :
Attributes in html are extra settings on the tag.
Attributes add more capabilities to html tags when used.
Attributes are written in opening tags.
Attributes are written after the tag name and before the greater than symbol in the opening tag.
Attributes are separated by space character.
Attributes come in pair, attribute name and attribute value.
Attributes value is assigned to an attribute name using equal to sign.
Attribute value should be enclosed in double quotations.

HTML - align attribute:
align attribute is used to align the text either to the left, center or to the right edge.
align attribute is used in variety of tags, like p, heading, table, tr, td, img, div, embed, object and more tags.
align attribute in paragraph (p) tag takes four values, left, center, right and justify.

Interview Questions: