What is the purpose of the data-* attribute?
Answers were Sorted based on User's Feedback
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 |
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 |
. Are the HTML tags and elements the same thing?
How do I get a counter?
How to create and access sessionstorage object in html5?
What is a hyperlink?
What is html and its functions?
Does microsoft edge support html5?
Differentiate between Canvas and SVG?
What is basic tag in html?
What are the different ways to use different colors for different links or same link?
Do older HTML files work on newer browsers?
Is the center tag deprecated?
How do you change background color in html?