HTML
  Home arrow HTML arrow Page 2 - HTML Tables
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 Tables
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 3
    2008-01-30

    Table of Contents:
  • HTML Tables
  • Headings in Tables
  • Spanning More than One Row or Column
  • Using Tags Inside of Tables
  • Cellpadding and Cellspacing
  • Setting Backgrounds in Tables and Cells
  • Aligning Data within Your Cells

  • 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 Tables - Headings in Tables


    (Page 2 of 7 )

    So far we have used tables and created the semblance of a column header. In reality, you create column headers with the <th> tag, like so:


    <html>

    <body>

    <table border="1">

    <tr>

    <th>Cool People</th>

    <th>Nerds</th>

    </tr>

    <tr>

    <td>James Payne</td>

    <td>You</td>

    </tr>

    </table>

    </body>

    </html>

    Which displays:



    Cool People

    Nerds

    James Payne

    You

    Creating a Table Caption

    If you want to create a caption for your table, you can do so using the <caption> tag:


    <html>

    <body>

    <table border="2">

    <caption>Hey...I'm a Caption</caption>

    <tr>

    <td>Red</td>

    <td>Yellow</td>

    <td>Blue</td>

    <td>Green</td>

    <td>Orange</td>

    <td>Purple</td>

    </tr>

    </table>

    </body>

    </html>

    Here is the table with the caption:

      Hey...I'm a Caption

    Red

    Yellow

    Blue

    Green

    Orange

    Purple

    More HTML Articles
    More By James Payne


       · Thanks for stopping by to read my article on HTML tables, where we discuss a...
     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







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