Skip to: content, navigation

by Ian Lloyd

target (HTML attribute)

Browser support full matrix
IE7 FF2 Saf3 Op9.2
None None None None
Spec
Depr. Version
Yes HTML 2
target=" { _blank | frame name | _parent | _self | _top } "

Example

The target attribute indicates that the referenced document is in a window with the custom name "subframe":
<link rel="subsection" rev="parent" target="subframe"
    href="categories.html"/>

Description

The target attribute is used in the link element to identify the window or frame—which may be in a frameset, an iframe, or even a popup window with a custom window name—that the resource referenced in the href attribute applies to.

Value

Refer to the syntax section for the acceptable values for target.

Compatibility

IE5.5None
6.0None
7.0None
Firefox1.0None
1.5None
2.0None
Safari1.3None
2.0None
3.0None
Opera9.2None

The support charts indicate no support for this attribute, as none of the browsers do anything useful with it, or change the behavior of anything on the page as a result of it.

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters