+ 2
How to use the target attribute
4 Answers
+ 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).
+ 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>
+ 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.
0
target? where? give me example