Article Groups

# HTML paragraph tag HTML paragraph tag

After the heading tags let's move to the paragraph tag in HTML. Majority of the content you will be adding to your webpage will be in the form of paragraphs. The browser does not follow the normal rules of English as followed by other software like Notepad and word editors. Browsers do not understand enter keys on your keyboard. By this we mean that when adding content to your webpage if you write some text in a paragraph, hit enter and start another paragraph the browser will not show you two different paragraphs in the final output. The only way to make the browser understand the beginning and end of each paragraph is to write your content inside the <p> tag. You can write multiple lines of text inside the <p> tag and create as many paragraphs as you want by using multiple <p> tags. Look at the sample code below

<html>

<body>
<p> This is paragraph 1. It has been written inside the paragraph tags.
There is an enter pressed before this line but you will not be able to see a new paragraph inside the browser.
Only when the p tag will end you will notice the end of the paragraph
</p>
<p> This is paragraph 2.
It has been written after closing the previous paragraph tags and starting new tags.
</p>
</body>
</html>

When you see the output of the above HTML in the browser this is what you will see.

Notice how the browser understands the beginning and end of a paragraph using <p> and </p> tags and not by the enter key.

You should not write large text content outside the <p> tags. Writing large paragraphs of text directly inside the <div>, <table> or <span> tags is a wrong practice.

Need Learning Guidence?

### E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization