View Single Post
Old 06-15-2022, 07:16 AM   #5
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 329
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
I think of ID and CLASS as follows: when starting from scratch, don't use ID at all. It is a 'one-shot' designation. You can only use it once. A CLASS definition can be used as many times as you want. In the stylesheet it has a dot in front of it and the word is made up, something like .whatever{stylewhatever="something"; stylewhatever2="something"; stylewhatever3="something";} In the xhtml there is no dot and the CLASS is inside of a tag, such as, <P class="whatever">text</p> Total purists do not use CLASSES at all and go to the extra effort of using only styles. This requires extra typing. It has a great advantage of being able to see errors from the get-go, whereas classes are real head scratchers sometimes. Using classes lets you use advanced stuff that except for people who goof with ultracomplex stuff you probably don't need. Nevertheless, I do. Best regards, Pop
rjwse@aol.com is offline   Reply With Quote