In this tutorial you will learn about the HTML Meta Tags and its application with practical example.
Meta Tag is a singular HTML Tag placed inside the head section, used to provide information about the document such as the author, keywords or relationships to other documents, all this details is represented using <META> tag’s attribute. All the meta information provided in this section is used by search engines to find and rank the page.
Basic Meta Tags Examples –
Keywords META
This meta tag is used to set the keywords for the web page. Used to by search engines to find the most relevant search item.
1 |
<meta name="keywords" content="w3school, w3school html meta tags" /> |
Description META
This meta tag is used to provide the description of the web page, giving an appropriate description of the page helps better search engine indexing for relevant search item.
1 |
<meta name="description" content="Learn web development from best resource." /> |
Author META
This META Tag helps to specify the author name for a web page.
1 |
<meta name="author" content="Beth Anderson" /> |
Refreshing page using META Tag
HTML document can be set to refresh after a defined set of interval using META Tag.
1 |
<meta http-equiv="refresh" content="10" /> |
Redirecting page using META Tag
HTML document can also be redirected to another web page using META Tag, we can also set interval for the redirection action.
1 |
<meta http-equiv="refresh" content="20; url=http://www.w3adda.com" /> |