Creating Accessible Markups With CSS Display Contents

Improving your HTML markup with this CSS feature

Jose Granja
Better Programming
Published in
5 min readOct 4, 2021

--

CSS3 display:contents
Caption created by Author

The most common usage of the CSS display property is to define an element’s outer and inner layout. We most frequently use block, inline elements, flex, and grid.

All the specs for the display property can be found in the CSS Display Module Level 3. As of September…

--

--

Top Writer @Medium | 1M+ Views | Lead FE @Lingoda | I write weekly about web-development topics 📰 Support me at https://dioxmio.medium.com/membership 🙇