HTML DOM Kbd Object


Kbd Object

The Kbd object represents an HTML <kbd> element.

Access a Kbd Object

You can access a <kbd> element by using getElementById():

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

Create a Kbd Object

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

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

Standard Properties and Events

The Kbd object supports the standard properties and events.


Related Pages

HTML tutorial: HTML Text Formatting Elements

HTML reference: HTML <kbd> tag



Color Picker

colorpicker