Inline
HTML 3.2
The small text element represents side comments and small print, such as copyright notices, legal restrictions, or disclaimers. It’s typically rendered in a smaller font size.
Interactive code playground requires JavaScript. Here's the code:
<p>Price: $99.99 <small>(excluding taxes)</small></p>
<footer><small>© 2024 Company Name. All rights reserved.</small></footer>
< small > fine print or side comment </ small >
The <small> element represents content that is less important or supplementary to the main content.
Interactive code playground requires JavaScript. Here's the code:
<footer>
<small>© 2024 Acme Corporation. All rights reserved.</small>
</footer>
Interactive code playground requires JavaScript. Here's the code:
<p>Get 50% off today! <small>*Terms and conditions apply</small></p>
<p><small>This product is not intended to diagnose, treat, cure, or prevent any disease.</small></p>
Interactive code playground requires JavaScript. Here's the code:
<p>
Win a $1000 prize!
<small>No purchase necessary. Void where prohibited.</small>
</p>
Interactive code playground requires JavaScript. Here's the code:
<p>
Photo by John Doe
<small>Licensed under CC BY-SA 4.0</small>
</p>
Interactive code playground requires JavaScript. Here's the code:
<p>
Last updated: December 11, 2024
<small>(Originally published: January 1, 2020)</small>
</p>
Interactive code playground requires JavaScript. Here's the code:
<div class="product">
<h3>Premium Widget</h3>
<p class="price">$99.99 <small>/month</small></p>
<p><small>Billed annually at $1,199.88</small></p>
</div>
Interactive code playground requires JavaScript. Here's the code:
<div class="pricing">
<h3>Pro Plan</h3>
<p class="price">$29<small>/month</small></p>
<ul>
<li>Unlimited projects</li>
<li>24/7 support</li>
<li>Advanced features</li>
</ul>
<small>Cancel anytime. No long-term contracts.</small>
</div>
Interactive code playground requires JavaScript. Here's the code:
<article>
<h2>Understanding HTML Semantics</h2>
<p>
By Jane Smith
<small>Published on December 11, 2024</small>
</p>
<p>Content goes here...</p>
<footer>
<small>Last edited: December 11, 2024 at 2:30 PM</small>
</footer>
</article>
Interactive code playground requires JavaScript. Here's the code:
<form>
<label>
Email address
<small>(We'll never share your email)</small>
</label>
<input type="email" placeholder="you@example.com">
<label>
Password
<small>(Must be at least 8 characters)</small>
</label>
<input type="password">
</form>
Interactive code playground requires JavaScript. Here's the code:
<footer>
<nav>
<a href="/about">About</a> |
<a href="/contact">Contact</a> |
<a href="/privacy">Privacy</a>
</nav>
<small>
© 2024 Company Name. All rights reserved.<br>
Trademarks belong to their respective owners.
</small>
</footer>
<!-- Don't use <small> just to make text smaller -->
< p >< small > This is my main content </ small ></ p >
<!-- Use CSS for styling -->
< p class = " small-text " > This is my main content </ p >
< h1 > Main Title < small > Subtitle </ small ></ h1 >
< p class = " subtitle " > Subtitle </ p >
This is a long paragraph of important content
that should not be in a small element...
This is a long paragraph of important content...
Customize small text appearance:
Interactive code playground requires JavaScript. Here's the code:
<style>
small {
font-size: 0.8em;
color: #666;
}
.disclaimer small {
display: block;
margin-top: 8px;
font-style: italic;
}
</style>
<div class="disclaimer">
<p>Special offer: 50% off!</p>
<small>Offer expires December 31, 2024. Terms apply.</small>
</div>
You can nest <small> for even smaller text:
Interactive code playground requires JavaScript. Here's the code:
<p>Regular text</p>
<p><small>Small text</small></p>
<p><small><small>Even smaller text</small></small></p>
Interactive code playground requires JavaScript. Here's the code:
<blockquote>
<p>The only way to do great work is to love what you do.</p>
<footer>
— Steve Jobs
<small>Stanford Commencement, 2005</small>
</footer>
</blockquote>
Interactive code playground requires JavaScript. Here's the code:
<ul>
<li>
Premium Plan - $29/month
<small>Best for teams</small>
</li>
<li>
Basic Plan - $9/month
<small>Perfect for individuals</small>
</li>
</ul>
Interactive code playground requires JavaScript. Here's the code:
<article>
<h3>Blog Post Title</h3>
<p>
<time datetime="2024-12-11">December 11, 2024</time>
<small>5 min read</small>
</p>
</article>
Screen readers read <small> content normally. The smaller size is visual only and doesn’t affect semantic importance.
Don’t make text so small it becomes hard to read:
font-size : 0.5 em ; /* Too small! */
font-size : 0.875 em ; /* Readable */
If information is important, don’t hide it in small print:
< small > Important safety warning: ... </ small >
< p >< strong > Important safety warning: </ strong > ... </ p >
Interactive code playground requires JavaScript. Here's the code:
<div class="offer">
<h3>Limited Time Offer!</h3>
<p>Get 3 months free!</p>
<small>
*New customers only. Credit card required.
Automatically renews at $9.99/month after trial.
Cancel anytime.
</small>
</div>
Interactive code playground requires JavaScript. Here's the code:
<form>
<input type="checkbox" id="consent">
<label for="consent">
I agree to the processing of my data
<small>
See our <a href="/privacy">Privacy Policy</a>
for details on data handling.
</small>
</label>
</form>
Browser Version Notes Chrome 1+ Full support Firefox 1+ Full support Safari 1+ Full support Edge 12+ Full support IE 3+ Full support
The <small> element has been supported since the earliest browsers.