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/strike/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/strike/index.html')
| -rw-r--r-- | files/ca/web/html/element/strike/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/files/ca/web/html/element/strike/index.html b/files/ca/web/html/element/strike/index.html new file mode 100644 index 0000000000..3adaf387d4 --- /dev/null +++ b/files/ca/web/html/element/strike/index.html @@ -0,0 +1,51 @@ +--- +title: <strike> +slug: Web/HTML/Element/strike +tags: + - Element + - HTML + - Obsolete + - Reference + - Web +translation_of: Web/HTML/Element/strike +--- +<div>{{ Obsolete_header() }}</div> + +<h2 id="Sumari">Sumari</h2> + +<p>L'<em>Element HTML ratllat</em> (<code><strike></code>) representa el text amb un ratllat o una línia a través d'ell. Aquest element és obsolet en HTML5. Utilitzar el {{HTMLElement ("del")}} en el seu lloc si l'element està marcant una edició (text eliminat), altrament utilitzar l'element {{ HTMLElement("s") }}.</p> + +<div class="note"><strong>Nota d'ùs: </strong>Igual que amb tots els elements purament d'estil, {{ HTMLElement("strike") }} ha estat desaprovat en HTML 4 i XHTML 1, i ha quedat obsolet en HTML5. Si semànticament és apropiat, és a dir, si es representa contingut eliminat, utilitzeu en el seu lloc {{HTMLElement ("del")}} ; en els altres casos utilitzar l'element {{ HTMLElement("s") }}.</div> + +<h2 id="Atributs">Atributs</h2> + +<p>Aquest element no té altres atributs que els <a href="/en-US/docs/HTML/global_attributes" rel="internal" title="HTML/global attributes">atributs globals</a>, comuns a tots els elements.</p> + +<h2 id="Interfície_DOM">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 inclos, Firefox implementa el {{domxref('HTMLSpanElement')}} interfície per a aquest element.</p> +</div> + +<h2 id="Exemple">Exemple</h2> + +<pre class="brush:xml"><strike>Today's Special: Salmon</strike> NO LONGER AVAILABLE<br /> +<s>Today's Special: Salmon</s> SOLD OUT +</pre> + +<h3 id="Resultat">Resultat</h3> + +<p><s>Today's Special: Salmon</s> NO LONGER AVAILABLE<br> + <s style="text-decoration: line-through;">Today's Special: Salmon</s> SOLD OUT</p> + +<h2 id="Veure">Veure</h2> + +<ul> + <li>L'element {{ HTMLElement("s") }}.</li> + <li>L'element {{ HTMLElement("del") }} és per ser utilitzat en el lloc on s'han <em>eliminat</em> dades.</li> + <li>La propietat CSS {{ cssxref("text-decoration") }} es va a utilitzar per aconseguir el primer aspecte visual de l'element {{ HTMLElement("strike") }}.</li> +</ul> + +<div>{{ HTMLRef }}</div> |
