Define Table Structure?

  • This is HTML tag
  • We can use <ttable> tag to define Table
  • This is container tag which is having opening tag and Closing tag<ttable></Table>
  • Each table consists of "table row" which we can define as <tr>, which is in "Horizantal"
  • Each TR(table row) consists of either "th" table head (or)"td" table data
  • tr:table row
  • th:table head
  • td:table data
  • Features of table

  • Border: Border attributes consists of Border color
  • Bgcolor:Background represents to any color/image
  • Bgcolor:Background represents to any color/image
  • Height&width:Indicates the size of table. we can mention either in pixels or percentage of total row
  • Align:Postion of table, left,right,center
  • Cellspacing: Gap between cell to cell
  • Cellpadding:Gap between border to the cell to content in cell
  • Rowspan:Merge of two or more rows into single row
  • Columnspan:Merge of two or more columns into single column
  • Attributes of Table:

    Tag
    Attribute
    Parameter\value
    table
    Border
    pixels
    table
    Background
    color/image
    table
    Height
    Pixel (or) %
    table
    width
    Pixel (or) %
    table
    align
    Left,right,center
    table
    Cell Spacing
    pixels
    table
    Cell Padding
    pixels
    table
    rowspan
    Number of Rows
    table
    colspan
    Number of Columns