basics of website design banner photo

HTML

HTML 5

CSS 2.1

CSS 3

Reference

HTML <br> Element

The <br> or break tag inserts a single line break into a document.
Example:

Line breaks<br> force a carriage return<br> and start<br> a new line.

Displays:
Line breaks
force a carriage return
and start
a new line.

The break tag is defined as an empty element because it doesn't contain anything for display. In XHTML empty elements must have a trailing slash / and an extra space is added for backwards compatibility with HTML user agents - giving you <br />. In HTML it can be written as <br>.

Other empty tags

<br> Attributes

  • CORE ATTRIBUTES - class, id, title, style

  • clear - specifies where the next line should appear after the <br> element but is now Deprecated in favour of CSS styles.

HTML 4 Element List