For what the target tag is used? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

For what the target tag is used?

28th Nov 2016, 1:45 PM
Omkar Dolase
Omkar Dolase - avatar
3 Answers
+ 5
target is a atributte. He specify the target of the link. Example: <a href="http://www.google.com" target="_blank">Google </a> Open a home Google in a new window or tab.
28th Nov 2016, 2:37 PM
ManuCarv
+ 4
First of all target is not a tag. It is an attribute. Target attribute specifies where to open the linked document. Target attribute can have one of the following values. _blank - Opens the linked document in a new window or tab _self - Opens the linked document in the same window/tab as it was clicked (this is default) _parent - Opens the linked document in the parent frame _top - Opens the linked document in the full body of the window framename - Opens the linked document in a named frame.
1st Dec 2016, 8:45 AM
Debalina Mukherjee
Debalina Mukherjee - avatar
+ 3
Target attribute defines how your linked document will be opened. Target attribute can have one of the following values. _blank - Opens the linked document in a new window or tab _self - Opens the linked document in the same frame as it was clicked (this is default) _parent - Opens the linked document in the parent frame _top - Opens the linked document in the full body of the window
30th Nov 2016, 2:37 AM
Ankit Sanghavi
Ankit Sanghavi - avatar