1. Home
  2. Computer Science MCQs
  3. HTML
  4. What does at the start of a page do?

Added 2 Nov 2026

What does <!DOCTYPE html> at the start of a page do?

  1. It links the page to a JavaScript file
  2. It loads the default CSS stylesheet
  3. It enables HTML5 standards mode Correct answer
  4. It creates the page's main heading

Correct answer

C. It enables HTML5 standards mode

19 views

MCQSEXAM

Explanation

The HTML5 doctype stops browsers from falling back to 'quirks mode', which mimics old, inconsistent rendering. It must be the very first line.

Reference

Asked in: NTS, PPSC, Web Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs