Magazine 17 Nov , 2014
Here are 7 major features of web page which you can achieve using Meta Tags –
1. Refreshing Web Pages
You can set a page to refresh after a certain time, so that page will be auto-refresh after that time . you can set its http-equiv attribute to refresh and its content to be the number of seconds like –
This meta-tag specification above will make the browser reload the page every 20 seconds.
2. Redirecting To Another URL
There are situations when we just want to redirect the page to some other url after certain time.. we can also using refresh meta tag to redirect the page to the other specific URL, lets see how it looks like –
Now in the above code we can specify new url by placing a semicolon(;) after the number of seconds and then by putting the url.
3. Setting an expiration Date in Browser
we can also set some Expiry date to ensure that cached page will be refreshed after some certain time from server, rather than coming from cache technique we described above.
Above meta tag describes that the document will be expired after the given date, If you set it to “0” zero, the browser will check for a fresh document on server on next visits.
4. Handling Browser Cache
If you know something about cache, then it may be it is small size of memories which are used by web browsers to save the assets of the page and make it faster when it load next time.. You may have also came accross this issue that when you make changes in your page, it doesn’t reflect changes you’ve just made… Its browser’s cache. You can disable it using meta tags, Lets see following example-
Above meta tag is recognized in Firefox, IE, and Chrome. Even more so in Internet Explorer, where we can user more specifications to disable caching as follows-
So this is how it works.
5. Meta Tags with Cookies
As we all know cookies is a small piece of data that stored in the browser by the website you’ve visited, it store the data for a specific time duration, to follow up some functionalities. Following code is an example of this for setting cookies on meta tag –
In above code, name=data is the name of the cookie which determines the values set in it. path is the path of the document.
6. Meta Keywords and Meta Description Tags Tips
When we discuss about Meta Tags, I shouldn’t leave Meta keyword and Meta description tags. Lets find out some important points which we should remember when we give Meta keywords and Meta Description tags –
You might want to get through