NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
HTML5 Mastery: Structure, Semantics, Attributes, and Real Projects
Global Attributes and Metadata Attributes
Quiz
Chapter Quiz: Global Attributes and Metadata Attributes
Global and Data Attributes Quiz
Complete this assessment with 100% score to master this chapter.
01
Which global attribute must be unique within a page?
id
class
title
lang
02
What prefix must all custom HTML data attributes use?
data-
custom-
attr-
meta-
03
How do you read a data-user-id attribute value in JavaScript?
element.dataset.userId
element.getAttribute.userId
element.data['user-id']
element['data-user-id']
04
What does the contenteditable="true" global attribute do?
Makes the element's content directly editable by the user in the browser
Marks the element as a form input
Enables spell-check on the element
Prevents the element's content from being copied
05
What does tabindex="0" do on a normally non-focusable element?
Adds the element to the page's natural keyboard tab order
Removes the element from the tab order
Sets the element's position in a tab panel
Marks the element as the first focusable item on the page
Submit Answers
Back to Lesson
Next Chapter