The CSS “content” property accepts alternative text

Published - May 20, 2020

Developers often use before and after pseudo-elements (generated content) for the styling of elements in websites. With a few lines of extra CSS, it is possible to include icons, images, or even add text without adjusting the HTML.