Skip to content
loading...

TIL: The hr element is more than a horizontal line

stefanjudis profile image Stefan Judis twitter logo github logo Originally published at stefanjudis.com on ・1 min read  

You may have use the hr element for styling when you needed a horizontal line in your designs. Today I came across a tweet by Will Boyd sharing that the hr elements comes with semantic meaning! 😲

From the spec:

The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book.

Good to know!

twitter logo DISCUSS
Discussion
markdown guide
Classic DEV Post from Jul 26 '19

🎩 JavaScript Enhanced Scss mixins! 🎩 concepts explained

In the next post we are going to explore CSS @apply to supercharge what we talk about here....

Stefan Judis profile image
DevRel at Contentful. In love with web performance, new technologies, and accessibility – all the good stuff ✌️.