Tutorials Point


  HTML Home

  HTML Tags Reference
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

HTML <br> tag




Advertisements

Function:

The HTML <br /> tag is used to give a line break.

Difference between HTML and XHTML:

In HTML the <br> tag has no end tag.

In XHTML the <br> tag must be properly closed.

Example:

<p>This is before the line break<br />
and this after the line break.</p>

This will produce following result:

This is before the line break
and this after the line break.

Online Practice:

To Become more comfortable - Do Online Practice

Attributes:

AttributeValueDescription
clearnone
right
left
all
Deprecated - Specifies where the next line should appear.

Standard Attributes:

AttributeDescription
classDocument wide identifier
idDocument wide identifier
titleSpecifies a title to associate with the element.
styleHelps to include inline casecadubf style sheet.

Printer Friendly

Advertisements


  

Advertisements