By using this site you agree to the use of cookies and related technologies.

Learn more

Head - HTML Element

The head HTML element is used to mark the head of a HTML page.

Edited: 2016-10-04 14:12

The HTML head element forms the head of a HTML page, and contains the title of the page, as well meta elements, external files (I.e.: JavaScript and CSS StyleSheets).


AttributesOther AttributesGlobal, I18n, Event
typeContent TypeThe Content Type of the scripting language used.
mediaMedia DescriptorEither a single, or comma-separated list. I.e. "screen,print"
titleTextAdvisory title

Head example

<!DOCTYPE html>
<html lang="en">

    <title>My first Website</title>ยจ
    <link rel="stylesheet" type="text/css" href="StyleSheet.css">
    <style type="text/css">
      /* Internal CSS */
      html, body {
        height: 100%;

    <p>My first Website.</p>