My 2 cents worth....
Once using tables for html layout was all the rage, now css layout has taken over why?
It is simply because the html standards have evloved from html 4.0 to xhtml 1.0 and css2.0 and all major browsers now support it. > see www.w3c.org
Html 4.0 is still widly used and allows you to have "invalid" or a poorly structured html document.
xhtml "sort of" evloved from xml. xml like html is a tag based document <tag>text</tag> but it must be valid - absolutely correct in structure etc. Like wise xhtml should be a valid html document in its structure and tag usage. This is where css comes into play
To have a valid xhtml document you really should NOT or minamise the use of html to produce the design or layout. HTML should be used to hold the data or information in a meaningful way. Then css applyed to provided the desired appearence. The key concept is to sepearte data from design and this has real world benifits. No longer are websites only accessed by browsers, more and more small screen devices are being used, screen readers, programs reading website like search engines etc. So instead of expecting devices to interperate a large mash of html meaningful to the eye and little or no real relation to the information it holds the reverse is preferable.
So to provide a clean and valid standard for html xhtml 1.0 and css 2.0 have evolved and will continue to do so.
So why not tables for html layout. It's purely a matter of choice to stay with the old way or move on to the new.
From a developers point of view it is a serperior programing model
Regards
Brin
Enter your message below
Sign in or Join us (it's free).