how to left align text in html code example
Example 1: how to align text in html
This text is aligned to the left side of the page
This text is aligned to the center of the page
This text is aligned to the right side of the page
This text is aligned to the left side of the page
This text is aligned to the center of the page
This text is aligned to the right side of the page
Example 2: html align text left
Left alignment
Example 3: html how to center text
Centered paragraph.
Example 4: text align center
text-align: center;
Example 5: css text align center
body {
text-align: center;
}
Example 6: what are the different text align in html
/* There are four different text align values: left, right, center
and justify. For example: */
text-align: center;