1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
---
title: <small>
slug: Web/HTML/Element/small
tags:
- Element
- HTML
- HTML text-level semantics
- Reference
- Web
- font-size
translation_of: Web/HTML/Element/small
---
<h2 id="Sumari">Sumari</h2>
<p>L'element HTML petit (<code><small></code>) fa que la mida de la font del text sigui d'una mida més petita (per exemple, de gran a mitjana o de petit a x-petit) fins a la mida mínima de la font del navegador. En HTML5, aquest element és reutilitzat per representar comentaris secundaris i lletra petita, incloent els drets d'autor i el text legal, amb independència del seu estil en la presentació.</p>
<h2 class="editable" id="Context_d'ùs">Context d'ùs</h2>
<table class="standard-table">
<tbody>
<tr>
<td>Categories de contingut</td>
<td><a href="/en/HTML/Content_categories#Flow_content" title="en/HTML/Content categories#Flow content">Contingut dinàmic</a>, <a href="/en/HTML/Content_categories#Phrasing_content" title="en/HTML/Content categories#Phrasing content">phrasing content</a></td>
</tr>
<tr>
<td>Contingut permès</td>
<td><a href="/en/HTML/Content_categories#Phrasing_content" title="en/HTML/Content categories#Phrasing content">Phrasing content</a></td>
</tr>
<tr>
<td>Omissió de l'etiqueta</td>
<td>Cap, <span id="result_box" lang="ca"><span>ha de tenir</span> <span>tant una</span> <span>etiqueta d'inici</span> <span>i una </span><span>de tancament</span></span> .</td>
</tr>
<tr>
<td>Elements pares permesos</td>
<td>Qualsevol element que accepti <a href="/en/HTML/Content_categories#Phrasing_content" title="https://developer.mozilla.org/en/HTML/Content_categories#Phrasing_content">phrasing content</a>, o qualsevol element que accepti <a href="/en/HTML/Content_categories#Flow_content" title="en/HTML/Content categories#Flow content">contingut dinàmic</a>.</td>
</tr>
</tbody>
</table>
<h2 class="editable" id="Atributs">Atributs</h2>
<p>Aquest element només inclou els<span style="line-height: 21px;"> </span><a href="/en-US/docs/Web/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">atributs globals</a><span style="line-height: 21px;">.</span></p>
<h2 id="DOM_Interface" name="DOM_Interface">Interfície DOM</h2>
<p>Aquest element implementa la interfície {{domxref("HTMLElement")}}.</p>
<div class="note">
<p><strong>Nota d'implementació: </strong>fins Gecko 1.9.2 incloso, Firefox implementa la interfície {{domxref ("HTMLSpanElement")}} per a aquest element.</p>
</div>
<h2 id="Example_1" name="Example_1">Exemples</h2>
<h3 id="Exemple_1">Exemple 1</h3>
<pre class="brush: html"><p>This is the first sentence. <small>This whole sentence is in small letters.</small></p>
</pre>
<h4 id="Result" name="Result">Resultat</h4>
<p>This is the first sentence. <small>This whole sentence is in small letters.</small></p>
<h3 id="Example_2" name="Example_2">Exemple 2 (CSS alternatiu)</h3>
<pre class="brush: html"><p>This is the first sentence. <span style="font-size:0.8em">This whole sentence is in small letters.</span></p>
</pre>
<h4 id="Result_2" name="Result_2">Resultat</h4>
<p>This is the first sentence. <span style="font-size: 0.8em;">This whole sentence is in small letters.</span></p>
<h2 id="Especificacions">Especificacions</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Especificació</th>
<th scope="col">Estat</th>
<th scope="col">Comentari</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-small-element', '<small>')}}</td>
<td>{{Spec2('HTML5 W3C')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('HTML4.01', '/present/graphics.html#edef-SMALL', '<small>')}}</td>
<td>{{Spec2('HTML4.01')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Notes" name="Notes">Notes</h2>
<p>Encara que l'element <code><small></code>, igual que els elements <code><b></code> i <code><i></code>, poden ser percebuts en violar el principi de separació entre l'estructura i la presentació, els tres són vàlids en HTML5. S'anima els autors a utilitzar el seu judici per determinar si s'ha d'utilitzar <code><small></code> o CSS.</p>
<h2 id="See_also" name="See_also">Veure</h2>
<ul>
<li>{{ HTMLElement("b") }}</li>
<li>{{ HTMLElement("font") }}</li>
<li>{{ HTMLElement("style") }}</li>
<li>HTML 4.01 Specification: <a class="external" href="http://www.w3.org/TR/html4/present/graphics.html#h-15.2">Font Styles</a></li>
</ul>
<div>{{ HTMLRef }}</div>
|