how to used align attribute in html

Attribute means characteristics of something.Align is the attribute of html that is used to make text in

  1. Right
  2. Center
  3. Left
Like MS word doing.

The attribute written in html like <tag attribute=value> affective text</tag>.If attribute like align then value written in " " .Align means alignment.
Simply used paragraph tag to understand align attribute.
This is the picture result of html code. So try to used align attribute in paragraph tag.
Let's see the how to used align value of center.

After put value of align attribute equal to center. It can write this like
<p align="center"> paragraph</p>
then the result is

The center align make the paragraph in center according to page.
<p align="left"> paragraph </p>
this tag not affect the paragraph because the English language is start to write from left to right.

<p align="right">paragraph</p>
This make the paragraph start from right side of the page.

so now the all attribute of align is discussed. you can also used align in heading <h1> tags.

                                  

Post a Comment

Post a Comment (0)

Previous Post Next Post

Search This Blog