answersLogoWhite

0

What does a table tag do in HTML?

Updated: 8/10/2023
User Avatar

Wiki User

11y ago

Best Answer

A TABLE in HTML is a way to display data in rows and colums. A simple example is shown below and the atributes that can be used.

First Row - First CellFirst Row - Secon Cell
Second Row - First CellSecond Row - Second Cell

This opens the table then defines a row. Within that row you are placing two data items. You are then closing the row. You are then defining the second row. Within that row you are placing the next two data items. You are then closing the row. You are then closing the table.

* … *

* … *

*

* *

* *

*

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Some advantages to using tabs only include that tabs:

  • are a simple, one keystroke function
  • can be set anywhere on a page
  • set off certain information, such as a return address on a business letter

Tabs cannot:

  • organize large columns of data
  • present a clean view of data
  • be easily restructured to allow for a change in data or additional data
  • always hold their alignment between different programs
  • always hold their alignment when copied to E-mail

Rather than tabs, tables can:

  • provide a "quick view" of data
  • organize any amount of data
  • hold large amounts of data
  • be easily expanded to hold more data
  • can be reorganized, such as alphabetizing
  • can help to see patterns in data
  • can help to see missing data, especially in large amounts of data
  • can help to see skewed data or data-heavy columns

Example: You work with 3 schools to oversee the Track and Field Teams. Each team must have 12 students plus four alternates. The School Board wishes that each team has at least 1/4th made up of females. Each team meets for 2 hour drills three times a week, on M-W-F, and students must attend 90% of their practice drills in a 10 week period. In addition, each student must maintain a C-average; each student must bring documentation to show you their grades during Week 1, Week 5, and Week 10.

Design a way to present all of these factors by only using the Tab feature in Word.

Design a way to present all of these factors by using a single Table, with however many columns you need.

You will quickly see that it is less confusing to use a table. The table can hold most or all of the data elements given in the description. It would be easy to add data as the weeks progressed. It would be easy to see which students complied with the rules, and which were missing the requirements (attendance + grades).

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Creates a table with rows and columns. By default the border is invisible so you have to mention border-size in the table tag or the css code. Here is a sample

<table width='600px' border='2px solid black'>

<tr>

<th>Country</th>

<th>Capital</th>

</tr>

<tr>

<td>USA</td>

<td>Washington</td>

</tr>

<tr>

<td>Egypt</td>

<td>Cairo</td>

</tr>

<tr>

<td>Sri Lanka</td>

<td>Colombo</td>

</tr>

</table>

Table tags are not recommended for form elements any more and div tag is currently used instead

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

HTML Tables are best to use when you have to display data in tabular form or the way you see it in an MS Excel spreadsheet. Let us say you logon to a website to see your examination results, and the website shows the results like

Maths 75, English 82, Science 77 etc...

You may understand the results but it is not something that would be nice to see and easy to understand for a layman. Instead if the output is like

Subject Marks

English 75

Maths 82

Science 77

etc..

It is easier to understand and interpret the website.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

Tables are very useful for HTML as they arrange the data. Some data needs to be organized as tables so are very important.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does a table tag do in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which HTML tag symbolizes a table cell?

The &lt;td&gt; tag defines a cell. It stands for table data.


What is the functin of the tr in HTML?

The &lt;tr&gt; tag in HTML functions to define a table row. It's part of a &lt;table&gt; tag's body, and is used to contain either table headers &lt;th&gt; or table cells &lt;td&gt;.


What does the HTML tag TD create?

The &lt;td&gt;&lt;/td&gt; tag creates a table data cell. This is one of the boxes within an HTML table, and it intended to hold data (as opposed to a &lt;th&gt; which represents a table heading.) Table cells are always contained within a table row &lt;tr&gt; tag.


How do you use border in HTML?

Border can be an attribute in html. For example, in the table tag. This will put a border around the table.As another example, it can be used in the img tag.


What is the HTML code to make link inside a table?

You have to use the anchor tag to make a link. The code will be &lt;a&gt;&lt;table&gt;Table-Stuff&lt;/table&gt;&lt;/a&gt;.


Which HTML tag would be apply the bgcolour attribute to change the background color of single table row?

The tr tag.


Why use div in HTML?

Its typically used for a tabless design. Replaces &lt;table&gt; tag.


What is the A HTML tag called?

The HTML tag is called the "anchor" tag.


What is a tag when using Html?

A Tag in HTML can be compared to a keyword in any programming language. It instructs the browser about how the subsequent pieces of text must be parsed and displayed. A Tag in HTML is enclosed within the &lt;&gt; symbols. Any text between the &lt;HTML&gt; and &lt;/HTML&gt; tags is considered HTML content and the browser will handle it the way HTML code is to be handled. There are numerous tags available in HTML. Some are * &lt;BR&gt; - Line Break * &lt;HR&gt; - Horizontal Line * &lt;TABLE&gt; - To display a table (Like a spreadsheet with heading &amp; cells) * &lt;FORM&gt; - To display UI forms * etc...


What HTML tag is used to mark the top of the page?

The first tag you use when developing an HTML document is the tag. The first tag you use for the main content of your page is the tag. is the tag that marks the top of an HTML page. The minimum required first like is , which starts the definition of the page content.


How do you make HTML tables?

There are several tags used to create HTML tables. The minimum requirement are the &lt;table&gt; (start of the table), &lt;tr&gt; (row tag), and &lt;td&gt; (cell tag) tags. You use &lt;table&gt; and the beginning and &lt;/table&gt; at the end of your entire table. You use the &lt;tr&gt;&lt;td&gt;content&lt;/td&gt;&lt;td&gt;content&lt;/td&gt;&lt;/tr&gt; tags to identify the rows and cells within the rows.


Left align table HTML?

I believe you can only align things in CSS. Using CSS left-aligning the table would require doing this:YOUR TABLE HEREThen in the part you would write this:#table{text-align: left}If you didn't get what I just said I suggest going to W3schools.com and going to the CSS tutorial.