# Providing a title using the title element

ID: H25

Technology: html

Type: Technique

## When to Use

HTML

## Description

All HTML documents, including those in frames, have a `title` element in the `head` section that defines in a simple phrase the purpose of the document. This helps users to orient themselves within the site quickly without having to search for orientation information in the body of the page.

Note that the (mandatory) `title` element, which only appears once in a document, is different from the `title` attribute, which may be applied to almost every HTML element.

## Examples

This example defines a document's title.

    <!doctype html>
    <html lang="en">
      <head>
        <title>The World Wide Web Consortium</title>
      </head>
      <body>
          ...
      </body>
    </html>

## Tests

### Procedure

1. Examine the source code of the HTML document and check that a non-empty `title` element appears in the `head` section.
2. Check that the `title` element describes the document.

### Expected Results

- Checks #1 and #2 are true.

## Related Techniques

- G88
- G127

## Resources

- HTML - The `title` element.