Links: Target Attribute

HTML file: Displayed by browser:

<a href="boo.html" target="_blank">Say hello to ghost!</a>

Say hello to ghost!

The target attribute specifies where to open the linked document. The "_blank" value opens the linked document in a new browser window, or in a new tab, leaving the original webpage alone. This is helpful because people won't lose the original webpage, as they click away, going off on some tangent. Your webpage is gonna still be there, hiding in the background.


Target values are used considerably by frames, which we haven't learned about yet. I will relocate this stuff when I get to those lessons, so ignore this...
Back buttonTable of ContentsNext button