Home > Article > Web Front-end > HTML kbd keyboard element
kbd: Keyboard Input Element. Semantic elements that represent keyboard keys and are often used to describe shortcut keys and keystrokes on web pages.
Style Specifications: Inline styles.
In order to highlight on the page, you can add styles to the kbd element:
kbd { -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px; border-style: outset; border: 1px solid #aaa; background: #fafafa; padding: 0px 3px 1px 3px; margin: 0px 0px 0px 0px; vertical-align: baseline; line-height: 1.8em; white-space: nowrap; }
==================================Series of articles========== ================================
This article: 1.6 HTML kbd keyboard element
A series of articles on the road to Web development