The span element is inline, so it just changes the background for where you’ve placed it. Since it’s also within a
tag, if you want it to change the background for whitespace around the text too, then you can include that whitespace within the span.. For example, this would make the background change for some whitespace at the end of each line as well as behind the text (but only because ...