target attribute | Sololearn: Learn to code for FREE!

+2

target attribute

please why is the target attribute necessary

2/4/2018 10:42:30 PM

Ihegwuagu chibuzor

3 Answers

New Answer

+4

target isn't necessary. Oh well, indirectly it is, set to either "self" or "blank", but it's almost useless. Just that it decides which frame it opens up in.

+3

It isn't necessary per se, you only need it if you want to specify where the link should open. If you do not specify, then it will automatically open in the tab. For example, say you want to open a link in a different window. To do this, you would add the target attribute to your link with the value of _blank. Hope this helped!

+2

it's really help. thanks