On 16/12/2011 18:26, Nick Sabalausky wrote:
<snip>
For example, I have an articles section on my site that (currently) uses
TangoCMS. I neither know nor care what doctype TangoCMS is sending out (and
I have even less interest in mucking with it's internals to change it), and
yet when I want to bold or italicize something in a post, I've started going
back to<b> and<i>. Why?
A. They're not as insanely verbose as<span style="font-weight: bold;
font-style: italic">
<snip>
But you shouldn't be using <span style="font-weight: bold; font-style: italic"> anyway.
You should be looking at what the boldness or italicness _means_, and either using the
appropriate semantic HTML element or (if one doesn't exist) defining a CSS class named
after this semantic.
This is also about making code self-documenting.
Stewart.