The default text alignment for content in a paragraph is left side. Sometimes you may want to make the text align to the right or in the center. To make the text align to the left or right you include the align attribute to the paragraph tag.
Example, align to left:
Example, align to right:
To make the content align to the center, use the CENTER tag. This tag can be used on any element of the website, not just for text content, but also for graphic, tables, or any other display items that you wish it to remain in a centered alignment.
- Learning HTML codes for building a web page
- Lesson 1 – The Basic HTML Tag
- Lesson 2 – Create a website page
- Lesson 3 – Text formatting tags
- Lesson 4 – Aligning the paragraph text
- Lesson 5 – Making bullet list and numbered list
- Lesson 6 – Create tables in your website