我正在寻找WCAG指南中关于mailto:电子邮件地址的锚链接文本的指导。链接文本可以是人名,还是最好将链接文本设置为电子邮件地址?
<a href="mailto:johndoe@emaiaddress.com">John Doe</a>
对比
<a href="mailto:johndoe@emailaddress.com">johndoe@emailaddress.com</a>
我正在寻找WCAG指南中关于mailto:电子邮件地址的锚链接文本的指导。链接文本可以是人名,还是最好将链接文本设置为电子邮件地址?
<a href="mailto:johndoe@emaiaddress.com">John Doe</a>
对比
<a href="mailto:johndoe@emailaddress.com">johndoe@emailaddress.com</a>
mailto:
URI方案时,应在链接中指示操作的目的。目的应该类似于“给John Doe写电子邮件”,但您不应忘记电子邮件地址本身可能是重要内容,您希望将其提供给访问者以供以后使用。
<a href="mailto:feedback911212328@example.com">Send feedback to our company</a>
或者如果您只想向访问者提供您的电子邮件地址:
Contact me: John Doe, 10 downing street, London,
E-mail: <a href="mailto:johndoe@example.com">johndoe@example.com</a>