Attributes & Global interview questions

21 Attributes & Global questions from the HTML bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Sign up free to see every answer with its explanation and ask the AI tutor.

Practice Attributes & Global free

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

Answer + AI explanation with a free account

2. Which term means: "the global property holding a unique identifier used for fragment links, scripting and styling"?

Junior
  1. A.hidden attribute
  2. B.Void element
  3. C.id attribute
  4. D.contenteditable attribute

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

14. Which term means: "the global property that makes an element's text directly editable by the user in the browser"?

Mid
  1. A.Void element
  2. B.Boolean attribute
  3. C.class attribute
  4. D.contenteditable attribute

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

17. Which term means: "the global boolean that removes an element from rendering as if it had display none"?

Senior
  1. A.id attribute
  2. B.class attribute
  3. C.data attribute
  4. D.hidden attribute

Answer + AI explanation with a 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

Answer + AI explanation with a 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

Answer + AI explanation with a free account

20. Which term means: "the kind of tag like img or br that has no closing tag and cannot contain child content"?

Senior
  1. A.contenteditable attribute
  2. B.data attribute
  3. C.Void element
  4. D.id attribute

Answer + AI explanation with a 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

Answer + AI explanation with a free account

Free to start

Answers, AI explanations, and a free readiness check

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.

Practice Attributes & Global free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers