Your markup should have meaning. Markup your content appropriately (e.g. put your address and phone number in the address element) and it becomes much more readable to search engines and other software used for data extraction. Using only div and span elements leaves much to be desired, semantically speaking. These elements are certainly indispensable, however, there are some cases where there are more meaningful elements to use. For example:
- Use
h1as your page title; useh2and on appropriately as sub-headings on the page. This provides an outline of your document. - Use lists (
dl,ol,ul) instead of manually placing numbers or bullets. - Use
addressfor any contact information on your page, including physical address, email address, phone numbers, and whatever else you would consider to be contact info. - Use
tableon data best represented in rows and columns. Usetheadandthto markup the column headings andtbodyfor the data itself.
Check the HTML spec for additional meaningful elements and get to work!
You can use the W3′s handy Semantic Data Extractor tool to test your new semantic web site to give you an idea of how it would be seen by software.
That does it for now. See you next time! Until then, read SEO and Validation.





Valid Flash Embed and Preloaders in Internet Explorer
Hello once again, web friends. Today I bring tidings of Flash preloaders and validity.
You may have noticed that with the embed code from my YouTube article that Flash movie preloaders don’t work in Internet Explorer, and the movie has to load entirely before it even displays at all. This is because Internet Explorer requires a different attribute and the removal of another in the
objecttag to let preloaders work properly. However, with different attributes, the Flash movie will not display at all in Firefox, so we must use Internet Explorer’s conditional comments to utilize two different openingobjecttags. Behold:The first line is the original that works in both IE and Firefox but doesn’t allow preloaders in IE. The second is the IE-only method that works with preloaders. Note the lack of a
dataattribute and the addition of aclassidattribute.Well, there you have it. Venture forth and embed Flash validly with preload animations!
Tags: Conditional Comments, Embed, Firefox, Flash, Internet Explorer, Preloader, Web Development, Web Standards, XHTML
Posted in Web Standards | 1 Comment »