Chapter 20. Supplemental Topics

Line Break – <br>

The <br> element is used to create a line break. The <br> element is a void element. There is no end tag for this element.

Why is the <br> element needed?

HTML doesn't recognize line breaks. For example, the code below has two line breaks; however, the line breaks are not rendered in the browser.

Line-Break--br

How does the <br> element work?

The <br> element in an HTML document creates a line break like in the example below.

Line-Break--br

The <br> element is used to create a line break. The <br> element is a void element. There is no end tag for this element.

Why is the <br> element needed?

HTML doesn't recognize line breaks. For example, the code below has two line breaks; however, the line breaks are not rendered in the browser.

Line-Break--br

How does the <br> element work?

The <br> element in an HTML document creates a line break like in the example below.

Line-Break--br