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.
<title>Program to demonstrate p tag</title>
<p>This is a paragraph. <br/>This paragraph is created by Subrat Sir for demoo purpose.</p>
Check your progress :
Q) Which tag is used to create a line break without any extra space between the text blocks.
- non of the above
Q) Single line break can be used only once with in a p element.