Files
Morgan Adams de5b88265f update hr element guide to indicate use for separating themes; remove … (#34612)
* update hr element guide to indicate use for separating thems; remove xhtml syntax as it is outdated and confusing to beginners

* fix title syntax

* Add resources back in for hr help page
2019-03-08 19:02:40 -08:00

1.0 KiB

title
title
Create a Horizontal Line Using the hr Element

Create a Horizontal Line Using the hr Element

The hr tag is one of the simplest HTML elements. It represents a thematic change in content and creates a thin horizontal line across its parent element.

This lesson requires you to use the hr tag to separate the title and content of a "card". So how do you create an hr element?

<!-- It's this easy. Note that it does not have a closing tag. -->
<hr>

Add this tag between the title and content to create the horizontal line in this lesson on freeCodeCamp. Here is a screenshot from that lesson showing an hr element contained within the "cardText" div.

Example hr

Resources: