第二部分:几乎无人知晓的 5 个 HTML 标签
由 Mux 主办的 DEV 全球展示挑战赛:展示你的项目!
大家好,我是Aya Bouchiha,今天我将讨论另外 5 个你可能不太了解的 HTML 标签。
<dfn>
<dfn>:用于指定要定义的术语,大多数浏览器以斜体字样式显示此元素。
<p>
<dfn>Mathematics</dfn>
is the science of structure, order, and relation that has evolved from
counting, measuring, and describing the shapes of objects
</p>
<kbd>
<kbd> :用于定义键盘输入,以等宽字体显示。
<h1>How to rename a file ?</h1>
<p>
Select the file with a left click and then press <kbd>F2</kbd> on your
keyboard.
</p>
<samp>
<samp>:用于定义计算机程序的示例输出。
<p><samp>File not found.<br />Press <kbd>F1</kbd> to continue</samp></p>
<米>
<米>:表示已知范围内的标量值或分数。
更多详情
<div class="skills">
<label for="html">HTML</label>
<meter id="html" value="8" min="0" max="10">2 out of 10</meter><br>
</div>
<dl>、<dt> 和 <dd>
<dl> :与<dt>和<dd>一起使用,用于定义描述列表。
<dt>定义描述列表中的术语。
<dd>用于描述描述列表中的术语。
<dl>
<dt><dfn></dt>
<dd>for specifing a term</dd>
<dt><kbd></dt>
<dd>defining a keyboard input</dd>
<dt><samp></dt>
<dd> for defining sample output from a computer program</dd>
<dt><meter></dt>
<dd>for representing either a scalar value within a known range or a fractional value.</dd>
<dt><dl></dt>
<dd>for defining a description list</dd>
</dl>
概括
<dfn>:用于指定术语。
<kbd>:用于定义键盘输入。
<samp>:用于定义计算机程序的采样输出。
<meter>:表示已知范围内的标量值或分数。
<dl>:用于定义描述列表。
参考
祝你今天过得愉快!
文章来源:https://dev.to/ayabouchiha/part-2-5-html-tags-that-almost-nobody-knows-nj8