0
0
HTMLmarkup~20 mins

Email and phone links in HTML - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Email and Phone Link Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate
2: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?
A<a href="email:contact@example.com">Email us</a>
B<a href="mailto:contact@example.com">Email us</a>
C<a href="mailto://contact@example.com">Email us</a>
D<a href="mail:contact@example.com">Email us</a>
Attempts:
2 left
💡 Hint
The correct protocol for email links starts with 'mailto:' without slashes.
📝 Syntax
intermediate
2:00remaining
Correct syntax for a phone link
Which option correctly creates a clickable phone link that dials the number +1234567890 on supported devices?
A<a href="tel:+1234567890">Call us</a>
B<a href="call:+1234567890">Call us</a>
C<a href="phone:+1234567890">Call us</a>
D<a href="tel://+1234567890">Call us</a>
Attempts:
2 left
💡 Hint
The correct protocol for phone links is 'tel:' without slashes.
rendering
advanced
2: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>
AA clickable link with text 'Contact Support' that opens a web page at 'mailto:help@example.com'.
BA clickable link with text 'mailto:help@example.com?subject=Support%20Request'.
CPlain text 'Contact Support' with no link.
DA clickable link with text 'Contact Support' that opens an email to help@example.com with subject 'Support Request'.
Attempts:
2 left
💡 Hint
Look at the href attribute and the link text separately.
accessibility
advanced
2: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>
A<a href="tel:+18005551234" alt="Call toll-free">Call toll-free</a>
B<a href="tel:+18005551234" title="Call toll-free">Call toll-free</a>
C<a href="tel:+18005551234" aria-label="Call toll-free number 1 800 555 1234">Call toll-free</a>
D<a href="tel:+18005551234" aria-hidden="true">Call toll-free</a>
Attempts:
2 left
💡 Hint
Screen readers use aria-label to describe links clearly.