The best HTML <kbd> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Differences between HTML 4.01 and HTML5,Global Properties,Event Properties,related articles,

HTML <kbd> tag

Examples

Formatted text in the document:

<kbd>键盘输入</kbd>


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Most browsers support <kbd> tag.


Tag definitions and instructions

<Kbd> tag defines text keyboard.

Tip: <kbd> tag is deprecated, not recommended, but you can achieve various effects through CSS.

All tags phrase:

标签 描述
<em> 呈现为被强调的文本。
<strong> 定义重要的文本。
<dfn> 定义一个定义项目。
<code> 定义计算机代码文本。
<samp> 定义样本文本。
<kbd> 定义键盘文本。它表示文本是从键盘上键入的。它经常用在与计算机相关的文档或手册中。
<var> 定义变量。您可以将此标签与 <pre> 及 <code> 标签配合使用。


Differences between HTML 4.01 and HTML5

no.


Global Properties

<kbd> tag supports the global attributes, view complete the property sheet HTML Global Attributes .


Event Properties

<kbd> tag supports all HTML event attributes .


related articles

HTML Tutorial: HTML text formatting

HTML <kbd> tag
10/30