Attributes & Global interview questions

21 real Attributes & Global questions from the HTML bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is id attribute?

Junior
  1. A.the custom prefixed property that stores private page data on an element, read in script via the dataset object
  2. B.the global boolean that removes an element from rendering as if it had display none
  3. C.the global property holding a unique identifier used for fragment links, scripting and styling
  4. D.the global property that makes an element's text directly editable by the user in the browser
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.id attribute — the global property holding one or more space-separated names used to group elements for styling and scripting
  2. B.id attribute — the global property holding a unique identifier used for fragment links, scripting and styling
  3. C.id attribute — the global property that makes an element's text directly editable by the user in the browser
  4. D.id attribute — the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
Reveal the answer + AI explanation — free account

4. What is class attribute?

Junior
  1. A.the global property that makes an element's text directly editable by the user in the browser
  2. B.the global property holding a unique identifier used for fragment links, scripting and styling
  3. C.the global boolean that removes an element from rendering as if it had display none
  4. D.the global property holding one or more space-separated names used to group elements for styling and scripting
Reveal the answer + AI explanation — free account

5. Which term means: "the global property holding one or more space-separated names used to group elements for styling and scripting"?

Junior
  1. A.contenteditable attribute
  2. B.class attribute
  3. C.id attribute
  4. D.Void element
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.class attribute — the global property that makes an element's text directly editable by the user in the browser
  2. B.class attribute — the kind of tag like img or br that has no closing tag and cannot contain child content
  3. C.class attribute — the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
  4. D.class attribute — the global property holding one or more space-separated names used to group elements for styling and scripting
Reveal the answer + AI explanation — free account

7. What is data attribute?

Mid
  1. A.the kind of tag like img or br that has no closing tag and cannot contain child content
  2. B.the global property holding one or more space-separated names used to group elements for styling and scripting
  3. C.the custom prefixed property that stores private page data on an element, read in script via the dataset object
  4. D.the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
Reveal the answer + AI explanation — free account

8. Which term means: "the custom prefixed property that stores private page data on an element, read in script via the dataset object"?

Mid
  1. A.contenteditable attribute
  2. B.hidden attribute
  3. C.Void element
  4. D.data attribute
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.data attribute — the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
  2. B.data attribute — the kind of tag like img or br that has no closing tag and cannot contain child content
  3. C.data attribute — the custom prefixed property that stores private page data on an element, read in script via the dataset object
  4. D.data attribute — the global property that makes an element's text directly editable by the user in the browser
Reveal the answer + AI explanation — free account

10. What is Boolean attribute?

Mid
  1. A.the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
  2. B.the global property that makes an element's text directly editable by the user in the browser
  3. C.the custom prefixed property that stores private page data on an element, read in script via the dataset object
  4. D.the kind of tag like img or br that has no closing tag and cannot contain child content
Reveal the answer + AI explanation — free account

11. Which term means: "the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked"?

Mid
  1. A.class attribute
  2. B.Void element
  3. C.Boolean attribute
  4. D.contenteditable attribute
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Boolean attribute — the global boolean that removes an element from rendering as if it had display none
  2. B.Boolean attribute — the global property holding a unique identifier used for fragment links, scripting and styling
  3. C.Boolean attribute — the global property holding one or more space-separated names used to group elements for styling and scripting
  4. D.Boolean attribute — the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
Reveal the answer + AI explanation — free account

13. What is contenteditable attribute?

Mid
  1. A.the global property holding one or more space-separated names used to group elements for styling and scripting
  2. B.the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
  3. C.the kind of tag like img or br that has no closing tag and cannot contain child content
  4. D.the global property that makes an element's text directly editable by the user in the browser
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.contenteditable attribute — the custom prefixed property that stores private page data on an element, read in script via the dataset object
  2. B.contenteditable attribute — the global property holding a unique identifier used for fragment links, scripting and styling
  3. C.contenteditable attribute — the kind of tag like img or br that has no closing tag and cannot contain child content
  4. D.contenteditable attribute — the global property that makes an element's text directly editable by the user in the browser
Reveal the answer + AI explanation — free account

16. What is hidden attribute?

Senior
  1. A.the global property holding a unique identifier used for fragment links, scripting and styling
  2. B.the global property holding one or more space-separated names used to group elements for styling and scripting
  3. C.the kind of tag like img or br that has no closing tag and cannot contain child content
  4. D.the global boolean that removes an element from rendering as if it had display none
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.hidden attribute — the global property holding a unique identifier used for fragment links, scripting and styling
  2. B.hidden attribute — the global boolean that removes an element from rendering as if it had display none
  3. C.hidden attribute — the global property holding one or more space-separated names used to group elements for styling and scripting
  4. D.hidden attribute — the global property that makes an element's text directly editable by the user in the browser
Reveal the answer + AI explanation — free account

19. What is Void element?

Senior
  1. A.the custom prefixed property that stores private page data on an element, read in script via the dataset object
  2. B.the kind of tag like img or br that has no closing tag and cannot contain child content
  3. C.the global property holding one or more space-separated names used to group elements for styling and scripting
  4. D.the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.Void element — the kind of tag like img or br that has no closing tag and cannot contain child content
  2. B.Void element — the kind of attribute whose mere presence means true regardless of any value, such as disabled or checked
  3. C.Void element — the custom prefixed property that stores private page data on an element, read in script via the dataset object
  4. D.Void element — the global property holding a unique identifier used for fragment links, scripting and styling
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Attributes & Global free