Challenge - 5 Problems
Email and Phone Link Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate2:00remaining
Correct syntax for an email link
Which option correctly creates a clickable email link that opens the user's email client to send an email to contact@example.com?
Attempts:
2 left
💡 Hint
The correct protocol for email links starts with 'mailto:' without slashes.
✗ Incorrect
The 'mailto:' protocol is used in the href attribute to create email links. It should be followed directly by the email address without slashes or other prefixes.
📝 Syntax
intermediate2:00remaining
Correct syntax for a phone link
Which option correctly creates a clickable phone link that dials the number +1234567890 on supported devices?
Attempts:
2 left
💡 Hint
The correct protocol for phone links is 'tel:' without slashes.
✗ Incorrect
The 'tel:' protocol is used in the href attribute to create phone links. It should be followed directly by the phone number without slashes or other prefixes.
❓ rendering
advanced2:00remaining
Visual result of an email link with subject
What will the user see in the browser when this code is rendered?
<a href="mailto:help@example.com?subject=Support%20Request">Contact Support</a>
HTML
<a href="mailto:help@example.com?subject=Support%20Request">Contact Support</a>
Attempts:
2 left
💡 Hint
Look at the href attribute and the link text separately.
✗ Incorrect
The anchor tag text is what the user sees as clickable. The href with 'mailto:' opens the email client with the specified email and subject.
❓ accessibility
advanced2:00remaining
Improving accessibility of phone links
Which option best improves accessibility for a phone link that dials +18005551234?
HTML
<a href="tel:+18005551234">Call toll-free</a>
Attempts:
2 left
💡 Hint
Screen readers use aria-label to describe links clearly.
✗ Incorrect
The aria-label attribute provides a clear description for screen readers, improving accessibility. The alt attribute is not valid on tags. Title is less reliable for accessibility. aria-hidden hides the link from assistive tech.
🧠 Conceptual
expert2:00remaining
Behavior of email and phone links on different devices
Which statement is true about how email and phone links behave on desktop and mobile devices?
Attempts:
2 left
💡 Hint
Think about what apps are available on each device type.
✗ Incorrect
Mobile devices usually have a dialer app that opens when clicking a phone link. Desktops may not have a dialer, so the link might do nothing or open a calling app if installed. Email links open the email client on both device types. Phone links do not require JavaScript.