Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
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....
![]()
Output

In the above example, we have set the map on the following image?
Now, we have set the map and area within it for shape ?
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"
