What is the purpose of the data-* attribute?

Answers were Sorted based on User's Feedback



What is the purpose of the data-* attribute?..

Answer / nashiinformaticssolutions

Custom attributes to store extra information on elements for JavaScript usage. Example:
<div data-user-id="12345">John Doe</div>

Is This Answer Correct ?    0 Yes 0 No

What is the purpose of the data-* attribute?..

Answer / hr@tgksolutions.com

Custom attributes to store extra information on elements for JavaScript usage. Example:
<div data-user-id="12345">John Doe</div>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

How do you use a br tag?

1 Answers  


Is the br tag deprecated?

1 Answers  


What is semantic elements in html5? List some semantic elements

1 Answers  


What is ordered list?

1 Answers  


What are title tags?

1 Answers  


Why are not my frames the exact size I specified?

1 Answers  


What is the purpose of html?

1 Answers  


Describe HTML Element?

1 Answers   HCL,


How dhtml is used in internet explorer?

1 Answers  


How are tags migrated from html4 to html5?

1 Answers  


How can I check for errors?

1 Answers  


How to open a link in new tab or window?

1 Answers  


Categories