What is an HTML Table Tag?

An author of a web page has many options in how to display data when using Hypertext Markup Language (HTML), including an HTML table tag. The HTML table tag is used by web page writers to organize data into tables for easier viewing. Different types of data, including text, images, and even other tables, can be inserted into the table cells. A variety of different elements and attributes can be used within the HTML table tag. A person wanting to input a table within an HTML document will need to understand these various components and how they work together.

The HTML table tag can be used to organize data into columns and rows. Columns are vertical lines of data and rows are horizontal lines. The HTML author can only insert data into the rows of a table because once the rows are inserted the columns will line themselves up. Some of the elements used within the HTML table tag are

If an HTML author wants a table to look just right, there are a variety of different attributes he can use to do so. The right attributes can change characteristic like the color of the text, the spacing between the cells, the background color of the table, and the borders. There are even ways to get rid of borders completely so that they do not show up in the user’s browser. While an author cannot directly change the data in the columns, he can change the different characteristics of the columns. To do this, he can use elements such as

In order to input a table into an HTML document, the table start tag

An example of how an HTML document may look when an author wants to use the HTML table tag is as follows:

This example will produce a four celled table with two columns down and two rows across.