Answers for "how to change alignment in html"

3

how to center align text in html

you just need to add this line of code in your tag(<p>; h1, h2, td etc):
  
<p align="center">sample text<p/>
Posted by: Guest on December-21-2020
4

html align right

<p style="text-align:right;">Example</p>
Posted by: Guest on September-16-2020
1

html text alignment

<p style="text-align: left;"> Left alignment </p>
<p style="text-align: right;"> Right alignment </p>
<p style="text-align: center;"> Center Align </p>
<p style="text-align: justify;"> Justify to width </p>
Posted by: Guest on April-03-2021

Code answers related to "how to change alignment in html"

Browse Popular Code Answers by Language