<head>
How to structure the <head>
of an HTML document.
Order matters, this document will illustrate each section in the order they should appear.
TODO:
prefetch
preconnect
preload
Parsing and Rendering
- Setting the character encoding, should always be
utf-8
. - If you must support IE, set the
X-UA-Compatible
meta tag. In 2024, this should be AVOIDED. - Setting the viewport, should always be
width=device-width, initial-scale=1.0
.
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Title
The title of the document, should be descriptive and unique.
<title></title>