Practice mode HTML

Which HTML5 global attribute pattern lets authors store custom data on any element?

Correct answer A. data-*

Explanation

Attributes beginning with data-, such as data-id="7", store custom information on elements; JavaScript can read them through the dataset property.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.