Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

hr — thematic break

The `hr` element marks a paragraph-level thematic break, such as a scene change, rather than merely a decorative line.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<hr>

hr marks a paragraph-level change of topic, such as a scene change. It neither creates a section nor changes the document outline.

Write it as <hr>, without content or an end tag. It belongs to the flow content category and supports global attributes. It can also separate groups of options in select.

In the example, it separates two scenes. It does not replace a heading or section; sections that already signal a thematic change do not need an additional hr between them.

Examples

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Scene change</title>
</head>
<body>
  <p>At dusk, Maya left the village.</p>
  <hr>
  <p>The next morning, she reached the coast.</p>
</body>
</html>

Result

The browser displays the two paragraphs with a horizontal line between them:

At dusk, Maya left the village.

The next morning, she reached the coast.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources