Document Structure interview questions

21 real Document Structure 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 Doctype?

Junior
  1. A.the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  2. B.the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
  3. C.the legacy rendering behavior a browser falls back to when no valid document type declaration is present
  4. D.the section that contains all the visible, rendered content of the page
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Doctype — the legacy rendering behavior a browser falls back to when no valid document type declaration is present
  2. B.Doctype — the single root container that wraps every other tag in the page and carries the lang attribute
  3. C.Doctype — the section holding metadata, title, links and scripts that is not rendered as page content
  4. D.Doctype — the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
Reveal the answer + AI explanation — free account

4. What is html element?

Junior
  1. A.the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  2. B.the section holding metadata, title, links and scripts that is not rendered as page content
  3. C.the single root container that wraps every other tag in the page and carries the lang attribute
  4. D.the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.html element — the value on the root element that declares the natural language of the document for screen readers and translation
  2. B.html element — the single root container that wraps every other tag in the page and carries the lang attribute
  3. C.html element — the section that contains all the visible, rendered content of the page
  4. D.html element — the legacy rendering behavior a browser falls back to when no valid document type declaration is present
Reveal the answer + AI explanation — free account

7. What is head element?

Junior
  1. A.the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  2. B.the value on the root element that declares the natural language of the document for screen readers and translation
  3. C.the section holding metadata, title, links and scripts that is not rendered as page content
  4. D.the single root container that wraps every other tag in the page and carries the lang attribute
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.head element — the single root container that wraps every other tag in the page and carries the lang attribute
  2. B.head element — the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
  3. C.head element — the section holding metadata, title, links and scripts that is not rendered as page content
  4. D.head element — the legacy rendering behavior a browser falls back to when no valid document type declaration is present
Reveal the answer + AI explanation — free account

10. What is body element?

Junior
  1. A.the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
  2. B.the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  3. C.the single root container that wraps every other tag in the page and carries the lang attribute
  4. D.the section that contains all the visible, rendered content of the page
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.body element — the legacy rendering behavior a browser falls back to when no valid document type declaration is present
  2. B.body element — the section that contains all the visible, rendered content of the page
  3. C.body element — the value on the root element that declares the natural language of the document for screen readers and translation
  4. D.body element — the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
Reveal the answer + AI explanation — free account

13. What is lang attribute?

Mid
  1. A.the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
  2. B.the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  3. C.the legacy rendering behavior a browser falls back to when no valid document type declaration is present
  4. D.the value on the root element that declares the natural language of the document for screen readers and translation
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.lang attribute — the single root container that wraps every other tag in the page and carries the lang attribute
  2. B.lang attribute — the value on the root element that declares the natural language of the document for screen readers and translation
  3. C.lang attribute — the section that contains all the visible, rendered content of the page
  4. D.lang attribute — the section holding metadata, title, links and scripts that is not rendered as page content
Reveal the answer + AI explanation — free account

16. What is charset declaration?

Mid
  1. A.the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  2. B.the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
  3. C.the legacy rendering behavior a browser falls back to when no valid document type declaration is present
  4. D.the single root container that wraps every other tag in the page and carries the lang attribute
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.charset declaration — the section that contains all the visible, rendered content of the page
  2. B.charset declaration — the section holding metadata, title, links and scripts that is not rendered as page content
  3. C.charset declaration — the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  4. D.charset declaration — the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
Reveal the answer + AI explanation — free account

19. What is quirks mode?

Senior
  1. A.the value on the root element that declares the natural language of the document for screen readers and translation
  2. B.the single root container that wraps every other tag in the page and carries the lang attribute
  3. C.the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
  4. D.the legacy rendering behavior a browser falls back to when no valid document type declaration is present
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.quirks mode — the section holding metadata, title, links and scripts that is not rendered as page content
  2. B.quirks mode — the meta tag with a UTF-8 value that tells the browser how to decode the document's bytes into text
  3. C.quirks mode — the <!DOCTYPE html> declaration that puts the browser in standards mode rather than quirks mode
  4. D.quirks mode — the legacy rendering behavior a browser falls back to when no valid document type declaration is present
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 Document Structure free