HTML Markup: Line Break Tag
Originally Published: 2005-02-21
Updated: 2006
You will want to structure the contents of the Web page for ease in reading. Most commonly used HTML elements for this structuring is paragraphs, line breaks, and horizontal rules. This article will share about the markup used for making paragraphs.
Line-Break Markup
TEXT<br>
Singlet tag; no shortcut
Inline Element.
br is short for Line Break.
Use: Breaks, or divides, lines of text.
Suggestions: If using empty line breaks as a quick work-around to provide additional spacing between elements, use CSS to share padding or adding margins between those elements instead if & when possible. CSS will allow you more control over the spacing and, therefore, final appearance.
Example of markup:
<p>Knock! Knock!<br>
Who's there?<br>
Little old lady.<br>
Little old lady who?<br>
I didn't know you could yodel!</p>
Appearance on the Web (will appear in dark green text):
Knock! Knock!
Who's there?
Little old lady.
Little old lady who?
I didn't know you could yodel!
Related Articles:
- What HTML Is
- What HTML Is Not ...
- I Wanted It, Like, Yesterday (Creating HTML Overload ... Argh!)
- Emphasis & Italicized Text
- Abbreviation & Acronym
- Quoting & Citing
- Address
- Headings
- CSS: Using SPAN to share a little STYLE
- CSS: List Style Image
- CSS: List Style Types for Ordered Lists