Latest

recent

HTML head tag

Example

A simple HTML document, with the minimum of required tags:
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>


Definition and Usage

The head element is a container for all the head elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more.
The following tags can be added to the head section: <base>, <link>, <meta>, <script>, <style>,  and <title>.
The <title> tag defines the title of the document, and is the only required element in the head section!

Browser Support


The <head> tag is supported in all major browsers.

Differences Between HTML and XHTML

NONE

Optional Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
profile URL A space separated list of URL's that contains meta data information about the page STF

Standard Attributes

dir, lang, xml:lang
HTML head tag Reviewed by 1000sourcecodes on 04:57 Rating: 5
Powered by Blogger.