Junior JavaScript

What is the purpose of the <head> tag?

The <head> tag contains metadata — information about the document that isn’t displayed

on the page (like title, styles, or scripts).

Example:

<head>

<title>Portfolio</title>

<meta charset="UTF-8">

<link rel="stylesheet" href="style.css">

</head>

Follow me on LinkedIn:

Key Takeaway:

Think of <head> as your page’s control room.

More from JavaScript Tutorial

All questions for this course