HTML Progress Bar with CSS-only Dynamic Labels

Mate Marschalko
8 min readMay 11, 2022

Pseudo-elements are awesome and there’s so much we can do with them! I’m specifically talking about the awesome ::before and ::after elements.

With these two pseudo-elements and a CSS function, we can display HTML attribute values on our web page.

We are going to work with the <progress> HTML element as it has a few exciting attributes we could use to enrich…

--

--

Mate Marschalko

Senior Creative Developer, Generative AI, Electronics with over 15 years experience | JavaScript, HTML, CSS