Learning Resources
 

br tag for Line Breaks


The line break tag is the
tag in HTML and
in XHTML.

A br tag will insert a line break which means the text/image following the tag will be moved to the next line when displayed in the browser.

The following is a regular paragraph.

This is a regular paragraph. Everything between the opening and closing paragraph tags keeps flowing. The paragraph tag adds a line before and after the paragraph, unlike the br tag.

HTML coding for the above paragraph:

This is a regular paragraph. Everything between the opening and closing paragraph tags keeps flowing. The paragraph tag adds a line before and after the paragraph, unlike the br tag.

This paragraph uses the HTML br tag (line break tag) at the end of each sentence:

When you insert a br tag into your HTML coding it creates a line break.
The text in this sentence is after a br tag.
Here's a new sentence with the br tag inserted before it.

HTML coding for the above paragraph:

When you insert a br tag into your HTML coding it creates a line break.

The text in this sentence is after a br tag.

Here's a new sentence with the br tag inserted before it.

Examples


Code Result
A four word line
A four word line
A four word line.
A four word line
A four word line
A four word line.
A line


Another line
A line


Another line