text alignm,ent in css code example
Example 1: text-align css
.p{
text-align:center;
}
<div class="p">
<p style="text-align:center">HELLO</p>
</div>
Example 2: text align css
p{
text-align:center;/*values: center, left, right, etc...*/
}
.p{
text-align:center;
}
<div class="p">
<p style="text-align:center">HELLO</p>
</div>
p{
text-align:center;/*values: center, left, right, etc...*/
}