Semantic XHTML

Posted in: Development

I’m starting to get more and more friends asking me semantic XHTML questions - wanting to do styling with CSS and good things like that. This is a great shift and I’m happy to help - however these folks are still generally asking the wrong questions when they come to me.

Semantic XHTML isn’t about replacing tables with divs, semantic XHTML is about using the HTML tag that best represents the data it is wrapping. If the text is a page or section title, use a heading tag (h1, h2, etc.) and apply your styling as needed. If you need to have a list of items for a menu or tab group, use an list.

There are lots of great tutorials about using HTML tags properly online - this one for example.

If you thinking about using semantic XHTML for a new project - congratulations, you’re on the right track. However, like any new technique, you’re going to be able to use it more effectively the better you understand it. Take some time and do some reading - pretty soon writing nice clean semantic XHTML will feel so natural it will be hard to consider doing anything else.

Popularity: 3% [?]

Posted September 8th, 2006 @ 10:28 AM

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over 2 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

Docs = Procrastion » « BBEdit 8.5 Released

About This Site

This is the personal web site of Alex King, a web developer in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

I'm voting for Barack Obama

Ads