From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/fa/web/html/element/data/index.html | 94 +++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 files/fa/web/html/element/data/index.html (limited to 'files/fa/web/html/element/data') diff --git a/files/fa/web/html/element/data/index.html b/files/fa/web/html/element/data/index.html new file mode 100644 index 0000000000..9d06506179 --- /dev/null +++ b/files/fa/web/html/element/data/index.html @@ -0,0 +1,94 @@ +--- +title: +slug: Web/HTML/Element/data +translation_of: Web/HTML/Element/data +--- +
{{HTMLRef}}
+ +

The HTML <data> element links a given content with a machine-readable translation. If the content is time- or date-related, the {{HTMLElement("time")}} element must be used.

+ +
{{EmbedInteractiveExample("pages/tabbed/data.html", "tabbed-standard")}}
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Content categoriesFlow content, phrasing content, palpable content.
Permitted contentPhrasing content.
Tag omission{{no_tag_omission}}
Permitted parentsAny element that accepts phrasing content.
DOM interface{{domxref("HTMLDataElement")}}
+ +

Attributes

+ +

This element's attributes include the global attributes.

+ +
+
{{htmlattrdef("value")}}
+
This attribute specifies the machine-readable translation of the content of the element.
+
+ +

Example

+ +

The following example displays product names but also associates each name with a product number.

+ +
<p>New Products</p>
+<ul>
+ <li><data value="398">Mini Ketchup</data></li>
+ <li><data value="399">Jumbo Ketchup</data></li>
+ <li><data value="400">Mega Jumbo Ketchup</data></li>
+</ul>
+
+ +

Specifications

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', '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.
+ +

Browser compatibility

+ + + +

{{Compat("html.elements.data")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf