Chinese VersionThe title of a document
The <title> tag defines the title of the document.
One target for all links
How to use the base tag to let all the links on a page
open in a new window.
Document description
Use the meta element to describe the document.
Document keywords
Use the meta element to define the keywords of a document.
Redirect a user
How to redirect a user to a new web address.
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: <title>, <base>, <link>, <meta>, <script>, and <style>.
The <title> tag defines the title of the document.
The title element is required in all HTML/XHTML documents.
The title element:
A simplified HTML document:
The <base> tag specifies a default address or a default target for all links on a page:
The <link> tag defines the relationship between a document and an external resource.
The <link> tag is most used to link to style sheets:
The <style> tag is used to define style information for an HTML document.
Inside the style element you specify how HTML elements should render in a browser:
Metadata is information about data.
The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine readable.
Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.
The <meta> tag always goes inside the head element.
The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.
Some search engines will use the name and content attributes of the meta element to index your pages.
The following meta element defines a description of a page:
The following meta element defines keywords for a page:
The intention of the name and content attributes is to describe the content of a page.
The <script> tag is used to define a client-side script, such as a JavaScript.
The script element will be explained in a later chapter.
| Tag | Description |
|---|---|
| <head> | Defines information about the document |
| <title> | Defines the title of a document |
| <base /> | Defines a default address or a default target for all links on a page |
| <link /> | Defines the relationship between a document and an external resource |
| <meta /> | Defines metadata about an HTML document |
| <script> | Defines a client-side script |
| <style> | Defines style information for a document |
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $3.98 Unlimited Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Best Website Templates Top CSS Templates |
| CREATE HTML Websites |
| EASY WEBSITE BUILDER |
| 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 |
|---|