th
Description
Syntax
HTML
<th attribute-name="attribute-value"></th>
Attributes
Name | Value | Description |
---|---|---|
abbr | string | Alternative label to use for the header cell when referencing the cell in other contexts. |
colspan | positive integer | Number of columns that the cell is to span |
headers | IDREFS | The headers for this cell |
rowspan | non-negative integer | Number of rows that the cell is to span |
scope | auto | row | col | rowgroup | colgroup | Specifies 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
Links
Related
Elements
- !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