Simple Trick to Make Your Website Links Open in a New Tab

 If you take a look at the left-hand side of my blog, you'll find some highly recommended book links that will redirect you to external websites like Amazon or eBay. To ensure a smooth user experience, I have used the following method that will allow these links to open in a separate tab when clicked.



The HTML code for embedding an external link typically appears like this. To have the linked page open in a new tab, merely add target="_blank right after the website address enclosed in quotes. Simple as that!



<a target="_blank" href="https://amzn.to/3SMBqmS">Shop Amazon Gift Cards. Any Occasion. No Expiration.</a><img src="//ir-na.amazon-adsystem.com/e/ir?t=ksleadia-20&l=pf4&o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

Comments

Popular posts from this blog

IWEB trading platform, service review

Review: Dodl - AJ Bell's User-Friendly Investment App

What Gaming Taught Me About Life