Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML
tag

HTML
tag

Example

The following code marks a line break:

<

p

Use the br element

<

br

in the text

<

br

to make a line break.

p

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support
tag.


Tag Definition and Usage Notes


The tag inserts a simple line break.


The tag is an empty tag, which means it has no closing tag.


Tips and Notes

**Tip:** When writing address information or poetry
the tag is very useful.

Note: Please use the
the tag to enter a blank line instead of splitting paragraphs.


Differences between HTML 4.01 and HTML5

none.


Differences between HTML and XHTML

In HTML,
the tag has no end tag.

In XHTML,
The tag must be closed properly, for example:
.


Global Attributes


The tag supports HTML Global Attributes.


Event attribute


The tag supports HTML Event Attributes.


Related Articles

HTML Tutorial:HTML paragraph