rt — ruby annotation text
The rt element marks ruby annotation text, such as a pronunciation guide. Use it as a direct child of ruby alongside the base text.
CKTIS / HTML
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
The rt element marks ruby annotation text, such as a pronunciation guide. Use it as a direct child of ruby alongside the base text.
The `ruby` element associates base text with a short annotation, such as a pronunciation guide for Japanese characters.
The `s` element marks content that is no longer accurate or relevant, such as a previous price. It does not mark deletions made while editing a document; use `del` for that purpose.
The samp element marks sample or quoted output from another program or computing system.
The script element embeds JavaScript or references an external file. The type attribute distinguishes classic scripts, modules, and data, while async and defer control execution timing.
The `search` element identifies a search or filtering region. It gives structure meaning but does not perform searches itself.
The `section` element groups content around a shared topic, typically with a heading. It is not a generic styling container.
The `select` element lets users choose among form options. Learn single and multiple selection, labeling, and the role of `name` when submitting data.
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.