The
Tag
The This header is centered.
So are the images above and this line of text.
But this text is right-aligned.
Note that all the elements between the
and
tags are aligned according to the definition given by the
tag, except for any elements which have their own alignments defined. As is always the case with the ALIGN attribute, it can assume the values LEFT, CENTER, or RIGHT.
You can also use inline styles with the
tag to set the style for an entire block of HTML within your document. This works because of the concept of inheritance. For example, if you want to change the text color of an entire block of tags to blue, you can put those tags in the DIV container and define a style for the
tag that sets the text color to blue. It looks like this:
This is a heading
This is a paragraph. It will look blue in the user's browser