From the course: HTML and CSS: Linking
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Redirecting links within a webpage
From the course: HTML and CSS: Linking
Redirecting links within a webpage
- Narrator] One of the easiest ways, but not necessarily the best way to redirect one page to another is via the so-called meta redirect tag. The name is something of a misnomer as it's a meta tag with a refresh attribute, technically speaking. The meta redirect tag usually does one of two things. Either it can cause your page to refresh periodically, say you're running a live event and you want the page updated with the latest information, and so you could leverage the meta refresh to do that for you. Or it can be used to redirect a visitor from that particular page to another page automatically. The second option is more useful to us here. And I talk more about the meta redirect tag as well as other meta-tags and link tags, in my course, HTML: Metadata in the Head. I say that this is not necessarily the best way to do this because you have to create these individual pages, you have to code them with the meta refresh. You're going to land on a page, then you're immediately going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.