HTML CSS examples for HTML Tag:kbd
kbd element marks user input.
samp element summary
Item | Value |
---|---|
Element | samp |
Local local attributes | none |
Changed in HTML5 | N/A |
Style
kbd {
font-family: monospace;
}
The following code shows how to use kbd element.
<!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>