HTML Paragraph
- Html paragraph is the most common and usable part in HTML.
- <p> is represents the paragraph tag.
- To define a paragraph in the HTML document <p> tag is used.
- Must have an opening tag but the closing tag is optional.
Example:
<p>
This is first paragraph.
</p>
<p> This the second paragraph. </p>
<p> This the third paragraph. </p>
<p> This the fourth paragraph. </p>
<p> This the second paragraph. </p>
<p> This the third paragraph. </p>
<p> This the fourth paragraph. </p>
Run Example
The paragraph tag has its own margin and font size by default. It is a block level element. It is a good practice to place all the text into the paragraph tags or heading tags. Text can be showed in the page without using a paragraph tag. But using a paragraph tag is more meaningful to the browser.