View Single Post
Old 10-01-2024, 07:16 PM   #24
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 479
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Turtle91 View Post
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?
foosion is offline   Reply With Quote