Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 824 Bytes

doctype.md

File metadata and controls

13 lines (8 loc) · 824 Bytes

Use the html5 doctype

Be sure that you have specified the html5 doctype (Document Type Definition - DTD) for your html page:

<!doctype html>

A doctype impacts browser layout and measurement apis. Not specifying a doctype is a world of pain 🔥. Browsers will use some other doctype such as "Quirks mode" which can drastically change layout and measurement (more information). The html5 doctype is our only supported doctype.

For non production builds we will log a warning to the console if a html5 doctype is not found. You can disable the warning if you like.

← Back to documentation