<kbd>

  • Revision slug: HTML/Element/kbd
  • Revision title: kbd
  • Revision id: 81451
  • Created:
  • Creator: Ms2ger
  • Is current revision? No
  • Comment Cleanup; 11 words added, 28 words removed

Revision Content

HTML Keyboard Input Element

<kbd>...</kbd> - The HTML Keyboard Input Element produces an inline element displayed in the browser's default monotype font. This element is used to identify user input.

Example

   Type the following in the Run dialog: <kbd>cmd</kbd><br />Then click the OK button.

Result

Type the following in the Run dialog: cmd
Then click the OK button.

Note

A CSS rule can be defined for the kbd selector to override the browser's default font face. Preferences set by the user might take precedence over the specified CSS.

See also

{{ HTML:Element_Navigation() }}

{{ languages( { "pl": "pl/HTML/Element/kbd" } ) }}

Revision Source

<h2 name="HTML_Keyboard_Input_Element">HTML <em>Keyboard Input</em> Element</h2>
<p><strong>&lt;kbd&gt;...&lt;/kbd&gt;</strong> - The HTML Keyboard Input Element produces an inline element displayed in the browser's default monotype font. This element is used to identify user input.</p>
<h3 name="Example">Example</h3>
<pre class="eval">   Type the following in the Run dialog: &lt;kbd&gt;cmd&lt;/kbd&gt;&lt;br /&gt;Then click the OK button.
</pre>
<h4 name="Result">Result</h4>
<p>Type the following in the Run dialog: <code>cmd</code><br>
Then click the OK button.</p>
<h3 name="Note">Note</h3>
<p>A CSS rule can be defined for the <code>kbd</code> selector to override the browser's default font face. Preferences set by the user might take precedence over the specified CSS.</p>
<h3 name="See_also">See also</h3>
<ul> <li><a href="/en/HTML/Element/code" title="en/HTML/Element/code">HTML Code Element</a></li> <li>HTML4 Specification: <a class="external" href="http://www.w3.org/TR/html4/struct/text.html#h-9.2.1">Phrase Elements</a></li> <li>HTML5 Specification: <a class=" external" href="http://www.whatwg.org/html/#the-kbd-element" title="http://www.whatwg.org/html/#the-kbd-element">The <code>kbd</code> element</a></li>
</ul>
<p>{{ HTML:Element_Navigation() }}</p>
<p>{{ languages( { "pl": "pl/HTML/Element/kbd" } ) }}</p>
Revert to this revision