Tutorials 参考 练习 Videos NEW Menu
Paid Courses Website NEW

HTML <small> Tag


例子

Define a 较小的文字:

<p>This is some normal text.</p>
<p><small>This is some smaller text.</small></p>
来试试吧 »

More "来试试吧" examples below.


Definition and Usage

The <small> tag defines smaller text (like copyright and other side-comments).

Tip: This tag is not deprecated, but it is possible to achieve richer (or the same) effect with CSS.


Browser Support

Element
<small> Yes Yes Yes Yes Yes

Global Attributes

The <small> tag also supports the Global Attributes in HTML.


Event Attributes

The <small> tag also supports the Event Attributes in HTML.


More 示例

例子

Use CSS to define 较小的文字:

<html>
<head>
<style>
span.small {
  font-size: smaller;
}
</style>
</head>
<body>

<p>This is some normal text.</p>
<p><span class="small">This is some smaller text.</span></p>

</body>
</html>
来试试吧 »

Related Pages

HTML tutorial: HTML Text Formatting

HTML DOM reference: Small Object


Default CSS Settings

Most browsers will display the <small> element with the following default values:

例子

small {
  font-size: smaller;
}
来试试吧 »