The head element contains information about the document.

Such information includes document's title, meta data with keywords, copyright information and many other valuable information about the document.

The main child is <title> element and it has to be included between head element tags.

To learn more about head element visit HTML Document Head.

Syntax:

<head></head>

Attributes:

  • profile (meta data)
  • lang (language information), dir (text direction)

Example

HTML head element:

 

›› go to examples ››