<kbd> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:kbd

Introduction

kbd element marks user input.

samp element summary

ItemValue
Elementsamp
Local local attributes none
Changed in HTML5N/A

Style

kbd {
   font-family: monospace;
}

The following code shows how to use kbd element.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <p>
         I typed: 
         <kbd>HTML</kbd>  
      </p><!-- w w w. j av  a 2s .  c  o m-->
   </body>
</html>

Related Tutorials