Courses / HTML
27. DOCTYPE
The declaration that defines the document type and version of HTML being used.
1 min read Chapter 27 of 102
HTML
DOCTYPE
DOCTYPE is a declaration that tells the web browser what version of HTML to expect.
"I want my webpage to display correctly in all browsers, but I'm not sure how to start."
DOCTYPE is a special declaration at the beginning of an HTML document that defines the document type and ensures that browsers render the page in standards mode.
"I want my webpage to display correctly in all browsers, but I'm not sure how to start."
DOCTYPE is a special declaration at the beginning of an HTML document that defines the document type and ensures that browsers render the page in standards mode.