How to change text alignment with text-align?

Change text alignment

text-align specifies the alignment for a text block. Its allowed values are:

 

start

end

left

right

center

justify

The text-align property can align text to a named edge (left or right).

 

h1 {text-align:center;} 

p {text-align:justify;}

 

 

     

         

     

     

         

            HyperText Markup Language (HTML)