Valid Web-Development-Applications Dumps shared by ExamDiscuss.com for Helping Passing Web-Development-Applications Exam! ExamDiscuss.com now offer the newest Web-Development-Applications exam dumps, the ExamDiscuss.com Web-Development-Applications exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com Web-Development-Applications dumps with Test Engine here:
What does declaring <!DOCTYPE html> indicate to the browser?
Correct Answer: B
From the W3C HTML5 Recommendation, section "2.5 The DOCTYPE": "A DOCTYPE is a required preamble. DOCTYPEs are required for legacy reasons. When omitted, browsers tend to use a different rendering mode that is incompatible with some specifications. Including the DOCTYPE in a document ensures that the browser makes a best-effort attempt at following the relevant specifications. A DOCTYPE must consist of the following components, in this order: * The string <!DOCTYPE (case-insensitive). * One or more whitespace characters. * The string html (case-insensitive). * Optionally, a legacy DOCTYPE string. * Zero or more whitespace characters. * A > character. In other words, <!DOCTYPE html> exactly." And from MDN Web Docs' "<!DOCTYPE>" entry: "The <!DOCTYPE html> declaration informs the browser that the page is written in HTML5 and that it should be rendered in standards mode (instead of quirks mode). It is the simplest, case-insensitive form of DOCTYPE defined by HTML5." Together, these extracts confirm that <!DOCTYPE html> tells the browser the document uses HTML5 and directs it to render according to the HTML5 (standards) specification rather than falling back to legacy rendering modes. References: W3C HTML5 Recommendation, section "2.5 The DOCTYPE" MDN Web Docs: "<!DOCTYPE>"