head Element

Description

The head element contains the metadata for the document.

In HTML, metadata has the information about the content and markup in the document. It cal also include scripts and references to external resources, such as CSS stylesheets.

The title element inside the head element is required; other metadata elements are optional.

Example

The following code shows the head element in use.

Every HTML document should contain a head element and it must contain a title element, as shown in the code.


<!DOCTYPE HTML>
<html>
    <head>
       <title>Hello</title>
    </head>
</html>

Metadata Elements

The metadata elements are not content themselves, but they provide information about the content that follows.

Metadata elements are added to the head element.





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed