Information inside a meta element describes the document.
Information inside a meta element describes the document's keywords.
Redirect a user
This example demonstrates how to redirect a user if your site address has
The Meta Element
As we explained in the previous chapter, the head element contains general
information (meta-information) about
HTML also includes a meta element that goes inside the head element. The
purpose of the meta element is to provide meta-information about the document.
Most often the meta element is used to provide information that is relevant
to browsers or search engines like
describing the content of your document.
Note: W3C states that "Some user agents support the use of META to
refresh the current page after a specified number of seconds, with the option of
replacing it by a different URI. Authors should not use this technique to
forward users to different pages, as this makes the page inaccessible to some
users. Instead, automatic page forwarding should be done using server-side
Keywords for Search Engines
Some search engines on the WWW will use the name and content attributes of
the meta tag to index your pages.
|This meta element defines a description of your page:
<meta name="description" content="Free Web tutorials
on HTML, CSS, XML, and XHTML">
|This meta element defines keywords for your page:
<meta name="keywords" content="HTML, DHTML, CSS, XML,
The intention of the name and content attributes is to describe the content of
However, since too many webmasters have used meta tags for spamming, like
repeating keywords to give pages a higher ranking, some search engines have stopped using them entirely.
You can read more about search engines in our Web
Unknown Meta Attributes
Sometimes you will see meta attributes that are unknown to you like this:
|<meta name="security" content="low">
Then you just have to accept that this is something unique to the site or to the
author of the site, and that it has probably no relevance to you.
You can see a complete list of the meta element attributes in our
HTML 4.01 Tag Reference.
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
Try before you buy with a free fully functional 30-day trial
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).