What if one does not use the doctype in the starting of HTML document?

What if one does not use the doctype in the starting of HTML document?
A. Browser finds the document in quirky mode
B. Browser finds a document in standard mode
C. Browser stops working
D. Browser crashes after showing the page
 
Answer: a
Explanation: If the browser finds <!doctype html> in the starting of an HTML document it sets the document in standard mode but if one does not use a doctype, the browser goes to quirky mode. In this mode, certain content will not be displayed as per one wrote that. So it is always recommended to write a doctype at the very start of the HTML document.
 

Tìm kiếm

Back
Top