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/bdi/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/bdi/index.html')
| -rw-r--r-- | files/it/web/html/element/bdi/index.html | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/files/it/web/html/element/bdi/index.html b/files/it/web/html/element/bdi/index.html new file mode 100644 index 0000000000..340a68665c --- /dev/null +++ b/files/it/web/html/element/bdi/index.html @@ -0,0 +1,116 @@ +--- +title: <bdi> +slug: Web/HTML/Element/bdi +translation_of: Web/HTML/Element/bdi +--- +<h2 id="Sommario">Sommario</h2> + +<p>L'elemento HTML <code><bdi></code> (o elemento <em>Bi-Directional Isolation</em>) isola del testo che potrebbe essere formattato in una direzione differente da quello che lo circonda.</p> + +<p>Questo elemento è utile quando si incorpora del testo del quale non si conosce la direzione, ad esempio da un database.</p> + +<p>Anche se lo stesso effetto visuale può essere uttenuto usando la regola CSS {{cssxref("unicode-bidi")}}<code>: isolate</code> applicata a un elemento {{HTMLElement("span")}} o ad un altro elemento relativo alla formattazione del testo, solo l'elemento <code><bdi></code> ha significato semantico. Inoltre, i browser possono ignorare il CSS: il testo verrebbe visualizzato correttamente solo utilizzando questo tag.</p> + +<ul class="htmlelt"> + <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Categoria</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Contenuto di flusso</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">contenuto testuale</a>, contenuto palpabile.</li> + <li><dfn>Contenuto permesso</dfn><a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Flow_content">Contenuto testuale</a>.</li> + <li><dfn>Omissione del tag</dfn> {{no_tag_omission}}</li> + <li><dfn>Elementi genitore permessi</dfn> Qualsiasi elemento che accetta <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Flow_content">contenuto testuale</a>.</li> + <li><dfn>Interfaccia DOM</dfn> {{domxref("HTMLElement")}}</li> +</ul> + +<h2 id="Attributi">Attributi</h2> + +<p>Questo elemento supporta gli <a href="/it/docs/HTML/Global_attributes">attributi globali</a>, con una piccola differenza: l'attributo <code>dir</code> non viene ereditato. Se non impostato, il suo valore predefinito è <code>auto</code>, che permette al browser di decidere la direzione del testo basandosi sul contenuto dell'elemento.</p> + +<h2 id="Esempio">Esempio</h2> + +<pre class="brush: html"><p dir="ltr">Questa parola arabica <bdi>PAROLA_ARABICA</bdi> è automaticamente mostrata da destra verso sinistra.</p> +</pre> + +<h3 id="Risultato">Risultato</h3> + +<p>Questa parola arabica ACIBARA_ALORAP è automaticamente mostrata da destra a sinistra.</p> + +<h2 id="Specifications" name="Specifications">Specifiche</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specifica</th> + <th scope="col">Stato</th> + <th scope="col">Commenti</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-bdi-element', '<bdi>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'the-bdi-element.html#the-bdi-element', '<bdi>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilità_con_i_browser">Compatibilità con i browser</h2> + +<p>{{CompatibilityTable}}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Funzionalità</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari</th> + </tr> + <tr> + <td>Supporto di base</td> + <td>16</td> + <td>{{CompatGeckoDesktop("10.0")}}</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Funzionalità</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Supporto di base</td> + <td>{{CompatNo}}</td> + <td>{{CompatGeckoMobile("10.0")}}</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 dir="ltr" id="Vedi_anche">Vedi anche</h2> + +<ul> + <li>L'elemento {{HTMLElement("bdo")}};</li> + <li>Le proprietà CSS {{cssxref("direction")}} e {{cssxref("unicode-bidi")}}.</li> +</ul> + +<p>{{HTMLRef}}</p> |
