Page 1 of 1

How to Open a Link in a New Tab Using HTML

Posted: Mon Dec 23, 2024 9:24 am
by mstlucky0110
The number of purchases and orders on the site depends on how convenient it is for users to use. Making a multi-page site convenient enough for users is more difficult than a landing page or a multi-link site . Some people think that opening a new page, a site link in a new tab will be convenient for users. Let's figure out if this is true. And how to set up opening a new page using HTML code.
How to open a link in a new tab using HTML
To open a new browser tab when you click on a link, you need to add the target=»_blank» attribute to the <a> link tag . This is a command to the browser to open a new tab or window (depending on the browser type and its settings)
Let's give an example of editing a link.
The original address looked like this:
Add the attribute. Opening in a new tab will occur when the address looks like this:
Why Using HTML to Open New Tabs Is Unsafe
— Some developers believe that they are making it more convenient for visitors by opening a link in a new tab. But inexperienced users do not understand where the browser has redirected them. They may get confused and close the site.
— Experienced users control the work with web resources themselves, get irritated by such actions. If you still decide to use the HTML command to open a new window, add a notification about the redirect.
— When the HTML code and the target=»_blank» command are used, the page to which the link leads gets access to your resource. Having access, you can change the content. This is a direct threat of russian numbers phone stealing visitors' data, called phishing. When a visitor opens a login/registration, payment page in a new tab, the malicious code replaces your page with its own. The user enters data, passwords, CVC codes of the card on the scammers' page.
Alternative to standard sites
Many small businesses, bloggers, and small online stores do not need a large multi-page site. A quick and easy solution can be a mini-site - a multi-link.
This page is similar to a landing page, where information about a product, service, person is collected. This type of site is not new, it is widely used among bloggers and small businesses in social networks, especially Instagram.
When creating a website in the Hipolink service , you don’t have to think about HTML codes, attributes, or the correctness of their input. All functionality is programmed in advance and ready for use. The service works as a constructor. You only need to select the appropriate blocks.
After registration, create a new landing page design, add blocks of text, photos, videos, links, messenger buttons and payment acceptance. Connect additional options - metrics collection and analytics, JivoSite autoresponder.
In addition to standard blocks, the option of embedding HTML code is available. The HTML block is intended for expanding functionality, connecting metrics and Pixel Facebook, Pixel VK.
The Hypolink service guarantees that opening tabs and following links is absolutely safe.
More than 140,000 users have already created landing pages using the Hypolink service, without wasting time and money on web developers and designers.