[Solved] Choose the correct HTML code to create an email link? (2024)

The correct option is (2)

<A HREF = "mailto:[emailprotected]"></A>

Concept:-

HTML <A> tag provides you the option to specify an email address to send an email. While using the <A> tag as an email tag, you will use mailto: email address along with the HERF attribute.

Following is the syntax of using mailto instead of using HTTP.

<A HREF = "mailto: [emailprotected]"></A>

[Solved] Choose the correct HTML code to create an email link? (1)Key Points

  • Mailto links are used to redirect the user to an email address instead of a link.
  • When the user clicks on a mailto link, the default email client opens on the user's computer and suggests sending an email to the address included in the mailto link.
  • To make a hyperlink in an HTML page, use the <a> and </a> tags, which are the tags used to define the links. The <a> tag indicates where the hyperlink starts and the </a> tag indicates where it ends.
  • Whatever text gets added inside these tags, will work as a hyperlink. Add the URL for the link in the <a herf=" ">.
  • URL or email, it all crosses the Internet. A Uniform Resource Locator or URL is web speak for address. It is the address of a web page and contains several elements.
[Solved] Choose the correct HTML code to create an email link? (2024)
Top Articles
Latest Posts
Article information

Author: Reed Wilderman

Last Updated:

Views: 6088

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Reed Wilderman

Birthday: 1992-06-14

Address: 998 Estell Village, Lake Oscarberg, SD 48713-6877

Phone: +21813267449721

Job: Technology Engineer

Hobby: Swimming, Do it yourself, Beekeeping, Lapidary, Cosplaying, Hiking, Graffiti

Introduction: My name is Reed Wilderman, I am a faithful, bright, lucky, adventurous, lively, rich, vast person who loves writing and wants to share my knowledge and understanding with you.