XHTML Tutorial: Standards-Based Web Design

by Paul Bohman

Line Breaks (<br />)

Line breaks allow you to stay within the same block level element (a heading or paragraph, for example), but force part of it to display on the next line. Here are some examples:

<h1>Tomorrow's Legacy:<br />
Shouldn't we Start Today?</h1>

<p>The only way to wake up in a better tomorrow...<br />
is to start working towards better goals today.</p>

The above examples will display as follows in a browser:

Tomorrow's Legacy:
Shouldn't we Start Today?

The only way to wake up in a better tomorrow...
is to start working towards better goals today.

Here are a couple of points worth remembering about line breaks:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.