正确的电子邮件地址文本格式为网站 [英] Correct email address text format for website

查看:166
本文介绍了正确的电子邮件地址文本格式为网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在我的网站上显示我的电子邮件地址,我使用这种格式电子邮件[at] domain.com 反垃圾邮件的目的,但我的同事告诉我使用这个格式而不是 email@domain.com ,所以访问者可以轻松地复制地址并将其粘贴到邮件程序上。而我看到一些网站也使用他们的电子邮件地址的图像。那么最好的办法是什么呢?



电子邮件[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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆