In HTML 5 document, the users can define their own attributes. Identify the correct way to declare a user defined attribute.ACustom-XXXXBCustomdata-XXXXCData-XXXXDDatacustom-XXXX
Question
In HTML 5 document, the users can define their own attributes. Identify the correct way to declare a user defined attribute.ACustom-XXXXBCustomdata-XXXXCData-XXXXDDatacustom-XXXX
Solution
The correct way to declare a user-defined attribute in an HTML 5 document is by using the data-* attribute. So, the correct option is C: Data-XXXX.
Similar Questions
All HTML elements can have attributes.
Which attribute is used to provide a unique identifier for an HTML element?
Examples of HTML Class Attribute
Which attribute is used to provide a unique identifier for an HTML element?*classidentifierid
Question 4If your goal is to author compliant HTML, what should you do with attribute values if you want your web pages to display consistently in a variety of browsers and devices?1 pointWrite them in sentence case. Put them in quotation marks.Make sure the font is big.Make sure they have a closing tag.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.