font-align css code example Example: text-align css .p{ text-align:center; } <div class="p"> <p style="text-align:center">HELLO</p> </div>