What is the correct syntax of doctype in HTML5?

What is the correct syntax of doctype in HTML5?
A. <!doctype html>
B. <doctype html!>
C. <doctype html>
D. </doctype html>
 
Answer: a
Explanation: 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.
 

Tìm kiếm

Back
Top