<head>: The HTML Head Element

I. Description

The HTML <head> element holds meta-information about the webpage but does not hold content which is rendered and displayed to the user.

Things which are typically found in the header are links to CSS files, links to JavaScript files, and <title> information for the webpage.

II. Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example Page</title>
        <link rel="stylesheet" href="/css/main.css"/>
        <script src="/javascript/script_1.js"></script>
    </head>
    <body>
        <h1>Example Page</h1>
        <p>This is an example html webpage.</p>
    </body>
</html>

This document was last updated: