WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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");

Create a Kbd Object

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

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