
- HTML Home
- HTML Roadmap
- HTML Introduction
- HTML History & Evolution
- HTML Editors
- HTML Basic Tags
- HTML Elements
- HTML Attributes
- HTML Headings
- HTML Paragraphs
- HTML Fonts
- HTML Blocks
- HTML Style Sheet
- HTML Formatting
- HTML Quotations
- HTML - Comments
- HTML - Colors
- HTML - Images
- HTML - Image Map
- HTML - Frames
- HTML - Iframes
- HTML - Phrase Elements
- HTML - Code Elements
- HTML - Meta Tags
- HTML - Classes
- HTML - IDs
- HTML - Backgrounds
- HTML Tables
- HTML - Tables
- HTML - Table Headers & Captions
- HTML - Table Styling
- HTML - Table Colgroup
- HTML - Nested Tables
- HTML Lists
- HTML - Lists
- HTML - Unordered Lists
- HTML - Ordered Lists
- HTML - Definition Lists
- HTML Links
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML Color Names & Values
- HTML - Color Names
- HTML - RGB & RGBA Colors
- HTML - HEX Colors
- HTML - HSL & HSLA Colors
- HTML - HSL Color Picker
- HTML Forms
- HTML - Forms
- HTML - Form Attributes
- HTML - Form Control
- HTML - Input Attributes
- HTML Media
- HTML - Video Element
- HTML - Audio Element
- HTML - Embed Multimedia
- HTML Header
- HTML - Head Element
- HTML - Adding Favicon
- HTML - Javascript
- HTML Layouts
- HTML - Layouts
- HTML - Layout Elements
- HTML - Layout using CSS
- HTML - Responsiveness
- HTML - Symbols
- HTML - Emojis
- HTML - Style Guide
- HTML Graphics
- HTML - SVG
- HTML - Canvas
- HTML APIs
- HTML - Geolocation API
- HTML - Drag & Drop API
- HTML - Web Workers API
- HTML - WebSocket
- HTML - Web Storage
- HTML - Server Sent Events
- HTML Miscellaneous
- HTML - Document Object Model (DOM)
- HTML - MathML
- HTML - Microdata
- HTML - IndexedDB
- HTML - Web Messaging
- HTML - Web CORS
- HTML - Web RTC
- HTML Demo
- HTML - Audio Player
- HTML - Video Player
- HTML - Web slide Desk
- HTML Tools
- HTML - Velocity Draw
- HTML - QR Code
- HTML - Modernizer
- HTML - Validation
- HTML - Color Picker
- HTML References
- HTML - Cheat Sheet
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Character Entities
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
HTML - <small> Tag
Introduction to <small> Tag
The HTML <small> tag is used to present copyright and legal text, as well as other side comments. By default, the <small> tag reduces the font size by one level(e.g., from medium to small, or from x-large to large) and displays the text inline.
When the <small> tag is used in a nested form, it adjusts the font size of the enclosed text relative to parent tag's font size.
Syntax
Following is the syntax of <small> tag −
<small>.....</small>
Example: Creating a <small> Element
In the following example, we create an HTML document using the <small> tag to represent text in a smaller font. THe HTML code includes a heading, a small text example, and a paragraph with a sentence in a smaller font size.
<!DOCTYPE html> <html> <body> <h2> tutorialspoint </h2> <small> Example of small tag! </small> <p> This is the first sentence. <small>This whole sentence is in small letters.</small> </p> </body> </html>
Example: Styling Element Using CSS
Considering the following example, we use the <small> tag and CSS properties to style the content. The HTML code styles a heading, a span, and a small tag, displaying a sentence in a smaller font.
<!DOCTYPE html> <html> <head> <style> h2 { color: green; } span { color: black; } small { font-style: italic; color: green; font-family: courier; } </style> </head> <body> <h2> tutorials <span>point</span> </h2> <small> Example of small tag! </small> <p> This is the first sentence. <small>This whole sentence is in small letters. </small> </p> </body> </html>
Example: Using <small> tag
Let's consider the following example, where we use the <small> tag in a nested form. This means the <small> tag will adjust its font size relative to its parent element. The HTML code styles paragraphs and creates a heading, with a nested small tag to adjust the font size relative to the parent element.
<!DOCTYPE html> <html> <head> <style> p { font-size: 18px; } </style> </head> <body> <h2>Welcome To tutorialspoint</h2> <p> A nested small tag changes its font size with respect to the parent tag's font size! </p> <p> This is the first sentence. <small>This whole sentence is in small letters.</small> </p> </body> </html>
Example: Non-Nested Element
Following is the example, we use the small tag in a non-nested form. When the small tag is used separately, changing the font size of any other tag will not affect the font size of the small tag. The HTML code styles paragraphs, creates a heading, and displays a sentence with a smaller font size using the small tag.
<!DOCTYPE html> <html> <head> <style> p { font-size: 25px; } </style> </head> <body> <h2>Welcome To tutorialspoint</h2> <p>This is tutorialspoint </p> <small>Easy to learn! </small> </body> </html>
Tag | ![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|---|
small | Yes | Yes | Yes | Yes | Yes |