HTML lets you specify metadata
- additional important information about a document in variety of ways. The META elements can be used to describe properties of the HTML document, such as author, expiry date, a list of keywords, document author,description of web page, etc.
Information present in meta tag
is crucial for the search engines because that information will be used by search engine to ensure the content, a user is searching for. This tag is an empty element and so does not have a closing tag but it carries information within its attributes.
You can include any number of 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.
You can add metadata to your web pages by placing <meta>
tags inside the header of the document which is represented by <head>
and </head>
tags.
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.
You can use <meta>
tag to give a short description about the content present in the web page.
This again can be used by various search engines while indexing
your webpage for searching purpose.
You can use <meta>
tag to give information about the last time the document was updated.
This information can be used by various web browsers while refreshing your webpage.
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.
You can set an author name in a web page using meta tag.
You can use <meta>
tag to specify character set used within the webpage.
If it is not defined then the default character set will be used.
Cookies are data, stored in small text files on your computer and it is exchanged between web browser and web server to keep track of various infromation based on your web application need.
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.
The http-equiv
is used for http response message headers.
It helps to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.
If you do not include the expiration date and time, the cookie is considered a session cookie and will be deleted when the user exits the browser.
Follow Us: