HTML DOM Kbd Object







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });



HTML DOM Kbd Object



❮ Previous
Next ❯



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





❮ Previous
Next ❯

Popular posts from this blog

Python Lists

Aion

JavaScript Array Iteration Methods