diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:15 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:15 -0500 |
commit | 4b1a9203c547c019fc5398082ae19a3f3d4c3efe (patch) | |
tree | d4a40e13ceeb9f85479605110a76e7a4d5f3b56b /files/ca/web/html/element/small/index.html | |
parent | 33058f2b292b3a581333bdfb21b8f671898c5060 (diff) | |
download | translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.gz translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.tar.bz2 translated-content-4b1a9203c547c019fc5398082ae19a3f3d4c3efe.zip |
initial commit
Diffstat (limited to 'files/ca/web/html/element/small/index.html')
-rw-r--r-- | files/ca/web/html/element/small/index.html | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/files/ca/web/html/element/small/index.html b/files/ca/web/html/element/small/index.html new file mode 100644 index 0000000000..772ef2566a --- /dev/null +++ b/files/ca/web/html/element/small/index.html @@ -0,0 +1,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> |