Meta Elements
Meta elements don't effect the execution of the web page and they are not displayed by the browser. They are used to provide additional information about the web page.
Meta elements usually describe the character encoding, author of the program, content of the page, important keywords etc.
Meta elements are always placed in the head section of a webpage. They are used usually with the attributes of name, http-equiv and content.
Some of the most used meta elements are described here.
Declaring the Encoding
You can use meta tags to describe the encoding of the web page.
Example
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
Here the page uses utf-8 as the character set.
Meta tags used with Searh Engines
The meta tags are used with search engines mostly to give content's description and content's keywords.
Example
Content Description
<meta name="description" content="Guide to Fixed, Elastic and Fluid CSS layouts used in web design"/>
This meta tag gives the description of the page content.
Content Keywords
<meta name="keywords" content="css layouts, design layouts,fluid,elastic,fixed,liquid"/>
This meta tag gives the important keywords of the page.
Meta Redirect
You can use meta element to redirect to the user to a new page. The meta tag with attribute http-equiv="refresh" allows you to load a new page after a desired period of time has elapsed.
Example
<meta http-equiv="refresh" content="5; url=http://www.tomakewebsite.com" />
The above element will load the address www.tomakewebsite.com after 5 seconds.
Note: If we make a page load itself by providing the same url as of the current page, we can have a page that refreshes itself regularly after some time.
Next :
Related:
Link to this page :
Copy and paste the following code in an html document to link to this page,