Should you add content with the ::before and ::after CSS pseudo-elements?

Separation of concerns is a key principle in web development. It states that:

Your HTML markup should only be responsible for holding the content of your document and nothing style-related and the CSS stylesheet should only contain styling declarations and not inject any content into the document.

Senior Front-end Web Developer, Creative Technologist with over 12 years experience. Loves pushing the limits of HTML and CSS.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

New R2i MSP Monitoring Agent

Falco — Runtime Security

Falco

Kotlin And Ceremonial Boilerplate- Some real examples from my App

Setting Up A Small Windows Domain

Weekly State of The Pad: Second Week of April 2022

Clinton Global Initiative partners support immediate recovery and response to COVID-19

Trends in Mobile Test Automation

Quild Mini🦄 #93: Descript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mate Marschalko

Mate Marschalko

Senior Front-end Web Developer, Creative Technologist with over 12 years experience. Loves pushing the limits of HTML and CSS.

More from Medium

Create a CSS-only Word Clock

The CSS :has() selector

Difference Between HTML and CSS

Using Just 2 CSS Class Display Text On Bootsratp 5 Card When Hover