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 Developer - MERN StackExplore 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:

html-redirect

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.

html-redirect-example

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

html-redirect

Fig: HTML redirect

Conclusion

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. 

Our Software Development Courses Duration And Fees

Software Development Course typically range from a few weeks to several months, with fees varying based on program and institution.

Program NameDurationFees
Caltech Coding Bootcamp

Cohort Starts: 17 Jun, 2024

6 Months$ 8,000
Automation Test Engineer

Cohort Starts: 29 May, 2024

11 Months$ 1,499
Full Stack Java Developer

Cohort Starts: 4 Jun, 2024

6 Months$ 1,449
Full Stack Developer - MERN Stack

Cohort Starts: 18 Jun, 2024

6 Months$ 1,449