+ 4

target

why is this target attribute is used?? i can't understand

5th Mar 2017, 8:41 AM
kishor
2 ответов
+ 2
On a A tag it is used to determine where to open that link - same window(default)/new window("_blank"). There are a few more posible values, but they are a not that common.
5th Mar 2017, 9:02 AM
spotbot2k
spotbot2k - avatar
0
The target attribute as earlier explained an be used to specify how a browser executes a command, say in HTML, it is used to open links in New window or Tab in a browser e.g using <a href="sololearn.com/" target="_blank"> Solo Learn </a> This command will execute the link in a new Tab or window within the browser. Other uses of the target attribute exists but basically this is what you get with Html.
6th Mar 2017, 10:00 AM
COLLINS EKENE
COLLINS EKENE - avatar