<small>:備註元素
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
<small>
HTML 元素表示側注和小字印刷,如版權和法律文本,獨立於其風格化呈現。默認情況下,它以比其中的文本小一號的字體大小呈現,例如從 small
到 x-small
。
嘗試一下
屬性
此元素僅包括全域屬性。
範例
基本使用
html
<p>
This is the first sentence.
<small>This whole sentence is in small letters.</small>
</p>
結果
CSS 替代方法
html
<p>
This is the first sentence.
<span style="font-size:0.8em">This whole sentence is in small letters.</span>
</p>
結果
注意事項
技術摘要
規範
Specification |
---|
HTML Standard # the-small-element |
瀏覽器相容性
BCD tables only load in the browser