data
The HTML <data>
element links a given content with a machine-readable translation. If the content is time- or date-related, the <time>
element must be used.
object - The address of the resource as a valid URL. At least one of data and type must be defined.
a, abbr, address, area, article, aside, audio, b, base, bdi, bdo, big, blockquote, body, br, button, canvas, caption, cite, code, col, colgroup, data, datalist, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, head, header, hr, html, i, iframe, img, input, ins, kbd, keygen, label, legend, li, link, main, map, mark, menu, menuitem, meta, meter, nav, noscript, object, ol, optgroup, option, output, p, param, picture, pre, progress, q, rp, rt, ruby, s, samp, script, section, select, small, source, span, strong, style, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, title, tr, track, u, ul, var, video, wbr - Forms a class of attributes, called custom data attributes, that allow proprietary information to be exchanged between the
HTML and its
DOM representation that may be used by scripts. All such custom data are available via the
HTMLElement
interface of the element the attribute is set on. The
HTMLElement.dataset
property gives access to them.
Attributes
- Graph
- Supertypes
- trait Attrtrait Tagclass Objecttrait Matchableclass Any
- Self type
- data.type