Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

The HTML Target Attribute for Anchors

The Anchor tag attribute for target tells the web browser where to open the link. There are 4 defined target presets which come in handy for many web designers of all levels. They are _blank, _self, _parent, and _top. You can also specify a descriptive name with the underscore( _ ).

  • _blank will open a new browser window with no name.
  • _self will replace the current html page, so if it is in a frame or frameset it will load within that frame. If it is the full browser, it will open to replace the page in the full browser.
  • _parent will replace the html page it came from.
  • _top will load in the current browser by replacing anything within the browser such as a frameset.

A descriptive name is used when

  • you want to use a named frame as your target, setting the frame name in the frameset you want it to load into.
  • you want for example say all your outside links to open in the same window, name the target as one.
  • you have popup windows that are for example larger images from a thumbnail and you want them to always open in the same window, name the target all the same.
Examples of targets are here.

 

The target tag appears in the Anchor reference as shown in the example below:

<a target="_blank" href="mypage.html">your link text here</a>

 



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2024 All Rights Reserved
Privacy and Legal