Home HTML Tutorial for beginners 5 HTML Paragraph

5 HTML Paragraph

51
0

The <p> element is used to mark a block of text as paragraph. It has both opening and closing tags. Opening tag can contain different style attributes. Most browser can display the output correctly with out using the closing </p> tag. But it is good coding practice to use both opening and closing tags. Browser automatically adds an empty line before and after paragraph.

We will write a program to demonstrate the p tag.

<html>
<head>
<title>Program to demonstrate p tag</title>
</head>
<body>
<p>This is a paragraph. This paragraph is created by Subrat Sir for demoo purpose.</p>
</body>
</html>

Check your progress:

Q) Use of closing </p> tag is not a good practice.

  • True
  • False

Q) Browser automatically adds an empty line before and after paragraph.

  • True
  • False

Q) You should use only one paragraph element with in a document.

  • True
  • False

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here