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

th

Description

The th element for HTML represents a header cell in a table.

Syntax

HTML

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

Attributes

Global

NameValueDescription
abbrstringAlternative label to use for the header cell when referencing the cell in other contexts.
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
scopeauto | row | col | rowgroup | colgroupSpecifies what set of cells the th element applies to

CSS

th
{
    display: table-cell;
    font-weight: bold;
    text-align: center;
    vertical-align: inherit;
}

Examples

1 · abbr

2 · colspan

3 · headers

4 · rowspan

5 · scope

6 · CSS

caption

col

colgroup

table

tbody

td

tfoot

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

td

template

textarea

tfoot

thead

time

title

tr

track

u

ul

var

video

wbr

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu