+ 2

How to use the target attribute

17th Apr 2017, 7:44 PM
Grace K
Grace K - avatar
4 odpowiedzi
+ 8
The use of target may alter the browser's default settings. Often it's crucial for your website's performance and user experience. When on a page with a <form>, you may want to make sure that a link that users follow (perhaps with an explanation) will open in a new tab, rather than in the same one (erasing the user's input).
17th Apr 2017, 8:02 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
<a href="http://www.abc.com" target="_self">This will open in the same browser window/tab.</a> <a href="http://www.xyz.com" target="_blank">This will open in a new browser window/tab.</a>
17th Apr 2017, 7:47 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
<a href="https://www.pexels.com/search/flowers/" target="_blank" > beautiful flowers </a> . It seems like there is no change whether I use the target attribute or not.
17th Apr 2017, 7:57 PM
Grace K
Grace K - avatar
0
target? where? give me example
17th Apr 2017, 7:47 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar