Comments on: How to Use Custom Data Attributes using HTML5 https://w3lessons.info/how-to-use-custom-data-attributes-using-html5 Tutorials on PHP, jQuery & Amazon Web Services Sun, 10 Sep 2017 06:08:27 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Philippe Vincke https://w3lessons.info/how-to-use-custom-data-attributes-using-html5#comment-953 Thu, 30 Oct 2014 08:24:00 +0000 http://w3lessons.info/?p=1912#comment-953 How about to load all the data attributes of an element into an array or an object so you don’t have to load them one by one ?

]]>
By: Karthikeyan K https://w3lessons.info/how-to-use-custom-data-attributes-using-html5#comment-952 Mon, 12 May 2014 06:05:00 +0000 http://w3lessons.info/?p=1912#comment-952 In reply to Selvam.

Hi Selvam,

No, it won’t be indexed. The attribute itself will be cached with the
page, but Google has no context of what the attribute or the value
means, so it is meaningless to search engines.

The advantage is that you can easily embed some scripting data
(still semantic, but not for display) with your elements without having
to insert inline javascript all over the place, and it will be valid
HTML5.

Also data- is a standardized part of the HTML5 spec. Semantically it’s the best way to go.

Thanks

]]>
By: Selvam https://w3lessons.info/how-to-use-custom-data-attributes-using-html5#comment-951 Mon, 12 May 2014 05:44:00 +0000 http://w3lessons.info/?p=1912#comment-951 what’s the use of this info? is that help in SEO

]]>