Home HTML Tutorial for beginners 6 HTML Line Break using BR tag

6 HTML Line Break using BR tag

38
0

We can also use <p> tag for line break. But it adds empty lines before and after it. So to add a line break with out these empty lines or without creating a new paragraph, we can use <br/> tag. It is an empty element. It has no end tag.

We will write a program to demonstrate br tag.

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

Check your progress :

Q) Which tag is used to create a line break without any extra space between the text blocks.

  • linebreaknospace
  • lbns
  • br
  • non of the above

Q) Single line break can be used only once with in a p element.

  • True
  • False

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here