Align the text of a document with CSS

The text-align property is used to align the text of a document. Possible values are left, right, center, justify.

Example

You can try to run the following code to align text:

   
   
   
      

         Asia is a continent.      

     

         Asia is a continent.      

   
Updated on: 2020-01-31T06:02:44+05:30

96 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements