Again this one is simple and used very often but can take a while to figure out, unless you know the easy way.
To add background colour to the text only should be easy, but it adds it to the whole element usually!
Just add a span inside of the element, and talk directly to that span instead.
1 2 3 4 5 6 7 8 9 |
<h1><span>My headline text</span></h1> <style> h1 span { background-color: blue; } </style> |