Let’s say I have <p>hi my name is john</p>. I’m aware that I can use span to select the characters, and then use CSS to make their styles different from the rest of the text. However, if I want “name” and “john” to be different from the rest of the sentence, and from each other, is this even possible? If so, how is this achieved?
Thanks in advance!
Perhaps I miss the point, but it sounds like you’ve answered your own question. You seem to know that you can wrap
hiandjohnin span tags and then apply css to style them.http://jsfiddle.net/W4Vqk/
Or alternatively use class names
http://jsfiddle.net/ZegR2/