HTML Links | Sololearn: Learn to code for FREE!


HTML Links

If we want a link to open in a different webpage the we use target="_blank" attribute but if we want it to open in the same webpage then what is the procedure for that?

6/1/2019 8:11:16 AM


5 Answers

New Answer


<a href="link" > target is not specified, default is _self <a href="link" target="_self"> - will open link in same tab So you dont writte target at all.


`_self`, which is also the default if you don't specify any target.




Just don't set target


Can you write a code in which the target is not specified?(I want to know which part you have to leave empty)