Diving into the ::before and ::after Pseudo-Elements
This article is a gold mine about what we can do with ::before
and ::after
pseudo elements. We can use them to be decorative, to display quotes, to display HTML element's attributes, to play with images, to replace content, to control layout and even more.
https://codersblock.com/blog/diving-into-the-before-and-after-pseudo-elements/