A simple HTML document, with the minimum of required tags:
![]()
The <head> tag is supported in all major browsers.
The <head> element is a container for all the head elements.
The <head> element must include a title for the document, and can include scripts, styles, meta information, and more.
The following elements can go inside the <head> element:
NONE
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
| Attribute | Value | Description | DTD |
|---|---|---|---|
| profile | URL | Specifies a URL to a document that contains a set of rules. The rules can be read by browsers to clearly understand the information in the <meta> tag's content attribute | STF |
The <head> tag supports the following standard attributes:
| Attribute | Value | Description | DTD |
|---|---|---|---|
| dir | rtl ltr |
Specifies the text direction for the content in an element | STF |
| lang | language_code | Specifies a language code for the content in an element | STF |
| xml:lang | language_code | Specifies a language code for the content in an element, in XHTML documents | STF |
More information about Standard Attributes.
The <head> tag does not support any event attributes.
More information about Event 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.
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|