• Tutorial List

HTML a href E-Mail, Phone Number, and Script Linking

Last updated Jul 08, 2020
HTML a href E-Mail, Phone Number, and Script Linking

The HTML href attribute of the anchor tag is also used to linking emails, phone numbers, and javascript.

The E-Mail and Phone number linking are quite helpful for user experience when you add contact details on your website.

E-Mail Linking

<a href="mailto:email_address">Text</a>
<a href="mailto:[email protected]">Send email to [email protected]</a>

Phone Number Linking

<a href="tel:Phone_Number">Text</a>
<a href="tel:+917555802667">+917555802667</a>

JavaScript Linking

This SCRIPT will run when you click on the link.

<a href="javascript:SCRIPT">Text</a>
<a href="javascript:alert('Hello World!')">Click Me</a>

Ask Questions

Your email address will not be published. Required fields are marked *