title element

If you don't know what an element is or how you must use it, I recommend you read the "HTML tags and attributes" tutorial that you can find in the HTML tutorials section.


The title element provides a title or name for the document. This title must provide a short but acurate description of the document's content or its purpose even when taken out of context (like, for example, when displayed in search results).

Except for special situations, like in embedded documents (iframe element) or email bodies, the presence of the title element in the head of the document is mandatory.


Below is an example of a very simple document with an adequate title. You may note the difference between the title and the main heading (h1 element): while the title provides a short description that makes sense on its own, the main heading counts on the surrownding contents to achieve its purpose.

<!DOCTYPE html>
    <title>The consequences of global warming in the lifestyle of indigenous populations</title>
    <h1>The repercutions of global warming</h1>
    <p>Indigenous populations around the world are usually the most affected by global warming...</p>


Global attributes

For information about global attributes refer to this list of global attributes in HTML5.


Global events

For information about global events refer to this list of global events in HTML5.