User Interface Expert Question:

Explain what are data- attributes good for?

Tweet Share WhatsApp

Answer:

The HTML5 data- attribute is a new addition that assigns custom data to an element. It was built to store sensitive or private data that is exclusive to a page or application, for which there are no other matching attributes or elements.

Download UI Developer PDF Read All 90 UI Developer Questions
Previous QuestionNext Question
Tell me Is JavaScript case sensitive?Tell me what are some new input attributes in HTML5?