HTML
tag

The
tag
in HTML document is used to create a line break in a text.

It is generally used in poem or address where the division of line is necessary. It is an empty tag, which means it does not need a company of end tag. If you place the
tag in the HTML code, then it works the same as pressing the enter key in a word processor.

Note: Don't use br tag for the margin between two paragraphs, use CSS margin property instead.

Syntax

Difference between HTML
and

You can use HTML br tag two ways:
or
. It is recommended to use closed br tag
because it is supported in HTML and XHTML both.

Example 1:

Test it Now

Output:

HTML br tag

Example 2: The following example uses the
tag in the address:

Test it Now

Output:

HTML br tag

Example 2: The following example uses the
tag in the poem:

Test it Now

Output:

HTML br tag

Browser Support

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari

Yes Yes Yes Yes Yes

Next TopicHTML button tag




Contact US

Email:[email protected]

HTML br Tag
10/30