Press "Enter" to skip to content

HTML Tag

When the user clicks on the link, their email client will open with a new message addressed to “info@example.com“.

Downloadable files:

Finally, you can use anchor tags to create links that allow the user to download a file. To do this, you need to specify the URL of the file you want to download. Here is an example:

<a href="https://example.com/files/document.pdf" download>Download Document</a>

In this example, the “download” attribute is added to the anchor tag to indicate that the file should be downloaded rather than opened in the browser.

In addition to the basic syntax, there are several other attributes that can be used with anchor tags to customize their behavior and appearance.

The “target” attribute specifies where the linked page should be opened. For example, you can use “_blank” to open the linked page in a new browser window or tab:

<a href="https://www.google.com" target="_blank">Google</a>

The “rel” attribute specifies the relationship between the linked page and the current page. For example, you can use “nofollow” to indicate that the linked page should not be given any search engine optimization (SEO) credit:

<a href="https://www.example.com" rel="nofollow">Example Website</a>