0
What the Difference between Attribute href and target
8 odpowiedzi
+ 5
Take a look at an example here:
<a href="http://www.sololearn.com" target="_blank">Click me!</a>
When you click it - it will open the "href" page in the "target" window. In this case in the new browser window.
+ 5
It will then open in the same window, by default (unless you set your browser otherwise).
+ 3
href is where you put the link to
target is whether you want to open it in a new browser window/tab or not
+ 1
aha;ok get it ; thank you
0
and that's will not happen in href??
0
Iunderstand that but if ididn't added target what will be hppening
0
what happens when you don't add the target attribute, is that it opens in the same page. but it also depends on your browser settings. if you choose "open page in new window" then the default will be just that.
0
ok ;get it ;that's mean depend on your browser setting without target