How to align text ( Left, Right, Center, Justify ) in using HTML CSS ?
In HTML and CSS, you can align text using the text-align property. Here's how to use each type of alignment:
1. Left Align (default)
<p style="text-align: left;">This text is aligned to the left.</p>
Or in CSS:
.left-text {
text-align: left;
}
<p class="left-text">This text is aligned to the left.</p>
2. Right Align