<Br> <Br/> End Tag In HTML5 explain html learning
The <br> HTML element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
Syntax
Text <br> text
<br> Tag Usage
The <br> tag inserts a single line break.
The <br> tag is useful for writing addresses or poems.
The <br> tag is an empty tag which means that it has no end tag.
Remark
There are multiple correct ways to use a br tag in web documents.
In HTML, a line break is made with the <br> tag. We don't need to close <br> because it's an empty tag. To break a line, either <br/> or <br></br> are acceptable.
However, <br /> tags are used in other web documents like XHTML. But the <br /> tag must possess a space before the trailing /> as it helps XHTML to render the existing HTML user agents.
<!DOCTYPE html><html><body><p>If you want to break a line <br/> in a paragraph, <br/> use the BR element in <br/> your HTML document.</p></body></html>
If you want to break a line
in a paragraph,
use the BR element in
your HTML document.
Comments :
Post a Comment