HTML Tables

Tables are defined with the table tag.
  1. A table is divided into rows with the tr tag. (tr stands for table row)
  2. A row is divided into data cells with the td tag. (td stands for table data)
  3. A row can also be divided into headings with the th tag. (th stands for table heading)
  4. The td elements are the data containers in the table.
  5. The td elements can contain all sorts of HTML elements like text, images, lists, other tables, etc.

Sample Output