Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

td

Description

The td element for HTML represents a data cell in a table.

Syntax

HTML

<td attribute-name="attribute-value"></td>

Attributes

Global

NameValueDescription
colspanpositive integerNumber of columns that the cell is to span
headersIDREFSThe headers for this cell
rowspannon-negative integerNumber of rows that the cell is to span

CSS

td
{
    display: table-cell;
    vertical-align: inherit;
}

Examples

1 · colspan

2 · headers

3 · rowspan

4 · CSS

caption

col

colgroup

table

tbody

tfoot

th

thead

tr

!doctype

a

abbr

address

area

article

aside

audio

b

base

bdi

bdo

blockquote

body

br

button

canvas

caption

cite

code

col

colgroup

data

datalist

dd

del

details

dfn

dialog

div

dl

dt

em

embed

fieldset

figcaption

figure

footer

form

h1

h2

h3

h4

h5

h6

head

header

hgroup

hr

html

i

iframe

img

input

ins

kbd

label

legend

li

link

main

map

mark

menu

meta

meter

nav

noscript

object

ol

optgroup

option

output

p

param

picture

pre

progress

q

rb

rp

rt

rtc

ruby

s

samp

script

search

section

select

slot

small

source

span

strong

style

sub

summary

sup

table

tbody

template

textarea

tfoot

th

thead

time

title

tr

track

u

ul

var

video

wbr

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu