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.

Opening links in different windows and iframes

Opening links in different windows and iframes

From the course: HTML and CSS: Linking

Start my 1-month free trial

Opening links in different windows and iframes

- [Instructor] Now that we have some links that go off site we may want to open these in a new tab or a new window. Maybe wondering how you get them to open a tab or a window. And that is a user configured setting in most modern day browsers. But most browsers by default will open these links in a new tab. Whether we should open links that go offsite into new tabs is an ancient debate on the web. Is it better to have people open in a new tab and then they get confused about how to get back to the site they were on because the back button doesn't take them there? Or is it better to open in a new tab because then we don't lose the original site that people were on and they can go back to it? I'm of the school that believes we ought to open links that go offsite in a new tab but there's arguments to be made in both directions. Whatever you decide to do with your links that go off site those that start with HTTP, HTTPS, then you need to treat them all consistently. They should all go into…

Contents