9 of 133 menu

The br tag

The br tag creates a line break (meaning the text will start on a new line after this tag). It does not require a closing tag.

A common mistake is to use this tag to create space between elements. To do this, use the margin property.

Example

Let's take some text. Let's split it into two lines using the br tag:

first line <br> second line

:

See also

  • property hyphens,
    which includes hyphenation of words by syllables
  • tag wbr,
    which implements soft hyphens using HTML
  • property word-break,
    wrapping letters of a long word to a new line
  • property overflow-wrap,
    wrapping letters of a long word to a new line
byenru