HTML
  Home arrow HTML arrow HTML, CSS and Tables: The Beauty of Data
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

HTML, CSS and Tables: The Beauty of Data
By: Chris Heilmann
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 79
    2004-11-17

    Table of Contents:
  • HTML, CSS and Tables: The Beauty of Data
  • What is a table?
  • W3C to the rescue
  • Summary needed
  • Styling tables: the days of the spacer GIF
  • Embracing CSS and separating "what is what" and "what it looks like"
  • Our CSS

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    HTML, CSS and Tables: The Beauty of Data


    (Page 1 of 7 )

    Assistive technology gags when it encounters HTML tables coded by the old school methods. Using the new coding lets you make tables more accessible to your users, and it really isn't that much harder--just remember what a table really is. Chris Heilmann reminds us, and gives an introduction to CSS.

    HTML tables are still frequently discussed on various mailing lists, forums and chat channels. Many people have realized that they are not the most clever method of defining the layout of a page.

    However, it is still quite common not to use the latest markup available to make them more usable and accessible, and many inexperienced CSS users moan about styling issues. This article shows the evolution of HTML tables in Web development and provides examples of up-to-date markup and styling practices.

    What we use(d) tables for

    Web development would not be the same if HTML hadn't had a table tag. In the days before CSS, they were the only way to create multi column layouts, visually appealing menus and turn those pixel-perfect print-inspired screen designs into something people can see on the web. We got used to tables being a necessity, we learnt how to force browsers to display them correctly and generally thought we got that "web development" thing licked.

    Tables used TABLE, TR, and TD elements and we were able to control them with the attributes align, valign, background, bgcolor, rowspan, colspan, cellpadding, cellspacing and border. We used all that--and transparent graphics--to create the look we were trying to achieve. Changing this look, or even re-arranging the whole page layout was a royal pain in parts unmentioned here, but we saw that as a necessary evil. Things turned bad when newer browsers came out, and our markup monsters started to fail. We stood there, blinking, and wondered what went wrong. Well, we used tables as visuals constructs, and we forgot what a table really is, that's what.

    More HTML Articles
    More By Chris Heilmann


       · The article is only the start. I hope some of you might be tempted to go on...
     

    HTML ARTICLES

    - Google Font API: Requesting a Bold Font Styl...
    - Google Font API: Using the Bi Shorthand
    - Working with the Google Font API`s bolditali...
    - Displaying Bold Text with the Google Font AP...
    - Using the Google Font API`s Bold Argument
    - The Google Font API`s i Shorthand
    - Using the Google Font API`s Italic Option wi...
    - Using the Google Font API`s Italic Option
    - The Google Font API: an Introduction
    - Using HTML 5`s Mark, Summary and Details Ele...
    - Embedding External Content with HTML 5`s Art...
    - Building Sidebars with HTML 5`s Aside Element
    - Working with HTML 5`s Footer Element
    - Using the HTML 5 Section Element
    - An Introduction to HTML 5: Doctype, Header a...







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 10 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek