demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

CSSslidy: an auto-generated #RWD image slider. 3.8K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Action meta tags

seo / metatags

Estimated reading time: 42 seconds

Meta tags can also be used to cause actions in the browser itself. The most common is the “refresh” meta tag, useful for having a page that is often updated auto-reload in the browser window (the index page of CNN.com being a good example) or to redirect the user to another page automatically (as when a site has moved from one URL to another, and you want people who bookmarked the old site to be automatically redirected to the site’s new location).

Again, the meta tag is written inside the head section of the document:

<meta http-equiv="refresh" content="5;url=http://www.cnn.com" / >

The number immediately after the content is the number of seconds before the refresh takes place, following it after a comma is the URL to which the page will go. (If there is no URL placed here, the page will simply reload itself).

comments powered by Disqus

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.