I'd like to have three words with a full stop after each word. How can I structure the html so that the text and full stop are included within each separate div but where the full stop can be targeted by a different selector. The reason is I'd like to have the color of the full stop different to the colour of the text, and can only do this if I define different target selectors. So far I have:
<div class="sometext">some
text</div>
<div class="sometext1">some
text</div>
<div class="sometext2">some
text</div>
<div class="full stop">.
</div>
<div class="full stop1">.
</div>
<div class="full stop2">.
</div>
Is possible to even write it all in a simpler, better way?
So some text in black, full stop red, some text black, full stop yellow, some text black, full stop green, without having to write it all as separate divs.
If you want different colours you'll have to have the full stops in span tags and have classes or id's for each span tag.