DEV Community

Cover image for HTML tags | hr
Carlos Espada
Carlos Espada

Posted on • Edited on

1

HTML tags | hr

It is used to represent a thematic break in the flow of a set of paragraphs, for example a scene change in a story or a topic change within a section.

It has always been represented as a horizontal line, and although this is how visual browsers usually display it, <hr> is now defined in semantic terms rather than in terms of presentation, so if you want to draw a line horizontal should be done with CSS.

Has an implicit ARIA role separator.

  • Type: block
  • Self-closing: Yes
  • Semantic value: No

Definition and example | Support

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more