HTML elements semantics

2007-10-11

A small guide on how to use some html tags that are poorly understood and many times misused

I see that these days many websites misuse some of the html tags. Of course, you can use the tags however you please, but sometimes they are used beyond their purpose.

What is wrong with this picture if by using css you can make your page look like you planned ?. The bad part is accessibility. Some limited browsers (console mode browser,phone browsers, etc) or search engines or some other xml reading application, or even people with disabilities (who can use custom css to display your page) can display your page in a different way than was intended. This can hurt your audience and even your search engine ranking.

So the solution is to make sure you use the proper tags when coding, here is a list of some html tag usage

Tip keep all your style in an separate external CSS file, don't pollute your tags with unnecessary attributes

Not long time ago people used tables to create page layout (some still use this technique), this is totally awkward and amateur page design.

For a complete reference on HTML and tags semantics check W3 Html specifications

This page will be updated as I will discover more "tag abuse" on the internet

Share this with the world

Related

Comments

No comments at this time

Make yourself heard

Categories

Subscribe

All Posts

CSS posts

All Comments

This post comments

© Copyright CodeAssembly

All code is licensed under GPL, unless otherwise noted