Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
You are here: Reference > HTML > tags > head

head element

Browser support:
Provides information about the HTML document.
The head element contains information about the document. In a document head section you can set the document title, the keywords, styles, information for search engines, etc. The possible elements within the head tag are: base, bgSound, link, meta, script, style and title.
If you want to see the HTML tags by categories, please visit this page.
This element requires a closing tag.
JavaScript page for this element: head.

Possible members:

Attributes
Events
Styles
class
Sets the style class or classes that belong to the element.
dir
Sets the text direction as related to the lang attribute.
id
Sets a unique identifier for the object.
lang
Specifies the language of the element.
name
Sets the name of an element.
profile
Specifies one or more URIs for a meta-information dictionary.
xml:lang
Sets the language code of the XML document.

Example HTML code 1:

This example illustrates the use of the head element:
<head>
    <meta http-equiv="Refresh" content="2" />
    <meta http-equiv="Expires" content="Tue, 20 Aug 2020 14:25:27 GMT" />
    <title>Document</title>
    <base href="http://www.dottoro.com/" />
</head>
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content