From http://www.w3schools.com (Copyright Refsnes Data)
ExampleA simple HTML document, with the minimum of required tags:
Try it yourself! (more examples at the bottom of this page) |
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!
The <head> tag is supported in all major browsers.
NONE
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 |
dir, lang, xml:lang |
For a full description, go to Standard Attributes.
Use of the
<base> tag in <head>
How to use the <base> tag to specify a default URL and a default target for all
links on a page.
Use of the <style>
tag in <head>
How to add style information to the <head>
section.
Use of the
<link> tag in <head>
How to use the <link> tag to link to an external style sheet.
Use of <meta>
tags in <head>
How to use <meta> tags to describe the document.
From http://www.w3schools.com (Copyright Refsnes Data)