HTML · Document structure
<!doctype html>
Declares standards mode. It must be the very first thing in the document, before <html>.
Syntax
<!doctype html>Example
Try it
Notes
Without a doctype the browser falls back to quirks mode and CSS behaves unpredictably.
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.