HTML <br> tag
Definition and Usage
The <br> tag inserts a single line break.
The <br> tag is an empty tag (means that it has no end tag - the following is
wrong: <br></br>).
Differences Between HTML and XHTML
In HTML the <br> tag has no end tag.
In XHTML the <br> tag must be properly closed, like this: <br />.
Tips and Notes
Note: Use the <br> tag to enter blank lines, not to separate
paragraphs.
Example
| Source |
Output |
|
This text contains<br />a line break
|
This text contains a line break
|
Standard Attributes
For a full description, go to Standard
Attributes.
Try-It-Yourself Demos
Line breaks
How to insert line breaks in an HTML document.
Learn XML with Stylus Studio XML Tools - Free Download!
 |
|
Stylus Studio makes it easy to edit and validate XML, XSLT, DTD, XML Schema, XHTML, XPath, XQuery and Web Service applications.
Free XML video demonstrations will help you learn XML and become a W3C XML development master in just minutes!
Download a FREE Trial Now!
|
|