View Single Post
Old Yesterday, 05:48 PM   #23
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 838
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
I've run across ebooks where the publisher sometimes uses bare tags and sometimes uses a class with the same properties as the bare tags. So I don't know if <p> and <p class="indent"> do the same thing unless I set it myself. I want everything, and I do mean everything, to use a class with a name that tells me what it does. If I decide to change what "indent" does, it's not any harder than going to the CSS and editing the <p> tag. Plus, I find my code looks better if every tag tells me specifically what it does. Simple to me means consistent. If other <p> tags have classes (for nonindented, blockquoted, centered, hanging, etc.), then ALL my <p> tags have classes. Simple and consistent. Works for me.

Edited to add: Plus, I don't have to "remember" anything. The name of the class tells me its basic function. The less I have to remember these days, the better.

Quote:
Originally Posted by JSWolf View Post
I know what the bare tags do. I know what <p>, <hr/>, and <h2> do. I know what a <p> does after an <h2>. I know what a <p> does after <hr/>. I don't need classes to tell me what these do. I know what my own CSS does. You'd get used to it. You don't need classes to satisfy your OCD. You just need to know what the CSS does when there is no class.

If you decide to change <p>, you just go to the CSS and edit p. It's as simple as editing your one class.

I find less classes makes the code look better. I go by the rule that hardly ever gets followed because the rule gets broken. Keep it simple.

Last edited by icallaci; Today at 12:40 AM.
icallaci is offline   Reply With Quote