th — table header cell
The th element represents a table header cell, whereas td represents a data cell. The scope attribute identifies which cells a header applies to.
CKTIS / HTML
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The th element represents a table header cell, whereas td represents a data cell. The scope attribute identifies which cells a header applies to.
The `thead` element groups rows containing a table's column labels. Individual header cells use `th`.
The `time` element marks up a date, time, or duration. Its `datetime` attribute pairs reader-friendly text with an unambiguous machine-readable representation.
The `title` element defines an HTML document's title. It belongs in `head` and identifies the page outside its content, for example in bookmarks.
The `tr` element represents a row of cells in an HTML table. It groups `td` data cells and `th` header cells; it is neither a cell itself nor a row group.
The track element attaches an external, time-aligned text track to audio or video, such as dialogue subtitles, captions including sound information, or metadata. It does not create a separate visible element on its own.
The u element marks text with a visible non-textual annotation, such as a spelling-error indication. It is not a general-purpose element for emphasis or decorative underlining.
The `ul` element represents a list whose item order does not materially affect its meaning. Each list item is represented by `li`.
The var element marks a variable, parameter, constant, physical quantity, or placeholder in prose. It does not declare JavaScript variables.
The `video` element embeds a movie, optionally with audio. It provides browser controls and lets you specify the media source.
The wbr element marks a position where the browser may wrap text onto another line, without forcing a line break.
An HTML comment uses `<!-- ... -->` to record notes in source code. Its contents are not displayed as page text. Comments cannot be nested, and their contents must obey specific syntax restrictions.
Learn three complementary Chrome DevTools views: Elements shows the DOM, Computed explains resolved CSS values, and the accessibility tree lets you inspect semantics exposed to assistive technology.