English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Manual de Referência HTML

大全 de etiquetas HTML

Tag <br> do HTML

O marcador <br> HTML define um caractere de nova linha dentro do texto do documento HTML. Este rótulo também é conhecido como elemento <br>. O elemento <br> HTML gera um símbolo de nova linha (enter) no texto. Este elemento é muito útil em poemas e endereços, onde as quebras de linha são muito importantes.

Exemplo Online

A seguir, o código que marca uma quebra de linha:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Site de Tutoriais Básicos(oldtoolbag.com)</title> 
</head>
<body>
<p> 
Use o elemento <br> para quebrar linha no texto.<br> 
</p>
<p>O parágrafo começa aqui<br>
and ends on the next line./p>
</body>
</html>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All major browsers support the <br> tag.

Tag definition and usage instructions

The <br> tag inserts a simple line break.

The <br> tag is an empty tag, meaning it does not have a closing tag.

Tips and notes

The HTML <br> element is located within the <body> tag.
The <br> tag simply moves the text to the next line, unlike the <p> tag at this point with a </ p> has less vertical blank space when closed compared to.

HTML 4.01 With HTML5Differences

None.

Differences between HTML and XHTML

In HTML, the <br> tag does not have a closing tag.

In XHTML, the <br> tag must be closed correctly, like this: <br /> .

Global attributes

<br> tag support HTML global attributes.

Event attributes

<br> tag support HTML event attributes.

Related articles

HTML tutorial:HTML paragraph