br tag for Line Breaks

It is like a newline character in HTML and XHTML as anything following it starts on the next line. It is an empty element as no opening or closing tags is needed so nothing is in between also.  A space between the characters br and the forward slash should be given as ‘<br />’ but earlier ‘<br>’ was given.

Multiple <br /> elements can be used to give multiple line breaks as in the example

HTML code

<p>It has one br below.</p>
<br />
<p>It has one br above and two br below.</p>
<br /> <br />
<p>Paragraph of text.</p>

Browser output

The br Tags for Line Breaks

Apply for HTML Certification

https://www.vskills.in/certification/certified-html-designer

Back to Tutorials

p tags for Paragraphs
pre tags to Maintain Formatting

Get industry recognized certification – Contact us

keyboard_arrow_up