View video tutorial

HTML <kbd> Tag


The <kbd> tag defines keyboard input.

HTML <kbd> Tag

The <kbd> tag is used to represent keyboard input, voice input, or any other text entry.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.


<p>Select text then copy it by <kbd>Ctrl</kbd> + <kbd>C</kbd> and then paste it by <kbd>Ctrl</kbd> + <kbd>V</kbd>.</p>
Try it Now »

Click on the "Try it Now" button to see how it works.