HTML DOM Kbd Object

Kbd object

The Kbd object represents the HTML <kbd> element.

Access the Kbd object

You can use getElementById() to access the <kbd> element:

var x = document.getElementById("myKbd");

Try It Yourself

Create a Kbd object

You can use the document.createElement() method to create a <kbd> element:

var x = document.createElement("KBD");

Try It Yourself

Standard Properties and Events

Kbd Object Supports StandardsPropertiesandEvents.

Related Pages

HTML Tutorial:HTML Text Formatting Elements

HTML Reference Manual:HTML <kbd> Tag