HTML · Document structure

head

Holds metadata: the title, character encoding, styles, scripts and social preview tags. Nothing here is rendered directly.

Syntax
<head>…</head>

Example

Try it

More in this group

<!doctype html> base body html link meta charset meta description meta robots

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.

Open the course