Nice effect with the KBD tag Tag(s): HTML/CSS
The HTML kbd tag is used for indicating the text to be entered by the user. The kbd tag surrounds the word/phrase. Habitually, the default look is done with Monospaced font like
Courier
.
With a CSS declaration, it is easy to provide a better look.
<HTML><HEAD><TITLE></TITLE></HEAD> <BODY> <style> kbd { margin: 0px 0.1em; padding: 0.1em 0.6em; border-radius: 3px; border: 1px solid rgb(204, 204, 204); color: rgb(51, 51, 51); line-height: 1.4; font-family: Arial,Helvetica,sans-serif; font-size: 10px; display: inline-block; box-shadow: 0px 1px 0px rgba(0,0,0,0.2), inset 0px 0px 0px 2px #ffffff; background-color: rgb(247, 247, 247); -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset; -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset; -moz-border-radius: 3px; -webkit-border-radius: 3px; text-shadow: 0 1px 0 #fff; } </style> All you need is to do to type <KBD>w</KBD> <KBD>w</KBD> <KBD>w</KBD> <KBD>.</KBD> <KBD>r</KBD> <KBD>g</KBD> <KBD>a</KBD> <KBD>g</KBD> <KBD>n</KBD> <KBD>o</KBD> <KBD>n</KBD> <KBD>.</KBD> <KBD>c</KBD> <KBD>o</KBD> <KBD>m</KBD><BR/> and press <KBD>Enter</KBD>. </BODY> </HTML>
and press Enter.