Thematic Breaks

In this lesson, we will learn to add thematic breaks in HTML.

We'll cover the following

The <hr> tag defines a thematic break that is used to separate content on a web page. Although originally in HTML 4.01 it was defined as a simple visual element (horizontal rule), HTML5 defines it as a semantic term. Listing 5-2 shows an example of applying the <hr> tag.

Listing 5-2: Adding thematic breaks

Get hands-on with 1200+ tech skills courses.