<kbd> Tag Examples
Examples of the kbd tag in HTML 5
Examples of using the <kbd> tag to display keyboard input
(see <kbd> tag demo above)
<p>To computer one terabyte, enter <kbd>1024*1024*1024*1024</kbd> in the calculator app.</p>
<div>
<style scoped="scoped">
kbd {
font-family: Monaco, Consolas, monospace;
font-weight: bold; }
</style>
<p>To computer one terabyte, enter <kbd>1024*1024*1024*1024</kbd> in the calculator app.</p>
</div>
<p>Example of using the <kbd> tag to display keyboard input along with sample output:</p>
<figure>
<style scoped="scoped">
kbd { font-weight: bold }
kbd, samp { font-family: Consolas, Monaco, monospace }
</style>
<pre><kbd>select 1024 * 1024 * 1024 * 1024 as " 1 Terabyte";</kbd><samp>
-------------
1 Terabyte
-------------
1099511627776</samp></pre>
</figure>