What CSS property is used to change the alignment of text?

  • text-align: justify;
  • text-decoration: align;
  • align-content: center;
  • text-align: center;
The correct option is text-align: center;. This property is used to horizontally align text. text-align can take values like left, right, center, etc. The other options are incorrect or do not exist in CSS.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *