Valid HTML5 redirect

10 Aug 2012

You want to write a valid HTML5 page that only shows some text for a few seconds (let’s say 3), and then redirects to another URL.

Use something like to code bellow:

<!DOCTYPE html>
<html>
<head>
<title>Your page title</title>
<meta charset="UTF-8">
<meta http-equiv="Refresh" content="3; url=http://www.example.com/" />
</head>
<body>
<p>You are being redirected to <a href="http://www.example.com/">some interesting page</a>.</p>
<p>If you are not redirected after a few seconds, please click on the link above!</p>
</body>
</html>