Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

<head>

<head
dir=ltr|rtr
lang=language
profile=url
title=text
</head>

Marks the HTML page heading. This contains all the information about the page (rather than the text, pictures etc that make up the content of your page).

You must enter the end-tag and you must include the <title> tag within the <head> tag. The <head> tag does not directly affect the look of the page.

You can also include the following tags within the heading section:

<base>, <basefont>, <isindex>, <link>, <meta>, <style>

Typically, the <body> tag appears after the <head> end-tag.

Attributes

dir=ltr|rtr

Specifies the direction of text. This can be left-to-right (ltr) or right-to-left (rtl). For example, English characters are presented left-to-right, Hebrew characters are presented right-to-left.

lang=language

Specifies which language the <hr> tag uses. You can enter any valid ISO standard language abbreviation, for example, “en” for English, “de” for German and so on. For example, <span lang="es">hola! como esta?</span>.

This attribute helps search engines understand different languages as different languages rather than just misspelled English. It may also help spelling and grammar checkers and allow speech synthesizers to use language-dependent pronunciation rules.

profile=url

Location of a metadata profile. A profile defines properties that may be used by <meta> and <link> tags. There is no prescribed format for profiles.

title=text

For information only. Some browsers display the title when you move the mouse over the tag (like a tool tip).