The HTML <br>
tag creates a line break within a paragraph. This tag is used very commonly during writing content for the website. The break tags are very helpful to write any content with line breaks. For example, writing a Poem or an address. In these type of content, the line break is very significant, so Break Tag helps to produce those line breaks without changing the paragraph.
The <br>
tag is an Unpaired tag which means that it has no closing tag. Look at the example below to see how to use it:
To break lines
in a text,
use the br element.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<br>
tag can be used in two ways:
The <br>
or <br/>
.
It is recommended to use closed br tag <br/>
, because it is supported in both HTML and XHTML.<br> |
Follow Us: