159 users online (0 members and 159 guests)  


  HTML Table Tag



Digg button stumble


The <table> tag starts and ends the HTML table.It has a few attributes that it gives the table.


Here is an example


<table width="90%" bgcolor="#FFFFFF" border="2" cellspacing="2" cellpadding="3">


Here are the attributes

  • width * - Width of entire table, either in percentage or pixels

  • bgcolor - Sets the color for the table background

  • border * - Sets the border width

  • cellpadding * - Distance of the cell walls from its contents

  • cellspacing * - Sets the distance between table cells


* = mandatory


This code starts the table, but won't do anything if left by itself. Be sure to read the remaining HTML table tutorials and view the example code provided.


Back to the HTML menu.