diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
| commit | da78a9e329e272dedb2400b79a3bdeebff387d47 (patch) | |
| tree | e6ef8aa7c43556f55ddfe031a01cf0a8fa271bfe /files/it/web/html/element/span/index.html | |
| parent | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (diff) | |
| download | translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.gz translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.bz2 translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.zip | |
initial commit
Diffstat (limited to 'files/it/web/html/element/span/index.html')
| -rw-r--r-- | files/it/web/html/element/span/index.html | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/files/it/web/html/element/span/index.html b/files/it/web/html/element/span/index.html new file mode 100644 index 0000000000..6342586894 --- /dev/null +++ b/files/it/web/html/element/span/index.html @@ -0,0 +1,110 @@ +--- +title: <span> +slug: Web/HTML/Element/span +translation_of: Web/HTML/Element/span +--- +<div>{{HTMLRef}}</div> + +<p><span class="seoSummary">L'<strong>elemento HTML <code><span></code> </strong>è un contenitore inline generico per il contenuto di frasi, che non rappresenta intrinsecamente nulla. Può essere utilizzato per raggruppare gli elementi per scopi di stile (usando gli attributi <code>class</code> o <code>id</code>), o perché condividono valori di attributo, come <code>lang</code>.</span> Dovrebbe essere usato solo quando nessun altro elemento semantico è appropriato. <code><span></code> è molto simile ad un elemento {{HTMLElement("div")}}, ma {{HTMLElement("div")}} è un <a href="/it/docs/Web/HTML/Block-level_elements">elemento a livello di blocco</a> mentre un elemento <code><span></code> è un <a href="/it/docs/Web/HTML/Inline_elements">elemento inline</a>.</p> + +<div>{{EmbedInteractiveExample("pages/tabbed/span.html", "tabbed-shorter")}}</div> + + + +<table class="properties"> + <tbody> + <tr> + <th scope="row"><a href="/en-US/docs/Web/HTML/Content_categories">Categorie di contenuti</a></th> + <td><a href="https://developer.mozilla.org/it/docs/Web/Guide/HTML/Categorie_di_contenuto#Contenuto_di_flusso">Contenuto di flusso</a>, <a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content">contenuto di frasi</a>.</td> + </tr> + <tr> + <th scope="row">Contenuto consentito</th> + <td><a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content">Contenuto di frasi</a>.</td> + </tr> + <tr> + <th scope="row">Omissione del tag</th> + <td>{{no_tag_omission}}</td> + </tr> + <tr> + <th scope="row">Genitori consentiti</th> + <td>Qualsiasi elemento che accetta <a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content">contenuto di frasi</a>, o qualsiasi elemento che accetta <a href="https://developer.mozilla.org/it/docs/Web/Guide/HTML/Categorie_di_contenuto#Contenuto_di_flusso">contenuto di flusso</a>.</td> + </tr> + <tr> + <th scope="row">ARIA roles consentiti</th> + <td>Qualunque</td> + </tr> + <tr> + <th scope="row">Interfaccia DOM</th> + <td>{{domxref("HTMLSpanElement")}} (prima di HTML 5, l'interfaccia era {{domxref("HTMLElement")}})</td> + </tr> + </tbody> +</table> + +<h2 id="Attributi">Attributi</h2> + +<p>Questo elemento include solo gli <a href="https://developer.mozilla.org/it/docs/Web/HTML/Global_attributes">attributi globali</a>.</p> + +<h2 id="Esempio_1">Esempio 1</h2> + +<pre class="brush:html; gutter:false"><p><span>Some text</span></p></pre> + +<h3 id="Risultato">Risultato</h3> + +<p><span>Some text</span></p> + +<h2 id="Esempio_2">Esempio 2</h2> + +<h3 id="HTML">HTML</h3> + +<pre class="brush:html;gutter:false"><li><span> + <a href="portfolio.html" target="_blank">Guarda il mio portfolio</a> +</span></li> +</pre> + +<h3 id="CSS">CSS</h3> + +<pre class="brush: css">li span { + background: gold; + } +</pre> + +<h2 id="Specifiche">Specifiche</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specifica</th> + <th scope="col">Stato</th> + <th scope="col">Commento</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-span-element', '<span>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-span-element', '<span>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td>L'interfaccia DOM è ora {{domxref("HTMLSpanElement")}}.</td> + </tr> + <tr> + <td>{{SpecName('HTML4.01', 'struct/global.html#edef-SPAN', '<span>')}}</td> + <td>{{Spec2('HTML4.01')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilità_con_i_Browser">Compatibilità con i Browser</h2> + +<div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> + +<p>{{Compat("html.elements.span")}}</p> + +<h2 id="Vedi_anche">Vedi anche</h2> + +<ul> + <li>HTML {{HTMLElement("div")}} element</li> +</ul> |
