HTML <small> 標簽使文本字體比文檔的基本字體小一號(如大到中、中到小等)
在 HTML5 中,<small> 標簽用於標識次要的重要性,例如版權、旁注和法律聲明。
提示:<small> 標簽可以嵌套,這意味著我們可以在另一個內部多次使用 <small> 標簽,並且它會繼續減小字體大小,而不是周圍的文本。
用法
<small>Write your content here...... <small>
以下是關於 HTML <small> 標簽的一些規範
Display | Inline |
開始標簽/結束標簽 | 開始和結束標簽 |
Usage | textual |
示例
<!DOCTYPE html>
<html>
<head>
<title>HTML small tag</title>
</head>
<body>
<h2>Example of small tag</h2>
<p style="color:green;">This is normal font size.....
<small style="color:blue;">It is smaller than previous...
<small style="color:red;">It is smallest.</small>
</small>
</p>
</body>
</html>
輸出:

屬性:
Tag-specific 屬性:
<small> 標簽不包含任何特定屬性。
全局屬性:
<small> 標簽支持 HTML 中的 Global 屬性。
事件屬性:
<small> 標簽支持 HTML 中的 Event 屬性。
支持瀏覽器
Element | ![]() | ![]() | ![]() | ![]() | ![]() |
<small> | Yes | Yes | Yes | Yes | Yes |
相關用法
- HTML <span>用法及代碼示例
- HTML <spacer>用法及代碼示例
- HTML <select> size屬性用法及代碼示例
- HTML <s>用法及代碼示例
- HTML <script> charset屬性用法及代碼示例
- HTML <script> async屬性用法及代碼示例
- HTML <source> type屬性用法及代碼示例
- HTML <select> autofocus屬性用法及代碼示例
- HTML <section>用法及代碼示例
- HTML <sub>用法及代碼示例
- HTML <select> multiple屬性用法及代碼示例
- HTML <script> defer屬性用法及代碼示例
- HTML <select> autocomplete屬性用法及代碼示例
- HTML <samp>用法及代碼示例
- HTML <script> type屬性用法及代碼示例
- HTML <source> srcset屬性用法及代碼示例
- HTML <source> src屬性用法及代碼示例
- HTML <sup>用法及代碼示例
- HTML <source>用法及代碼示例
- HTML <source> media屬性用法及代碼示例
注:本文由純淨天空篩選整理自 HTML <small> tag。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。