How to Change the Color of the First Word in a Text – W3docs

This post was originally published on this site

Solutions with CSS and HTML. If you want to change the color of the first word of a text, you can use the CSS :before pseudo-element, which is used to add any element. Its value is defined with the content property. If it is not used, the content will not be generated and inserted.

Stay up to date
Register now to get updates on promotions and coupons.

Shopping cart