• Post category:HTML

How to Create Justify Alignment Text in HTML

Justify Alignment in HTML

In this article, we will see how to align a text in justify alignment in HTML. We can use also the CSS “Align” property if you cannot use the <p> tag. If you can use <p> tag, you can use the “align” attribute.

Step by Step guide to align justify

<!DOCTYPE html>
<title> JUSTIFY ALIGN </title>
<p align="justify">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>


alignment justify html


  1. First, write HTML general syntax.
  2. Then inside the body, we created <p> tag with some text inside.
  3. To align justify text, we need to use the “align” attribute in <p> tag and give value as “Justify“.
  4. See the above output, the text is displayed to justify alignment.

Leave a Reply