Sumari
L'Element HTML Definició (<dfn>) representa la instància de definició d'un terme.
Notes d'ùs en HTML5:
Categories de contingut | Contingut dinàmic, phrasing content, contingut palpable. |
---|---|
Contingut permès | Phrasing content, però cap element <dfn> ha de ser un descendent. |
Omissió de l'etiqueta | Cap, tant l'etiqueta inicial com l’etiqueta final són obligatòries |
Elements pares permesos | Qualsevol element que accepti phrasing content. |
Interfície DOM | HTMLElement |
Atributs
Aquest element inclou els atributs globals.
En HTML5, l'atribut title
té un significat especial, com es va assenyalar anteriorment.
Exemples
Els següents exemples són vàlids en HTML5.
<!-- Define "The Internet" -->
<p><dfn id="def-internet">The Internet</dfn> is a global system of interconnected networks that use the Internet Protocol Suite (TCP/IP) to serve billions of users worldwide.</p>
A continució, en el mateix document:
<dl>
<!-- Define "World-Wide Web" and reference definition for "the Internet" -->
<dt>
<dfn>
<abbr title="World-Wide Web">WWW</abbr>
</dfn>
</dt>
<dd>The World-Wide Web (WWW) is a system of interlinked hypertext documents accessed on <a href="#def-internet">the Internet</a>.</dd>
</dl>
Resultat
Especificacions
Especificació | Estat | Comentari |
---|---|---|
HTML Living Standard The definition of '<dfn>' in that specification. |
Living Standard | |
HTML5 The definition of '<dfn>' in that specification. |
Recommendation | |
HTML 4.01 Specification The definition of '<dfn>' in that specification. |
Recommendation |
Navegadors compatibles
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Característica | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Suport bàsic | (Yes) | 1.0 (1.7 or earlier) | (Yes) | (Yes) | (Yes) |
Característica | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Suport bàsic | (Yes) | 1.0 (1.0) | (Yes) | (Yes) | (Yes) |