HTML <area> target Attribute

The target attribute of the element allows you to set where the linked document will open, for example, new window, same frame, parent frame, etc.

Following is the syntax ?

Here, _blank is used to open the linked document in new window or tab, _self opens the linked document in the same frame as it was clicked, _parent opens the document in the parent frame, _top opens the linked document in the entire body of the window, frame opens the linked document in a named frame.

Let us now see an example to implement the target attribute of the elemen ?

Example



   

Learning

   

Learn these technologies with ease....

   usemap           Perl Tutorial       HTML Tutorial       PHP Tutorial    

Output

In the above example, we have set the map on the following image?

usemap

Now, we have set the map and area within it for shape ?


Perl Tutorial
HTML Tutorial
PHP Tutorial

Above, we have set the following to open the linked document in a new window i.e. _blank, which is used to open the linked document in new window or tab

target = "_blank"
Updated on: 2026-03-11T22:50:44+05:30

157 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements