Quote:
Originally Posted by Turtle91
You are exactly right. Semantics in the html <h2/p/div/ol/ul/table> etc to define WHAT it is… the css has how it LOOKS.
I have seen some nasty code that defined <p class="paragraph"> instead of just defining the standard paragraph css and using <p>. Of course, if you have a SPECIAL paragraph that you want to give a different look, you can define it with a class <p class="special">.
|
One issue with <p> is distinguishing paragraphs with a text-indent and those without. Some CSS defines <p> with a text-indent and then has a class="noindent", typically for the first paragraph of a section, while others define <p> without an indent, then add a class="indent" for every paragraph other than the first.
Is one of these more canonical?