0
0
HTMLmarkup~10 mins

Email and phone links in HTML - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create an email link that opens the user's email app.

HTML
<a href="[1]">Email us</a>
Drag options to blanks, or click blank then click option'
Atel:contact@example.com
Bhttp://contact@example.com
Cmailto:contact@example.com
Demail:contact@example.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using http:// instead of mailto:.
Using tel: which is for phone numbers.
2fill in blank
medium

Complete the code to create a phone link that allows users to call a number when clicked.

HTML
<a href="[1]">Call us</a>
Drag options to blanks, or click blank then click option'
Adial:+1234567890
Bcall:+1234567890
Cphone:+1234567890
Dtel:+1234567890
Attempts:
3 left
💡 Hint
Common Mistakes
Using call: or phone: which are not valid protocols.
Forgetting the plus sign for international numbers.
3fill in blank
hard

Fix the error in the phone link so it works correctly on mobile devices.

HTML
<a href="[1]">Contact</a>
Drag options to blanks, or click blank then click option'
Atel:+1234567890
Btel:(123)4567890
Ctel:1234567890
Dtel:123-456-7890
Attempts:
3 left
💡 Hint
Common Mistakes
Including dashes or parentheses in the phone number link.
Omitting the plus sign for international format.
4fill in blank
hard

Fill both blanks to create an accessible email link with a descriptive label.

HTML
<a href="[1]" aria-label="[2]">Send Email</a>
Drag options to blanks, or click blank then click option'
Amailto:support@example.com
BCall support
CEmail support at support@example.com
Dtel:+1234567890
Attempts:
3 left
💡 Hint
Common Mistakes
Using a phone link in the email href.
Not providing a meaningful aria-label.
5fill in blank
hard

Fill all three blanks to create a phone link with a visible number and an accessible label.

HTML
<a href="[1]" aria-label="[2]">[3]</a>
Drag options to blanks, or click blank then click option'
Atel:+19876543210
BCall us at +1 987 654 3210
C+1 987 654 3210
Dmailto:support@example.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using mailto: in a phone link.
Not matching the visible text with the phone number.