Translate this page

HTML Redirect to Other Web Page Automatically

How to redirect to another web page with html code

Redirecting a page to another page is simple, you can use the below code to do that, just place the code in the head section of a page

The content=5 determines how many seconds to wait before redirection, you can change the 5 value to any value

Syntax

<meta http-equiv="refresh" content="3; url = https://google.com" />

Full code with title and redirection

<html>
<head><meta charset="us-ascii">
	<title>Your page title</title>
	<meta http-equiv="refresh" content="3; url = https://google.com" />
</head>
<body>
<h2 style="text-align: center;"><span style="font-family:Verdana,Geneva,sans-serif;"><span style="font-size:36px;"><span style="color:#8e44ad;">Redirecting</span></span></span></h2>

<p style="text-align: center;"><span style="font-family:Courier New,Courier,monospace;"><span style="color: #000000;">Please wait... </span></span></p>

</body>
</html>

Related Posts

black screen with code

PHP Array to JavaScript Array

How to convert PHP array to JavaScript array The code below can convert your php array to JavaScript array

silver imac displaying collage photos

Fix PHP Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?

Here is how to fix Unable to find the wrapper “https” problem in PHP In php development, you will encounter this error when trying to access an…

6 Web Design Secrets Every Business Owner Should Know

Photo Credit: Tranmautritam via Pexels 6 Web Design Secrets Every Business Owner Should Know According to industry experts, small businesses need to have a website to attract…

PHP: Get Visitors IP and Location and Save to TXT File

How to get visitors IP address and Location and save them to Text file in php This simple php code can be used to save visitors data…

Show Alert when Visitor Leaving a Web Page

Here is how to show an alert message when a visitor leaving a web page With this code, we can show a message or dialogue of your…

Hide go to Top Button in CSS

How to hide go to top button in CSS The go to top button can be used to go to the top section of your website quickly….

Leave a Reply

Your email address will not be published. Required fields are marked *