Skip to navigation

PCPro-Computing in the Real World Printed from www.pcpro.co.uk

Register to receive our regular email newsletter at http://www.pcpro.co.uk/registration.

The newsletter contains links to our latest PC news, product reviews, features and how-to guides, plus special offers and competitions.

Real World Computing

Guided Miss-Aisle

Posted on 30 Mar 2009 at 15:09

Kevin Partner is on a mission to find a good guide to website development, and suggests some useful tools for online businesses.

The layout was created using tables, of course - tables within tables within tables, to be more precise. As a last straw, the designer had used the

tag to separate paragraphs rather than the blindingly obvious

tag. If ever anyone needed a basic book on web development, it was this designer - ten years ago this might have been an acceptable design and layout solution, but it's little short of criminal for a practising web designer to serve up outdated practice like this to a paying client. Exactly why it was done this way remains a mystery, although I strongly suspect ignorance and a lack of interest.

A few years ago, the quarrel over whether to use tables or CSS for layout was settled conclusively in favour of CSS, whose theoretical advantages had been crystal clear for a long time: more compact XHTML pages are easier to index and more accessible, plus you can completely change a site's appearance merely by editing one CSS file and leaving the XHTML untouched. The problem arose from the tardiness of the browser vendors in properly supporting CSS. No-one wanted to duplicate every site, once for users of modern browsers and again for the sizable minority of Netscape and IE5 users, so tabular layouts retained the practical advantage of working for everyone. This excuse, however, has ceased to be valid for some time.

In fact, the last browser you could make this excuse for was IE5.5, and looking at January's server logs for www.passyourtheory.co.uk, I see that accounted for 0.03% of all visitors and Netscape 0.01%, while IE6, 7 and 8 dominate and account for 79%, with Firefox on 17%, Safari 3% and Chrome less than 1%. IE6 may implement CSS less than perfectly, but it does it well enough to negate any argument in favour of tables. So why then do the current editions of almost all books aimed at beginners include a chapter on table-based layouts? Some of them even attempt to justify themselves by outlining the "advantages" of this approach, including the quite breathtaking assertion that tables are "much easier to learn and manipulate than CSS rules". Have you ever looked at the Source View of a complex table-based website? Could you make any sense of it? No, me neither.

As someone who's been developing training materials for 20 years now, it offends me when newcomers to our profession who've paid good money for a foundation in web design and development are immediately led off in the wrong direction. Not only do they have to learn all this nonsense about tags, tables and the rest of that old junk we used to use to make our web pages more interesting, but they're going to have to unlearn all of it again once they realise (if they ever do) that it isn't the way good designers and developers do things nowadays. Tables are designed for containing tabular data and that's it. There's very occasionally part of a layout that can only be practically realised using a table, but such instances are rare and should be a last resort.

So what's going on here? Why do all these books peddle such dross? There are only two reasons I can see: either ignorance or sheer laziness, and my money would be on the latter. Most of these books are now into their umpteenth editions and were originally written back when tables and font tags were the only way to achieve most design tricks. You can imagine the thought process that goes through the minds of editors and authors as they consider a new edition - to produce a book that teaches beginners the correct way to do things they'll need to dump huge sections of the existing text, as opposed to the far more appealing option of simply adding some extra chapters, like for example, CSS layouts. One of these major books, now in its eighth edition, has left all of the outdated techniques in place with a note saying "this is now deprecated" at the foot of each page, while another details the old approaches at the beginning and the new approaches at the end, giving no indication that one is better than the other.

1 2 3 4
Be the first to comment this article

You need to Login or Register to comment.

(optional)

advertisement

Most Commented Real World Articles
Latest Real World Computing
Latest Blog Posts Subscribe to our RSS Feeds
Latest News Stories Subscribe to our RSS Feeds
Latest Reviews Subscribe to our RSS Feeds

advertisement

Sponsored Links
 
SEARCH
SIGN UP

Your email:

Your password:

remember me

advertisement


Hitwise Top 10 Website 2008