HTML Meta
Examples
Document description
Information inside a meta element describes the document.
Document
keywords
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
changed.
The Meta Element
As we explained in the previous chapter, the head element contains general
information (meta-information) about
a document.
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
redirects" at
http://www.w3.org/TR/html4/struct/global.html#adef-http-equiv.
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, XHTML, JavaScript"
/>
|
The intention of the name and content attributes is to describe the content of
a page.
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
Building Tutorial.
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
Complete
HTML 4.01 Tag Reference.
Make your web applications look like a million bucks
|
|
Most web applications today use boring methods to present data to their viewers using grids or simple HTML tables. FusionCharts induces "life" into the web applications by converting monotonous data into lively charts, gauges & maps.
FusionCharts works with all technologies like ASP, ASP.NET, PHP, ColdFusion, Ruby on Rails, JSP, HTML pages etc.
and connects to any database to render animated & interactive charts. It takes less than 15 minutes and no expertise
whatsoever to build your first chart and just a glance of it to captivate your audience. This fact is endorsed by our
12,000 customers and 150,000 users which include a majority of the Fortune 500 companies.
And yeah, your applications could look like a million bucks by spending just $69.
So go ahead, download your
copy of FusionCharts and start "wow-ing" your customers now!
|
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
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).
|