Table cell

Table cell

A table cell is one grouping within a table. Cells are grouped horizontally (rows of cells) and vertically (columns of cells). Usually information on the top header of a table and side header will "meet" in the middle at a particular cell with information regarding the two headers it is collinear with.

HTML Usage

Kinds of cells in HTML

A table cell in HTML is a non-empty element and should always be closed. There are two different kinds of table cells in HTML: normal table cells and header cells. <td> denotes a table cell, while <th> denotes a table header. The two can be used interchangeably, but it is recommended that header cells be only used for the top and side headers of a table.

yntax

A table cell also must be nested within a <table> tag "and" a <tr> (table row) tag. If there are more table cell tags in any given row than in any other, the particular <tr> must be given a "colspan" celldeclaring how many columns of cells wide it should be.

Example

An example of an HTML table containing 4 cells:

Cell 1Cell 2
Cell 3Cell 4
HTML source:
Cell 1 Cell 2
Cell 3 Cell 4

Colspan and Rowspan

Every row must have the same number of table data cells, occasionally table data cells have to span more than one column or row. In this case the tags colspan and/or rowspan are used - where they are set to a number.

ee also

*
*Table (information)
*Table (HTML)

External links

* [http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2.6 TH and TD elements]
* [http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/td.asp DHTML Reference: td]
* [http://www.idocs.com/tags/tables/_TD.html TD Tag]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Table cell — Ячейка таблицы …   Краткий толковый словарь по полиграфии

  • Cell — Cell(s) may refer to:In science: * Cell (biology), the basic organizational unit of all living organisms * Cell (journal), a scientific journal * Cell (geometry), a three dimensional element that is part of a higher dimensional object. * Storm… …   Wikipedia

  • Cell culture — in a Petri dish Epithelial cells in culture, stained for keratin (red) an …   Wikipedia

  • Cell Jr. — Cell (Dragon Ball) Pour les articles homonymes, voir Cell. Cell Personnage de Dragon Ball …   Wikipédia en Français

  • Cell Press — Parent company Elsevier Founded 1986 Founder Benjamin Lewin Country of origin United States Headquarters location Cambridge, Massachusetts …   Wikipedia

  • Cell Junior — Personnage de Dragon Ball Naissance 26 mai 767, Terre Origine …   Wikipédia en Français

  • Table (Dragon Ball) — Pour les articles homonymes, voir Table (homonymie). Table Personnage de Dragon …   Wikipédia en Français

  • cell — cell, cell entry See contingency table …   Dictionary of sociology

  • Table of nuclides (combined) — Isotope colour chart PLUS = ! The various tables below (scroll down) show the known isotopes of the chemical elements. [The data for these tables came from Brookhaven National Laboratory which has an interactive [http://www nds.iaea.org/nudat2/… …   Wikipedia

  • Cell (biology) — Allium cells in different phases of the cell cycle …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”