Meta Tags

The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable. The additional important information about a document in a variety of ways.

The META elements can be used to include name/value pairs describing properties of the HTML document, such as author, expiry date, a list of keywords, document author etc. The meta tage can use the web browser for serach engines optimization and create the keyword for web service.

You can include one or more meta tags in your document based on what information you want to keep in your document but in general, meta tags do not impact physical appearance of the document so from appearance point of view, it does not matter if you include them or not.

Specifying Keywords

You can use <meta> tag to specify important keywords related to the document and later these keywords are used by the search engines while indexing your webpage for searching purpose.

Example :-

This is an example, where we are adding HTML, Meta Tags, Metadata as important keywords about the document.

Result :-

This is a keywords text

Document Description

You can use <meta> tag to give a short description about the document. This again can be used by various search engines while indexing your webpage for searching purpose.

Example :-

Document Revision Date

You can use <meta> tag to give information about when last time the document was updated. This information can be used by various web browsers while refreshing your webpage.

Example :-

Page Redirection

You can use <meta> tag to redirect your page to any other webpage. You can also specify a duration if you want to redirect the page after a certain number of seconds.

Example :-

Following is an example of redirecting current page to another page after 5 seconds. If you want to redirect page immediately then do not specify content attribute.

Setting Cookies

You can use <meta> tag to store cookies on client side and later this information can be used by the Web Server to track a site visitor.

Example :-

This example of redirecting current page to another page after 5 seconds. If you want to redirect page immediately then do not specify content attribute.

Specify character Set

You can use <meta> tag to specify character set used within the webpage.

Example :-

By default, Web servers and Web browsers use ISO-8859-1 (Latin1) encoding to process Web pages. Following is an example to set UTF-8 encoding