<small>: Das Side-Kommentar-Element
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Das <small>
HTML-Element repräsentiert Nebenbemerkungen und Kleindruck, wie Urheberrechts- und Rechtstexte, unabhängig von seiner gestylten Darstellung. Standardmäßig wird der Text darin eine Schriftgröße kleiner angezeigt, zum Beispiel von small
zu x-small
.
Probieren Sie es aus
<p>
MDN Web Docs is a learning platform for Web technologies and the software that
powers the Web.
</p>
<hr />
<p>
<small
>The content is licensed under a Creative Commons Attribution-ShareAlike 2.5
Generic License.</small
>
</p>
small {
font-size: 0.7em;
}
Attribute
Dieses Element umfasst nur die globalen Attribute.
Beispiele
Grundlegende Verwendung
html
<p>
This is the first sentence.
<small>This whole sentence is in small letters.</small>
</p>
Ergebnis
CSS-Alternative
html
<p>
This is the first sentence.
<span class="small">This whole sentence is in small letters.</span>
</p>
css
.small {
font-size: 0.8em;
}
Ergebnis
Hinweise
Technische Zusammenfassung
Inhaltskategorien | Fließ-Inhalt, Ausdrucks-Inhalt. |
---|---|
Erlaubter Inhalt | Ausdrucks-Inhalt |
Tag-Auslassung | Keine; muss sowohl einen Start- als auch einen End-Tag haben. |
Erlaubte Eltern | Jedes Element, das Ausdrucks-Inhalt akzeptiert, oder jedes Element, das Fließ-Inhalt akzeptiert. |
Implizierte ARIA-Rolle |
generic
|
Erlaubte ARIA-Rollen | Beliebig |
DOM-Schnittstelle | [`HTMLElement`](/de/docs/Web/API/HTMLElement) |
Spezifikationen
Specification |
---|
HTML # the-small-element |