Branding by Oliver Ker. If you are planning to have data understood by the search engines, you could use microdata which is more semantic. return dataset; I’ve found an issue with the data attribute. Using orthogonal data for searching allows both forms of the telephone number to be used, while only the nicely formatted number is displayed in the table. He probably meant it. Last modified: Dec 19, 2020, by MDN contributors. well, i found about 20 different answers online, none works. @ryanve To remove data attributes, `delete plant.dataset.leaves` works. HTML5 data Attributes. Data attributes provide the ability to tag HTML markup with additional layers of data. Those of us however that script xml documents, including htmlN.. documents, usually use an object reference to elements and store user defined variables there as they are faster to access and address any scripting need: var a=elobj[‘elementid’].user_defined_attribute; var a=element.getAttribute(user_defined_attribute); and can address any scripting need that data-* or any other markup language scripting feature pretends to introduce or provide. }. HTML5 data-* Attributes Since jQuery 1.4.3, data-* attributes are used to initialize jQuery data. Notify me of followup comments via e-mail. Now that we have a broad understanding of what data attributes are, let's take a look at how they can be used: Although flexible, data attributes aren’t an appropriate solution for all problems. !’, for further calculation I need to store John’s employee id as well on the UI, In this case I can use a data attribute and store the emp id. the name must not start with xml, whatever case is used for these letters;; the name must not contain any semicolon (U+003A); If I got the gt and lt right, it’d be something like: Carrots