How Do You Create a Link in HTML: Complete W3C Anchor Guide
In standard HTML5 architecture, every hyperlink is declared using the <a> element, derived from the term anchor. Using this html link generator and url link generator ensures your website links comply with modern web security and Google search indexing guidelines.
Core HTML Link Syntax
A basic HTML hyperlink consists of the destination address and the clickable anchor text:
| Protocol Type |
href Value Example |
Action When Clicked |
Ideal Use Case |
| HTTPS / Web |
https://nrstudio.id/tools/ |
Loads web page in browser |
External & internal website navigation |
| Mailto |
mailto:support@nrstudio.id |
Opens default email client (Outlook, Apple Mail) |
Customer support contact forms |
| Telephone |
tel:+1234567890 |
Initiates phone call on mobile smartphones |
Mobile headers & local business contact pages |
| SMS Text |
sms:+1234567890 |
Opens messaging app with prefilled number |
Mobile customer service channels |
| Anchor Hash |
#section-faq |
Scrolls smoothly to element ID on the same page |
Table of contents & landing page jumps |
Security (Reverse Tabnabbing) & Search Engine Rel Attributes
When you set target="_blank" to open links in a new tab, the newly opened website gains partial window control over the referring page through the JavaScript window.opener API. Untrusted sites can silently redirect your users to phishing websites.
Preventing Exploitation with rel="noopener noreferrer"
By including rel="noopener", the browser breaks the window.opener link reference. Adding noreferrer also strips the HTTP Referer header, preventing sensitive URL query parameters from leaking to third-party servers.
SEO Link Attributes
rel="nofollow": Tells web crawlers not to endorse or transfer page authority to the destination URL.
rel="sponsored": Google requirement for paid guest posts, sponsored placements, and affiliate marketing hyperlinks.
rel="ugc": Recommended for user-generated content, such as blog comments, forums, and guestbook entries.
Frequently Asked Questions: HTML Hyperlink Maker
How can I make an image clickable in HTML?
Simply place the <img> tag inside the anchor tags: <a href="https://example.com"><img src="image.jpg" alt="Logo"></a>.
Can I combine multiple rel attribute values?
Yes. Multiple values are separated by spaces, such as rel="noopener noreferrer sponsored". Browsers and search engine robots parse each keyword independently.
What does the 'download' attribute do?
The download attribute instructs the browser to download the linked resource rather than navigating to it in the browser window, which is ideal for PDF files, ZIP archives, and images.
Is this hyperlink code generator completely free?
Yes. This tool is completely free with no usage limitations, no account registration, and zero third-party telemetry.