Link with Email and Phone

In HTML, you can create links to email addresses and phone numbers using the <a> tag with the mailto: and tel: attributes. These links allow users to directly send an email or call a phone number when clicked.

Creating an Email Link (mailto:)

The mailto: scheme opens the user's default email client with a predefined recipient.

<a href="mailto:someone@example.com">Send an Email</a>

Pre-Filled Subject and Body

You can pre-fill the subject, body, and even CC/BCC recipients.

<a href="mailto:someone@example.com?subject=Hello&body=How are you?">Send a Custom Email</a>

Adding CC and BCC

<a href="mailto:someone@example.com?cc=ccperson@example.com&bcc=bccperson@example.com&subject=Meeting">Email with CC & BCC</a>

Creating a Phone Call Link (tel:)

The tel: scheme allows users to directly call a phone number when clicked (works on mobile devices and some desktop apps).

Example:
<a href="tel:+1234567890">Call Us</a>


Programs

HTML program segment that contains hypertext links from one document to another

View Solution


Create a hyperlink in html which when clicked links to www.google.com in a new window

View Solution


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad