diff options
Diffstat (limited to 'files/ca/web/html/global_attributes/itemid/index.html')
| -rw-r--r-- | files/ca/web/html/global_attributes/itemid/index.html | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/files/ca/web/html/global_attributes/itemid/index.html b/files/ca/web/html/global_attributes/itemid/index.html deleted file mode 100644 index 79941cabc2..0000000000 --- a/files/ca/web/html/global_attributes/itemid/index.html +++ /dev/null @@ -1,149 +0,0 @@ ---- -title: itemid -slug: Web/HTML/Global_attributes/itemid -tags: - - Attribute - - Global attribute - - HTML - - Microdata - - Reference -translation_of: Web/HTML/Global_attributes/itemid ---- -<div>{{HTMLSidebar("Global_attributes")}}</div> - -<p>L'<a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes">atribut global</a> <strong>itemid</strong> és l'identificador únic i global d'un element. Els atributs itemid només es poden especificar en els elements que tenen tant els atributs <strong>itemscope</strong> com <strong>itemtype</strong>. A més, el itemid només es pot especificar en elements amb un atribut itemscope de qui el corresponent itemtype es refereix o defineix un vocabulari que suporta identificadors globals.</p> - -<p>El vocabulari dels <code>itemtype's</code> donarà el significat exacte d'un identificador global definit dins del vocabulari. El vocabulari definirà si diversos elements amb el mateix identificador global poden coexistir i, si se'ls permet, de com manejar els elements amb el mateix identificador.</p> - -<p class="note"><strong>Nota:</strong> La definició de Whatwg.org d'un itemid diu que ha de ser una adreça URL. Això no sembla ser el cas, com mostra el següent exemple. Més aviat la definició de facto és que un itemid és un identificador únic, de manera que un URN és apropiat. Aquesta inconsistència reflecteix, sens dubte, el caràcter incomplet de l'especificació de Microdata.</p> - -<h2 id="Exemple">Exemple</h2> - -<h3 id="HTML">HTML</h3> - -<pre class="brush: html"><dl itemscope - itemtype="http://vocab.example.net/book" - itemid="urn:isbn:0-330-34032-8"> -<dt>Title <dd itemprop="title">The Reality Dysfunction -<dt>Author <dd itemprop="author">Peter F. Hamilton -<dt>Publication date -<dd><time itemprop="pubdate" datetime="1996-01-26">26 January 1996</time> </dl></pre> - -<h3 id="Estructuració_de_les_dades"><span class="short_text" id="result_box" lang="ca"><span>Estructuració de les dades</span></span></h3> - -<table class="standard-table"> - <tbody> - <tr> - <td colspan="1" rowspan="14">itemscope</td> - <td>itemtype: itemid</td> - <td colspan="2" rowspan="1"> - <div class="jyrRxf-eEDwDf jcd3Mb IZ65Hb-hUbt4d">http://vocab.example.net/book: urn:isbn:0-330-34032-8</div> - </td> - </tr> - <tr> - <td>itemprop</td> - <td>title</td> - <td>The Reality Dysfunction</td> - </tr> - <tr> - <td>itemprop</td> - <td>author</td> - <td> - <div class="jyrRxf-eEDwDf jcd3Mb">Peter F. Hamilton</div> - </td> - </tr> - <tr> - <td>itemprop</td> - <td>pubdate</td> - <td>1996-01-26</td> - </tr> - </tbody> -</table> - -<h3 id="Resultat">Resultat</h3> - -<p>{{EmbedLiveSample('HTML', '', '', '', 'Web/HTML/Global_attributes/itemid')}}</p> - -<h2 id="Especificacions">Especificacions</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Especificació</th> - <th scope="col">Estat</th> - <th scope="col">Comentari</th> - </tr> - <tr> - <td><code><a href="https://html.spec.whatwg.org/multipage/microdata.html#attr-itemid">itemid</a></code></td> - <td> </td> - <td>WG Nota - <span class="short_text" id="result_box" lang="ca"><span>Ja</span> <span>no s'està</span> <span>desenvolupant</span> <span>activament</span></span></td> - </tr> - </tbody> -</table> - -<h2 id="Navegadors_compatibles">Navegadors compatibles</h2> - -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Suport bàsic</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Android</th> - <th>Chrome for Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Suport bàsic</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<h2 id="Veure">Veure</h2> - -<ul> - <li><a href="/en-US/docs/Web/HTML/Global_attributes">Altres atributs globals diferents</a></li> - <li>Altres atributs globals relacionats amb microdata: - <ul> - <li>{{htmlattrxref("itemid")}}</li> - <li>{{htmlattrxref("itemprop")}}</li> - <li>{{htmlattrxref("itemref")}}</li> - <li>{{htmlattrxref("itemscope")}}</li> - <li>{{htmlattrxref("itemtype")}}</li> - </ul> - </li> -</ul> |
