Tables versus Stylesheets
Table layout code:
Welcome to our website! |
|
Enjoy your stay! |
CSS-layout code:
As can be seen, the css code is much simpler, and there's a great deal less of it. In fact, in ordinary circumstances the upper portion of the code, ending at
would be stored in a exterior file to the webpage itself, and so only the lower portion of the code would have to be loaded by the browser.
The benefits don't simply end there. As you may notice, the non-css code requires every single element in the page to be individually formatted, while CSS allows all elements of a certain type to be formatted in one place. Added up, the code writing that is saved throughout an entire site is sizeable.
What's more, CSS information is cached by browsers. This means it only has to be loaded once, and thereafter is simply retrieved by the browser. So, rather than having to load formatting information repeatedly, CSS layouts only have to be loaded once. Thereafter, its a simple matter of surfing.
This saves bandwidth, which in turn saves real money. Less bandwidth means less cost for hosts, and thus reduced prices for clients. All of which makes it hard to understand why many designers still resist making full or even partial use of CSS.
At Website Magic, we pride ourselves on using full CSS in our web designs, and, where possible make use of pure-CSS layouts in place of tables, ensuring that your website operates as fast as possible.
Of course, we're happy to use tables. But, as they were intended, only to present tabular information.
Website Magic
Durham Business Centre
Littleburn Road
Langley Moor
Durham
DH7 8HG
t: 0191 378 3399
f: 0191 378 2220





