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.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The `selectedcontent` element reflects the selected `option` contents inside a `select` control's button, without manually copying them with JavaScript.
The slot element marks a place in a Shadow DOM tree for assigned nodes. When none are assigned, it represents its own fallback content.
The `small` element marks short side comments, such as disclaimers, legal restrictions, or copyright information.
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.
The `span` element groups a text fragment without giving it meaning of its own. It supports global attributes, such as `class` or `lang`.
The strong element marks content of strong importance, seriousness, or urgency. It conveys semantic meaning rather than visual highlighting alone.
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.
The sub element marks a meaning-bearing subscript, for example in a chemical formula or a variable identifier.
The `summary` element describes a `details` section and lets users expand or collapse it without JavaScript.
The `sup` element marks a meaningful superscript, such as an exponent. It is not intended solely for decoration.
The `table` element represents related data in rows and columns. Use it for tabular data, not for arranging page elements.
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.
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.
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.
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.
The tfoot element groups rows summarizing table columns, such as totals. It belongs after the table's data rows.
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`.