Outsourcing Projects

Friday, May 2, 2008

Web Page Layouts Shouldn't Use Tables

I've been focusing on CSS positioning and creating tableless (and frameless) layouts, but maybe you don't really understand why you want to do this. After all, there are still people using browsers that don't reliably support these types of layouts. Plus, they can be harder to build, and most HTML editors don't yet support them. But there are still many reasons to learn how to write CSS layouts.

Valid XHTML

This is the number one reason to use CSS for layout. If you use tables for layout, you are writing invalid XHTML. Tables are only valid in XHTML when displaying tabular data. For example, the data in the accompanying image is something that might be created from a spreadsheet or database. It is "tabular data" and should be displayed in a table.

Using CSS to position and layout your pages is the only valid way to get the designs you used to use tables to create.

Read More Article...

No comments: