<kbd>

The <kbd> tag produces stylized text made to look like a key on a keyboard or calculator.

Syntax

Attributes

Attributes for <kbd>
AttributeRequired?Values
name = "…"optionalstring

Children

The following may appear as children:Text

Parents

This element may appear as an immediate child of the following elements: <abbr> <acro> <alert> <alteration> <angles> <articletitle> <attribution> <author> <biblio> <caption> <cell> <creator> <date> <dblbrackets> <delete> <department> <description> <em> <entity> <fn> <foreign> <h> <idx> <init> <insert> <institution> <instruction> <intertext> <journal> <keyword> <li> <line> <location> <minilicense> <p> <personname> <pubtitle> <q> <role> <see> <seealso> <shortlicense> <shorttitle> <sq> <stale> <subtitle> <support> <term> <title> <url> <xref> <year>

Examples

For keys labeled by text

For keys labeled by symbols