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)

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay