Library tutorials & articles

Creating tables in HTML

Table headings

Table headings, make any item in the table align in the center of it's box and make it bold, saving a lot of HTML tags. Table headings, or <TH>, simplt replace the <TD> tags in the code for any item.

<TABLE BORDER>
<TR>
<TH> ITEM 1 </TH>
<TD> ITEM 2 </TD>
</TR>
<TR>
<TD> ITEM 3 </TD>
<TH> ITEM 4 </TH>
</TR>
<TABLE>

Item 1 Item 2
Item 3 Item 4

This technique is really simple but if used correctly can be really good. The effect stands out more if the table is wider, which I will cover next.

Comments

  1. 23 Apr 2007 at 04:31

    ei dude i learned a lot from ur tutorial... i don't wanna admit it but... i still don't have an idea of making html...

  2. 09 Jan 2003 at 06:06

    nice dude

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Creating tables in HTML.

Leave a comment

Sign in or Join us (it's free).

AddThis

Related podcasts

  • Top Web Design Mistakes

    Pete LePage is Product Manager of Internet Explorer Developer Division and he doesn’t want your web site to stink. Sharing from his talk given at TechEd 2008, Pete highlights 10 common web design mistakes and tells you how you can bypass the same blunders. Pete also tells us how future features o...

Events coming up

  • Dec 8

    Web Design World

    Boston, United States

    Join your colleagues and top experts in the Web field as Web Design World returns to Boston December 8-10, 2008 for three dynamic days of information, interaction, insight and inspiration.