0
0
HTMLmarkup~8 mins

Email and phone links in HTML - Browser Rendering Trace

Choose your learning style9 modes available
Render Flow - Email and phone links
Read <a href="mailto:example@example.com">
Create anchor node
Read <a href="tel:+1234567890">
Create anchor node
The browser reads anchor tags with special href values starting with mailto: or tel:. It creates clickable links that open the email client or phone dialer when clicked.
Render Steps - 4 Steps
Code Added:<a href="mailto:example@example.com">Send Email</a>
Before
[No link here]

After
[Send Email]
(underlined clickable text)
Adding the anchor tag with mailto: creates a clickable email link that looks like normal link text.
🔧 Browser Action:Creates anchor element with mailto: href, triggers paint of link style
Code Sample
Two clickable links: one opens the email app to send an email, the other opens the phone dialer to call.
HTML
<a href="mailto:example@example.com">Send Email</a>
<a href="tel:+1234567890">Call Us</a>
Render Quiz - 3 Questions
Test your understanding
After adding the mailto link in step 1, what do you see?
APlain text with no underline
BUnderlined clickable text labeled 'Send Email'
CA button element
DAn image icon
Common Confusions - 2 Topics
Why doesn't clicking my mailto link open the email app?
The browser relies on your device having a default email app set up. If none is set, clicking mailto does nothing or shows an error.
💡 Make sure your device has a default email client configured to handle mailto links.
Why does the tel link not work on my desktop browser?
Tel links usually work on phones or devices with calling apps. On desktops without calling apps, clicking tel may do nothing.
💡 Tel links are best tested on phones or devices with calling capability.
Property Reference
PropertyValueEffectCommon Use
hrefmailto:someone@example.comCreates clickable email linkOpen email client to send mail
hreftel:+1234567890Creates clickable phone linkOpen phone dialer to call number
target_blankOpen link in new tab/windowUsed with mailto or tel to open externally
Concept Snapshot
Email and phone links use anchor tags with special href values. Use href="mailto:email@example.com" to open email client. Use href="tel:+1234567890" to open phone dialer. Links appear as underlined clickable text. Function depends on device support and default apps.