Which HTML snippet creates an e-mail link?

Prepare for the Web Design EOPA Test. Study with interactive quizzes and multiple-choice questions, complete with hints and detailed explanations. Get ready for your web design certification!

Multiple Choice

Which HTML snippet creates an e-mail link?

Explanation:
To create a link that opens an email composer, you use the anchor element with an href that starts with mailto:. The snippet <a href="mailto:xxx@yyy">Email</a> tells the browser to launch the default email application and compose a message to xxx@yyy when the link is clicked. The other options don’t fit because they don’t use the mailto scheme. An href of "url" would navigate to a resource named url rather than open an email client. A link tag isn’t used for clickable content in the page body and wouldn’t produce an email composer. An href beginning with ftp would try to access an FTP resource, not compose an email. You can also extend mailto with query parameters, like <a href="mailto:someone@example.com?subject=Hello&body=Hi">Email me</a>, to prefill subject or body.

To create a link that opens an email composer, you use the anchor element with an href that starts with mailto:. The snippet Email tells the browser to launch the default email application and compose a message to xxx@yyy when the link is clicked.

The other options don’t fit because they don’t use the mailto scheme. An href of "url" would navigate to a resource named url rather than open an email client. A link tag isn’t used for clickable content in the page body and wouldn’t produce an email composer. An href beginning with ftp would try to access an FTP resource, not compose an email. You can also extend mailto with query parameters, like Email me, to prefill subject or body.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy