From 4b1a9203c547c019fc5398082ae19a3f3d4c3efe Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:15 -0500 Subject: initial commit --- files/ca/web/html/element/data/index.html | 136 ++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 files/ca/web/html/element/data/index.html (limited to 'files/ca/web/html/element/data/index.html') diff --git a/files/ca/web/html/element/data/index.html b/files/ca/web/html/element/data/index.html new file mode 100644 index 0000000000..8e91647d32 --- /dev/null +++ b/files/ca/web/html/element/data/index.html @@ -0,0 +1,136 @@ +--- +title: +slug: Web/HTML/Element/data +translation_of: Web/HTML/Element/data +--- +

Sumari

+ +

L'element HTML <data> vincula un contingut donat amb una traducció llegible per màquina. Si el contingut és d'hora o relacionat amb dates, heu de fer servir {{HTMLElement("time")}}.

+ + + + + + + + + + + + + + + + + + + + + + + + +
Categories de contingutContingut dinàmic, phrasing content, contingut palpable.
Contingut permèsPhrasing content.
Omissió de l'etiqueta{{no_tag_omission}}
Elements pares permesosQualsevol element que accepti phrasing content.
Interfície DOM{{domxref("HTMLDataElement")}}
+ +

Atributs

+ +

Aquest element inclou els atributs globals.

+ +
+
{{htmlattrdef("value")}}
+
Aquest atribut especifica la traducció llegible per màquina del contingut de l'element.
+
+ +

Exemple

+ +

El següent exemple no solsament mostra els noms dels productes, sinó que associa cada nom amb el seu codi UPC.

+ +
<p>New Products</p>
+<ul>
+ <li><data value="3967381398">Mini Ketchup</data></li>
+ <li><data value="3967381399">Jumbo Ketchup</data></li>
+ <li><data value="3967381400">Mega Jumbo Ketchup</data></li>
+</ul>
+
+ +

Especificacions

+ + + + + + + + + + + + + + + + + + + + + +
EspecificacióEstatComentari
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-data-element', '<data>')}}{{Spec2('HTML WHATWG')}}No change from {{SpecName('HTML5 W3C')}}
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-data-element', '<data>')}}{{Spec2('HTML5 W3C')}}Initial definition.
+ + + +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suport bàsic{{CompatNo}}{{CompatGeckoDesktop("22.0")}} {{bug("839371")}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Suport bàsic{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

Veure

+ + + +

{{HTMLRef}}

-- cgit v1.2.3-54-g00ecf