An HTML redirect happens when a user enters a URL, but it changes, and the browser directs them to a different web page. Website developers rely on them when they need to change their site's structure or the location of a particular page. 

What Is an HTML redirect?

A redirect is when a web page’s URL automatically changes to a different URL. This is useful when you want to redirect a page to a new location; for example, redirects are frequently used when businesses change their names and change their website URLs as well.

Here's How to Land a Top Software Developer Job

Full Stack Development-MEANExplore Program
Here's How to Land a Top Software Developer Job

How to Redirect a Page to Another Page in HTML

The simplest way to redirect to another URL is with the use of the meta refresh tag. We can place this meta tag inside the <head> tag at the top of any HTML page, which looks like this:


The value in the content attribute is the number of seconds after which you want the page to redirect. You can set the value to zero for immediate loading.


After waiting three seconds, you will be redirected to Simplilearn’s homepage.


Fig: HTML redirect


In this article, we briefly introduced the concept of HTML redirects, and demonstrated how to redirect web pages using the <meta> tag. Whether you're looking to break into the exciting industry of web development, or you're a novice looking to advance your career, this is the best time to take the next step toward reaching your goals. Simplilearn's Postgraduate Program in Full Stack Development is a great way to expand your skillset. The postgraduate program, designed in collaboration with the Caltech CTME, can help you to fast-track your career in software development. You will be taken on a curated learning path of end-to-end software development with hands-on experience in full stack programming. 

If you have any questions, please feel free to ask them in our comments section, and our experts will answer them promptly. 

About the Author

Aryan GuptaAryan Gupta

Aryan is a tech enthusiast who likes to stay updated about trending technologies of today. He is passionate about all things technology, a keen researcher, and writes to inspire. Aside from technology, he is an active football player and a keen enthusiast of the game.

View More
  • Disclaimer
  • PMP, PMI, PMBOK, CAPM, PgMP, PfMP, ACP, PBA, RMP, SP, and OPM3 are registered marks of the Project Management Institute, Inc.