Is the <head> element a heading element?

Question

Is the <head> element a heading element?

Answer

Heading elements (<h1> - <h6>) are used to create section headings in the HTML that we will see rendered to a website - think a heading with some content underneath. For example:

<h1>I'm a Heading Element</h1>
<p>I'm content underneath!</p>

The head (<head>) element is completely different - it provides information about the HTML document - think the title of the HTML document, link to a stylesheet, among other information that we will not see rendered to a website. For example:

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Title of my website</title>
  <link rel="stylesheet" href="./css/style.css">
</head>
1 Like