source code for text aligntment in html code example
Example 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>
Example 2: what are the different text align in html
/* There are four different text align values: left, right, center
and justify. For example: */
text-align: center;