We can change the alignment of the text using the text-align property. We can align the text in the center, Left, Right.
...
Text Alignment.
Value | Description |
---|---|
left | The text will align to the left |
right | The text will align to the right |
center | The text will align to the center |
How do you justify text-align in HTML?
The align attribute of <p> tag is used to justify the text on a web page. This can be done by assigning the value to the aligned attribute as justified.