diff options
Diffstat (limited to 'files/it/web/html/element/strike/index.html')
| -rw-r--r-- | files/it/web/html/element/strike/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/files/it/web/html/element/strike/index.html b/files/it/web/html/element/strike/index.html new file mode 100644 index 0000000000..723254e331 --- /dev/null +++ b/files/it/web/html/element/strike/index.html @@ -0,0 +1,51 @@ +--- +title: <strike> +slug: Web/HTML/Element/strike +tags: + - Elemento + - HTML + - Obsoleto + - Riferimento + - Web +translation_of: Web/HTML/Element/strike +--- +<div>{{ Obsolete_header() }}</div> + +<h2 id="Sommario">Sommario</h2> + +<p>L'<em>Elemento HTML Strikethrough </em> (<code><strike></code>) disegna il testo con uno "strikethrough", cioè una linea a metà altezza.</p> + +<div class="note"><strong>Nota d'uso: </strong>Come tutti gli elementi di pura presentazione, {{ HTMLElement("strike") }} è deprecato in HTML 4 e XHTML 1 ed è obsoleto in HTML5. Se semanticamente appropriato, ad es. se rappresenta contenuto cancellato, si usi al suo posto l'elemento {{ HTMLElement("del") }} ; in tutti gli altri casi, si usi un elemento {{ HTMLElement("span") }} con l'attributo style contenente la proprietà <a href="https://developer.mozilla.org/it/docs/Web/CSS" title="CSS">CSS</a> {{ cssxref("text-decoration") }} impostata a <code>line-through</code>.</div> + +<h2 id="Attributi">Attributi</h2> + +<p>Questo elemento non ha altri attributi oltre agli <a href="https://developer.mozilla.org/it/docs/Web/HTML/Global_attributes" rel="internal" title="HTML/global attributes">attributi globali</a>, comuni a tutti gli elementi.</p> + +<h2 id="Interfaccia_DOM">Interfaccia DOM</h2> + +<p>Questo elemento implementa l'interfaccia <a href="https://developer.mozilla.org/it/docs/Web/API/HTMLElement">HTMLElement</a>.</p> + +<div class="note"> +<p><strong>Nota di implementazione: </strong>fino alla Gecko 1.9.2 inclusa, Firefox implementa per questo elemento l'interfaccia {{domxref('HTMLSpanElement')}} .</p> +</div> + +<h2 id="Esempio">Esempio</h2> + +<pre class="brush:xml"><strike>Today's Special: Salmon</strike> NO LONGER AVAILABLE<br /> +<span style="text-decoration:line-through;">Today's Special: Salmon</span> SOLD OUT +</pre> + +<h3 id="Risultato">Risultato</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="Vedere_anche">Vedere anche</h2> + +<ul> + <li>L'elemento {{ HTMLElement("s") }} , alter ego dell'elemento {{ HTMLElement("strike") }} e, come questo, obsoleto.</li> + <li>L'elemento {{ HTMLElement("del") }} da utilizzare in sua vece se il dato è stato <em>cancellato</em>.</li> + <li>La proprietà CSS {{ cssxref("text-decoration") }} da utilizzare per ottenere il medesimo risultato in visualizzazione ottenibile con l'elemento {{ HTMLElement("strike") }} .</li> +</ul> + +<div>{{ HTMLRef }}</div> |
