Horje

How to set Default CSS Settings for HTML <kbd> Tag

Most browsers will display the <kbd> element with the following default values.

index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<style>
kbd { 
  font-family: monospace;
}
</style>
</head>
<body>

<p>A kbd element is displayed like this:</p>

<kbd>Keyboard input</kbd>

<p>Change the default CSS settings to see the effect.</p>

</body>
</html>

Output should be:

How to set Default CSS Settings for HTML <kbd> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin