Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / Knowledge base

Knowledge base

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 5788

HTML

selectedcontent — contents of the selected option

The `selectedcontent` element reflects the selected `option` contents inside a `select` control's button, without manually copying them with JavaScript.

Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

slot — a content placeholder in Shadow DOM

The slot element marks a place in a Shadow DOM tree for assigned nodes. When none are assigned, it represents its own fallback content.

Intermediate · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

small — side comments and small print

The `small` element marks short side comments, such as disclaimers, legal restrictions, or copyright information.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

source — alternative image and media resources

The `source` element declares alternative resources for `picture`, `audio`, or `video`. It displays nothing itself. Inside `picture` it requires `srcset`; inside `audio` and `video` it requires `src`. These uses must not be confused.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

span — a neutral text container

The `span` element groups a text fragment without giving it meaning of its own. It supports global attributes, such as `class` or `lang`.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

strong — strong importance, seriousness, or urgency

The strong element marks content of strong importance, seriousness, or urgency. It conveys semantic meaning rather than visual highlighting alone.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

The style element — an embedded CSS stylesheet

The `style` element embeds a CSS stylesheet in an HTML document. It contains rules with selectors, not page content. It is different from the `style` attribute on an individual element.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

sub — subscript

The sub element marks a meaning-bearing subscript, for example in a chemical formula or a variable identifier.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

summary — disclosure section label

The `summary` element describes a `details` section and lets users expand or collapse it without JavaScript.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

sup — superscript

The `sup` element marks a meaningful superscript, such as an exponent. It is not intended solely for decoration.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

table — data table

The `table` element represents related data in rows and columns. Use it for tabular data, not for arranging page elements.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

tbody — a group of table body rows

The `tbody` element groups rows that form the main data body of a table. It contains `tr` elements rather than cells directly, and lets one table contain several distinct groups of data rows.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

td — table data cell

The td element represents a data cell in an HTML table. It is a child of tr; unlike th, it does not represent a row or column header.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

template — an HTML fragment template

The `template` element holds an inert HTML fragment that a script can copy and insert into the document. Its contents are available through `content`, not as ordinary children of the element.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

textarea — multiline text control

The textarea element edits multiline plain text. Learn how its initial and current values differ, how to label it, and how it participates in a form.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

tfoot — table summary row group

The tfoot element groups rows summarizing table columns, such as totals. It belongs after the table's data rows.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

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.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

thead — table header row group

The `thead` element groups rows containing a table's column labels. Individual header cells use `th`.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

time — machine-readable dates and times

The `time` element marks up a date, time, or duration. Its `datetime` attribute pairs reader-friendly text with an unambiguous machine-readable representation.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

title — document title

The `title` element defines an HTML document's title. It belongs in `head` and identifies the page outside its content, for example in bookmarks.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

tr — table row

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.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

track — timed text tracks

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.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

u — non-textual annotation

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.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately
HTML

ul — unordered list

The `ul` element represents a list whose item order does not materially affect its meaning. Each list item is represented by `li`.

Basic · WHATWG HTML Living Standard; index snapshot date recorded separately