Pages

11.03.2013

Tables

We can insert a table using this <table> tag.If you need to insert a raw the tag is <tr> and a also if you need to insert a cell the tag is <td>.

Table attributes:

  • Boarder :- Defines a table boarder size
<table boarder = size> (1,2,3...)
  • Width :- Defines the table width
<table width = pixel> (500,600,400,...)
  • Color:- Defines the background color(bgcolor) of the table
<table bgcolor = "Red">
  • Background:- Defines the background images of the table
<table background = "image name.extension">

Table Raw:

  • Color:- Defines the background color(bgcolor) of all the cells in the raw
<tr bgcolor ="Red">

Table Cell:

  • Color:- Defines the background color(bgcolor) of the cell
<td bgcolor ="Red">
  • Rowspan:- The number of this cell will merge
<td rowspan =2>  (2,3,4...)
  • Colspan:- The number of this rows will merge
<td colspan =2>  (2,3,4...)


No comments:

Post a Comment