Spiegato, Home

Technology and Gadgets

What is an HTML Table Tag?

  • Published by Spiegato
  • 2 min read

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.

Key terms in this article

Related articles

  • In HTML, what is a Video Tag?

    The interactive nature of the Web often requires that sites feature embedded video content. At one point, there was no standard way to accomplish this…

  • What is an HTML Span Tag?

    Hyper Text Markup Language (HTML) is a specialized set of computer codes used to determine how a webpage appears. Each element is tagged with a specific…

  • In HTML, what is a Link Tag?

    Contrary to what the name implies, the hypertext markup language (HTML) link tag does not define a hyperlink. Rather, it links an HTML document to an…

  • In HTML, what is a Text Tag?

    Text tags, or HyperText Markup Language (HTML) tags, are commands placed around text to specify how the text is to appear on a webpage. Tags are the…

  • What is an HTML Code Tag?

    All HTML documents are made up of text only. These documents include both the text to be displayed and instructions on how it should be displayed by the…