HTML Home
HTML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM
|
HTML <br> tag
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:
Attribute | Value | Description |
clear | none right left all | Deprecated - Specifies where the next line should appear. |
Standard Attributes:
Attribute | Description |
class | Document wide identifier |
id | Document wide identifier |
title | Specifies a title to associate with the element. |
style | Helps to include inline casecadubf style sheet. |
|
|
|