Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML
IMCreator - Free Website Builder

HTML Tables

This page contains HTML table code - HTML codes for specifying or changing the look of your tables within your blog or web page.

HTML tables are created using the HTML <table> tag along with other tags that are nested inside it (such as the <tr> and <td> elements). The look and style of your tables is defined using Cascading Style Sheets (CSS).

Here, you can find heaps of examples that demonstrate how you can change the look of your tables.

Basic Table Code:

CodeResult

Cell 1 Cell 2
Cell 3 Cell 4

Table Text

Example:

Table headerTable header
Table cell 1Table cell 2
Table cell 3Table cell 4

Table Borders

Example:

Table headerTable header
Table cell 1Table cell 2
Table cell 3Table cell 4

Table Background Color

Example:

Table headerTable header
Table cell 1Table cell 2
Table cell 3Table cell 4

Table Background Image

Example:

Table headerTable header
Table cell 1Table cell 2
Table cell 3Table cell 4

HTML Table Elements

In HTML, tables are created using the following elements:

See the <table> element to see the exact syntax required to create tables.

Enjoy this page?

  1. Link to this page (copy/paste into your own website or blog):
  2. Link to Quackit using one of these banner ads.

Thanks for supporting Quackit!