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():

Example

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

Create a Kbd Object

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

Example

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

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


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.