Applying semantics the “old school” way?

I was having an interesting conversation today regarding POSH with a colleague during the development of a back-end system. Over the years, we have both detached ourselves from the mind-set/methodology of using tables for layout in our markup (generally speaking – properly separating content from presentation). Although, towards the end of the conversation, we delved into the use of Microformats to further semantically markup items such as contact information and mailing addresses, and my colleague brought up an interesting assumption that he made regarding use of the class=”" on HTML markup to Microformat it. Essentially with this assumption, he concluded that applying CSS was the sole purpose of the class attribute and therefore applying classes to the markup only to get the data microformatted was the same as using the “table” tag to layout a page.

Now, I voluntarily teach a class covering semantic markup of HTML and applied CSS. A good number of the students traditionally in attendance are those that are still familiar with the “old school” markup techniques (and fresh out of college, no less). I have yet to have a student or another colleague have the same assumption, but I can clearly see now how that could be concluded without a proper education, so I am putting this out there educationally to help others with a similar assumption.

Here is what I quickly found on the topic to help him understand the “old school” way is not being duplicated again by “presentationally” applying classes to markup to solely “format” it. The first two seem a little light in their description though, so this has spurred my colleague to seek out what those “other” straight-forward uses of the class attribute are. What do you know of? Drop me a line and let me know.

  • W3C – says For general purpose processing by user agents
  • Web Design Group says An author could use <code CLASS=Java> when giving Java code – so use for self-identification in programming or further development
  • Tantek’s Blog – some other things to note

One Response to “Applying semantics the “old school” way?”

  1. Microformats have been talked about in the SEO world a little bit. The idea behind it is that you can help Google and the other search engines better understand your content, which in turn you are hoping this improves your rankings, gets you more exposure, etc.

    There are 2 articles that come to mind. The first is one on the hCard microformat which some people use to help local search. http://searchengineland.com/071015-123143.php

    The second is using the hCalendar format to help with events. http://searchengineland.com/080311-104251.php

Leave a Reply