Visit Mozilla.org

HTML:Element:kbd

From MDC

Contents

[edit] HTML Keyboard Input Element

<kbd>...</kbd> - The HTML Keyboard Input Element produces an inline element displayed in the browser's default monotype font (Lucida Console). This element was intended to identify text for the user to type in, but commonly is used to style any text in a fixed width font.

[edit] Example

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

[edit] Result

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

[edit] 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.

[edit] See also


HTML Elements
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
(Quick Links: HTML Element Cross Reference, HTML Category)