+ 2

target attribute

please why is the target attribute necessary

4th Feb 2018, 10:42 PM
Ihegwuagu chibuzor
3 RĂ©ponses
+ 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.
4th Feb 2018, 11:07 PM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 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!
4th Feb 2018, 10:47 PM
Faisal
Faisal - avatar
+ 2
it's really help. thanks
7th Feb 2018, 10:01 AM
Adwina
Adwina - avatar