Home » HTML » HTML Introduction » Question
  1. What is the correct syntax of doctype in HTML5?
    1. <doctype html!>
    2. <doctype html>
    3. </doctype html>
    4. <!doctype html>
    5. None of these
Correct Option: D

The correct syntax of HTML5 doctype is <!doctype html>, doctype is the very first thing to write in HTML5. <!doctype html> or <!DOCTYPE HTML> both are same because ‘doctype’ keyword is not case sensitive.



Your comments will be displayed only after manual approval.