html redirect

By using html meta tag we can redirect one web page to another web page, without using javascript, jquery or any other scripting language.

Syntax

<meta http-equiv="refresh" content="5; url=/" />

http-equiv="refresh" -> indicates the page need to be refresh
content="5; url=/"
5 -> indicates the page need to be refresh after 5 seconds
url -> indicates to which page it has to be redirected after the page refresh.

Example

html-redirect

Source Code

<html> <head> <title></title> <meta http-equiv="refresh" content="5; url=/" /> </head> <body> <h3> In 5 seconds this web page will be redirect to "Dotnet Learners" website....</h3> </body> </html>