The head Element

What Goes in the Head?

<head> holds information about the page: it is not displayed. It sits between <html> and <body>.

ElementPurpose
<title>tab title and search result headline
<meta>character set, viewport, description, author...
<link>stylesheets, favicon, canonical URL, fonts
<style>page-level CSS
<script>JavaScript (often with defer)
<base>base URL for all relative links (rarely used)

A Complete Head

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HTML Forms Tutorial | Careeroza</title>
  <meta name="description" content="Learn HTML forms with live examples.">
  <link rel="icon" href="/favicon.svg">
  <link rel="stylesheet" href="/css/styles.css">
  <script src="/js/app.js" defer></script>
</head>