跳到正文
Skillpedia
网站与界面(前端)75k · #3049

tel-mailto

它能做什么

这项技能检查网页上的联系方式,并将其转换为可点击的链接。适用于希望访客能轻松联系他们的商家负责人和网站团队。

适用场景

  • ✓当联系页面显示的电话号码需要访客手动复制的时候。
  • ✓当网站上的邮箱地址是纯文本而不是链接的时候。
  • ✓当审核列出商家联系方式的页面的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/tel-mailto/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/tel-mailto/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“网站的访客需要复制我的电话号码才能拨打。请帮我把它改成点击即可拨打的链接。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会找出页面上的电话号码和邮箱,并用链接包裹它们。电话链接使用不含空格或短横线的国际格式。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Tel & Mailto Links

On mobile devices, tel: and mailto: links trigger the native phone dialer and email client with one tap; plain-text contact info forces copy-paste and measurably reduces contact conversion rates.

Quick Reference

  • Wrap phone numbers in <a href="tel:+15551234567"> for click-to-call on mobile devices
  • Wrap email addresses in <a href="mailto:contact@example.com"> for one-click email compose
  • Use E.164 format for tel: links: + followed by country code and number, no spaces or dashes
  • Plain text phone numbers and emails require users to copy-paste — a UX and conversion friction point

Check

Scan the HTML for phone numbers (patterns like \+?[0-9\s\-().]{7,}) and email addresses ([\w.-]+@[\w.-]+\.[a-z]{2,}). Verify that phone numbers are wrapped in <a href="tel:..."> and emails in <a href="mailto:...">. Flag any that appear as plain text.

Fix

Wrap each phone number in an anchor tag: <a href="tel:+15551234567">+1 (555) 123-4567</a>. Wrap each email in: <a href="mailto:contact@example.com">contact@example.com</a>. Format tel: values using E.164 (+[country][number]) without spaces.

Explain

Explain how tel: and mailto: URI schemes work in HTML, why E.164 format is required for international compatibility, and how these links improve mobile UX and contact conversion rates.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Tel & Mailto Links. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/tel-mailto

常见问题

什么是国际电话格式?

这项技能建议使用 E.164 格式,以加号和国家代码开头,不含空格或短横线。

号码的显示外观会改变吗?

不会。可见文字可以保持不变,而链接中包含更干净的号码。

这对桌面电脑有帮助吗?

这项技能主要针对手机,在手机上点击即可打开拨号或邮件应用。

详情

作者的原始描述

Use when applies to contact pages, business listing pages, headers/footers, and any page displaying a phone number or email address. Use when auditing contact UX or schema-marked LocalBusiness pages.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#3049
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能