Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Breakline Element
Breakline Element

Br is empty element having no closing tag.


  • br stands is break line
  • br is used for breaking line and go to next line
  • br element can be closed by putting forward slash / and space after br element

Any number of break lines can be used in a page.

Syntax

<br />
<tag>Content</tag>

or

<tag>Content</tag>
<br />


You can apply bold element to any element and use any where within a HTML document.


Example

I am before break line


I am after break line


Bold is a pair tag and output of bold element is weighted text like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create three paragraphs
  • Use <br /> element to separate them

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

Paragraph one


Paragraph two


Paragraph three


So in this way you can go to next line or break line by using br element