From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/element%2Fsmall.html | 96 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 devdocs/html/element%2Fsmall.html (limited to 'devdocs/html/element%2Fsmall.html') diff --git a/devdocs/html/element%2Fsmall.html b/devdocs/html/element%2Fsmall.html new file mode 100644 index 00000000..5f2c7931 --- /dev/null +++ b/devdocs/html/element%2Fsmall.html @@ -0,0 +1,96 @@ +

<small>: the side comment element

The <small> HTML element represents side-comments and small print, like copyright and legal text, independent of its styled presentation. By default, it renders text within it one font-size smaller, such as from small to x-small.

+

Try it

+
+

Attributes

+

This element only includes the global attributes.

+

Examples

+ +

Basic usage

+
+
+

html

+
<p>
+  This is the first sentence.
+  <small>This whole sentence is in small letters.</small>
+</p>
+
+

Result

+
+ + +
+
+

CSS alternative

+
+
+

html

+
<p>
+  This is the first sentence.
+  <span style="font-size:0.8em">This whole sentence is in small letters.</span>
+</p>
+
+

Result

+
+ + +
+
+

Notes

+

Although the <small> element, like the <b> and <i> elements, may be perceived to violate the principle of separation between structure and presentation, all three are valid in HTML. Authors are encouraged to use their best judgement when determining whether to use <small> or CSS.

+

Technical summary

+
Content categories Flow content, phrasing content
Permitted content Phrasing content
Tag omission None; must have both a start tag and an end tag.
Permitted parents Any element that accepts phrasing content, or any element that accepts flow content.
Implicit ARIA role generic
Permitted ARIA roles Any
DOM interface HTMLElement
+

Specifications

+
+ + +
Specification
HTML Standard
# the-small-element
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
small1121Yes15≤44.418414≤3.21.0
+

See also

+
+

+ © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small +

+
-- cgit v1.2.3