DEV Community

Cover image for HTML tags | hr
Carlos Espada
Carlos Espada

Posted on

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 | Example | Support

Discussion (0)