I'm trying to recreate this effect:
h1 span {
background: #000;
color: #fff;
padding: 0 4px;
}
<h1>
<span>This</span>
<span>is</span>
<span>Life</span>
</h1>
However, the project I'm working is meant to be used on a CMS, and I cannot expect my client to know how to add span tags (especially since it will require using a class on the actual site). So I'm wondering whether it is possible to recreate this effect without breaking each word into a separate element. I already know this is possible via JavaScript, and am looking specifically for CSS-only solutions.