Bird
Raised Fist0
HTMLmarkup~5 mins

Email and phone links in HTML - Cheat Sheet & Quick Revision

Choose your learning style10 modes available
Recall & Review
beginner
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
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
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
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
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>
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

      1. Step 1: Understand the mailto: prefix

        The mailto: prefix in an <a> tag tells the browser to open the default email program when clicked.
      2. Step 2: Compare with other prefixes

        The tel: prefix is for phone calls, not emails. Other prefixes like http: open websites.
      3. Final Answer:

        It creates a link that opens the user's email program to send an email. -> Option A
      4. Quick Check:

        mailto: = email link [OK]
      Hint: Remember mailto opens email apps, tel opens phone dialer [OK]
      Common Mistakes:
      • Confusing mailto with tel prefix
      • Thinking mailto opens websites
      • Assuming mailto downloads files
      2. Which of the following is the correct syntax to create a clickable phone number link in HTML?
      easy

      Solution

      1. Step 1: Identify the correct prefix for phone links

        The correct prefix to create a phone link is tel:. It tells the browser to open the phone dialer.
      2. Step 2: Check the syntax of the <a> tag

        The href attribute should be tel:1234567890 to work properly.
      3. Final Answer:

        <a href="tel:1234567890">Call us</a> -> Option C
      4. Quick Check:

        tel: prefix = phone link [OK]
      Hint: Use tel: prefix exactly for phone links in href [OK]
      Common Mistakes:
      • Using phone: instead of tel:
      • Using callto: which is not standard
      • Misspelling the prefix
      3. What will happen when the user clicks this link?
      <a href="mailto:info@example.com">Email us</a>
      medium
      A. The browser will open the default email app with 'info@example.com' in the recipient field.
      B. The browser will open the phone dialer with the number 'info@example.com'.
      C. The browser will navigate to the website 'mailto:info@example.com'.
      D. Nothing will happen because the link is invalid.

      Solution

      1. Step 1: Analyze the href attribute

        The href uses mailto: with an email address, which triggers the email client.
      2. Step 2: Understand browser behavior on click

        Clicking the link opens the default email program with the recipient field filled with 'info@example.com'.
      3. Final Answer:

        The browser will open the default email app with 'info@example.com' in the recipient field. -> Option A
      4. Quick Check:

        mailto: opens email client [OK]
      Hint: mailto: opens email client with address filled [OK]
      Common Mistakes:
      • Thinking it opens a website
      • Confusing mailto with tel
      • Assuming no action happens
      4. Identify the error in this phone link and choose the fix:
      <a href="tel1234567890">Call us</a>
      medium
      A. Change tel to phone: href="phone:1234567890"
      B. Add a colon after tel: href="tel:1234567890"
      C. Remove tel prefix: href="1234567890"
      D. Add double slashes: href="tel://1234567890"

      Solution

      1. Step 1: Check the href syntax

        The tel prefix must be followed by a colon : to be valid.
      2. Step 2: Identify the correct fix

        Adding the colon after tel fixes the link to href="tel:1234567890".
      3. Final Answer:

        Add a colon after tel: href="tel:1234567890" -> Option B
      4. Quick Check:

        Correct tel: syntax needs colon [OK]
      Hint: Always put colon after tel in href [OK]
      Common Mistakes:
      • Omitting the colon after tel
      • Using phone: instead of tel:
      • Adding unnecessary slashes
      5. You want to create a contact section with both email and phone links that are accessible and clear. Which HTML snippet is best?
      hard

      Solution

      1. Step 1: Check for accessibility and clarity

        <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.
      2. 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.
      3. 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
      4. 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 unknown strong while earning +1 Grip toward your certificate.

      10 questions~5 mineasy hard