Define a smaller text:
<p>This is some normal text.</p>
<p><small>This is some smaller text.</small></p>
Try it Yourself »
More "Try it Yourself" examples below.
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.
Element | |||||
---|---|---|---|---|---|
<small> | Yes | Yes | Yes | Yes | Yes |
The <small>
tag also supports the Global Attributes in HTML.
The <small>
tag also supports the Event Attributes in HTML.
Use CSS to define smaller text:
<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>
Try it Yourself »
HTML tutorial: HTML Text Formatting
HTML DOM reference: Small Object
Most browsers will display the <small>
element with the following default values:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!