正确的电子邮件地址文本格式为网站 [英] Correct email address text format for website
问题描述
电子邮件[at] domain.com , email@domain.com 或使用像这样的图片: img src =https://i.stack.imgur.com/Vvojh.pngalt =enter image description here>
谢谢。
正确的方式?使用URI(使用 mailto
URI方案)并链接(使用 a
HTML元素) p>
< a href =mailto:email@example.com> email@example.com< / a>
最好的方式?取决于你的条件。
如果你想让访客(包括人类和机器人)的生活更容易,请使用链接。
如果您想使访问者(包括人类和机器人)的生活更难 ,则会混淆地址。
更难也可能意味着不可能,具体取决于你如何混淆。如果您将其作为图像发布,许多盲人将无法访问您的电子邮件地址。一些智力障碍的用户将无法使用 @
交换 [at]
。没有复制粘贴功能的用户在切换应用程序并手动输入时可能无法记住您的地址。没有JavaScript的用户可能无法访问一些聪明的小部件。等等。
I have to display my email address on my website and I'm using this format email[at]domain.com for anti-spam purposes, but one of my colleague told me to use this format instead email@domain.com so the visitor could easily copy the address and paste it on the mailer. And I see some website also use image for their email address. So what could be the best way to do it?
email[at]domain.com, email@domain.com or use an image like this :
Thank you.
The correct way? Make it an URI (using the mailto
URI scheme) and link it (using the a
HTML element).
<a href="mailto:email@example.com">email@example.com</a>
The best way? Depends on your criteria.
If you want to make the life of your visitors (including humans as well as bots) easier, use a link.
If you want to make the life of your visitors (including humans as well as bots) harder, obfuscate the address.
"Harder" can also mean impossible, depending on the way how you obfuscate. Many blind users will not be able to access your email address if you post it as an image. Some users with intellectual disabilities will not be able to swap [at]
with @
. Users without copy-paste functionality might not be able to remember your address when switching applications and having to enter it manually. Users without JavaScript might not be able to access some clever widgets. And so on.
这篇关于正确的电子邮件地址文本格式为网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!