justified text alignment html code example Example 1: how to justify text in html <p align="justify"> Example 2: text align justify text-align: justify;