What is the purpose of using mailto: in an HTML link?
The mailto: scheme creates a link that opens the user's default email program to send an email to the specified address.
Click to reveal answer
beginner
How do you create a clickable phone number link in HTML?
Use the tel: scheme in an anchor tag's href attribute, like <a href="tel:+1234567890">Call us</a>, which allows users to tap and call on supported devices.
Click to reveal answer
intermediate
Why should you include the full international phone number format in tel: links?
Including the full international format (with + and country code) ensures the phone number works correctly for users in different countries and devices.
Click to reveal answer
beginner
What accessibility tip should you follow when creating email or phone links?
Use clear link text that describes the action, like 'Email support' or 'Call customer service', so screen readers and all users understand the link purpose.
Click to reveal answer
intermediate
Can you use mailto: links to add a subject or body text to the email? How?
Yes, by adding query parameters like ?subject=Hello&body=Message after the email address, for example: mailto:example@example.com?subject=Hello&body=Message.
Click to reveal answer
Which HTML attribute value creates a link that opens the email client?
Amailto:someone@example.com
Btel:1234567890
Chttp://example.com
Demail:someone@example.com
✗ Incorrect
The 'mailto:' scheme tells the browser to open the default email program with the specified address.
What does tel:+1234567890 do in an anchor tag?
AOpens a website
BSends an email to the number
CStarts a phone call to the number on supported devices
DDoes nothing
✗ Incorrect
The 'tel:' scheme creates a clickable phone link that can start a call on phones or apps that support it.
How can you add a subject line to an email link?
Atel:email@example.com?subject=Hello
Bmailto:email@example.com#subject=Hello
Cemail:email@example.com?subject=Hello
Dmailto:email@example.com?subject=Hello
✗ Incorrect
Query parameters like '?subject=Hello' after the email address set the email subject.
Why is it important to use descriptive text for email and phone links?
ATo help screen reader users understand the link's purpose
BTo make the link look colorful
CTo increase the font size automatically
DTo disable the link on mobile devices
✗ Incorrect
Descriptive text improves accessibility by clearly explaining what the link does.
Which is the correct way to write a phone link for the number +1 234 567 8900?
A<a href="tel:123-456-78900">Call us</a>
B<a href="tel:+12345678900">Call us</a>
C<a href="phone:+12345678900">Call us</a>
D<a href="call:+12345678900">Call us</a>
✗ Incorrect
The 'tel:' scheme with the full international number and no spaces or dashes is the correct format.
Explain how to create an email link in HTML that opens the user's email program with a preset subject.
Think about how to add extra info after the email address in the link.
You got /4 concepts.
Describe best practices for making phone number links accessible and internationally usable.
Consider both technical format and user experience.
You got /4 concepts.
Practice
(1/5)
1. What does the mailto: prefix do when used in an <a> tag?
easy
A. It creates a link that opens the user's email program to send an email.
B. It creates a link that calls a phone number.
C. It creates a link that downloads a file.
D. It creates a link that opens a website.
Solution
Step 1: Understand the mailto: prefix
The mailto: prefix in an <a> tag tells the browser to open the default email program when clicked.
Step 2: Compare with other prefixes
The tel: prefix is for phone calls, not emails. Other prefixes like http: open websites.
Final Answer:
It creates a link that opens the user's email program to send an email. -> Option A
<a href="mailto:support@example.com" aria-label="Send email to support">Email Support</a><br><a href="tel:+1234567890" aria-label="Call support phone number">Call Support</a> uses clear link text and aria-label attributes to describe the links for screen readers.
Step 2: Compare with other options
<a href="mailto:support@example.com">support@example.com</a><br><a href="tel:+1234567890">1234567890</a> shows raw contact info but lacks descriptive text. <a href="mailto:support@example.com">Click here</a><br><a href="tel:+1234567890">Call now</a> uses vague text. <a href="mailto:support@example.com" title="Email">Email</a><br><a href="tel:+1234567890" title="Phone">Phone</a> uses title which is less reliable for accessibility.
Final Answer:
<a href="mailto:support@example.com" aria-label="Send email to support">Email Support</a><br><a href="tel:+1234567890" aria-label="Call support phone number">Call Support</a> -> Option D
Quick Check:
Clear text + aria-label = best accessibility [OK]
Hint: Use clear text and aria-label for accessible contact links [OK]
Common Mistakes:
Using vague link text like 'Click here'
Not adding aria-labels for screen readers
Relying only on title attribute
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.