Adam Adam - 9 months ago 127
CSS Question

css bold first word

How can I bold the first word of sentence using CSS selectors and is this a good/bad way to do this with respects to browser comparability?


<h2>this is a sentence</h2>



There is no ::first-word pseudo-element in CSS; you'll have to wrap the first word in an extra element and then select that.