← BYTES
HTML·Starter·Ref: 2.1.5
What does the `<!DOCTYPE html>` declaration at the top of an HTML file do?
Have a question about this video? Mention reference 2.1.5 when you contact us.
a.It tells the browser which HTML version/rendering mode to use, triggering standards-compliant rendering rather than a legacy 'quirks mode'
b.It links an external stylesheet
c.It is purely decorative and has no functional effect
d.It defines the page's primary language
<!DOCTYPE html> tells the browser to render the page in standards mode (consistent, spec-compliant box model and layout behavior) rather than falling back to 'quirks mode' -- an old compatibility mode that mimics behavior from very old browsers, which can silently break modern CSS layout assumptions.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES215#HTML