是否有链接到外部网站的标准方法?
我被教导要做:
<a href="http://www.google.com/">http://www.google.com/</a>
而不是:
<a href="http://www.google.com/">Google</a>
这仍然是标准的做法吗?有人告诉我,这有助于用户识别他们将离开该网站,因此您应该包含完整的 URL。
I was taught to do:
<a href="http://www.google.com/">http://www.google.com/</a>
as opposed to:
<a href="http://www.google.com/">Google</a>
Is this still the standard way to do it? I was told that it helps the use to identify that they will be leaving the site so that's why you should include the full URL.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
不,也从来没有这样过。
浏览器包含告诉人们链接会将他们带到哪里的机制。拥有人类可读的链接文本更为重要。
No, and it never has been.
Browsers include mechanisms to tell people where a link will take them. Having human readable link text is much more important.
否
如果通知用户他要离开网站很重要,您可以像维基百科那样在链接旁边放置一个图像,例如:
No
If it is important to inform the user he is leaving the site you can do what Wikipedia does and put an image next the link, like:
URL 唯一应在链接文本中显示的情况是,用户输入 URL 作为某种类型的提交数据,并且 URL 文本被制作成链接(如 Twitter,发布 URL 使其成为链接)。否则,URL 通常会令人困惑,并吓得一些用户不敢点击它们。
通常,用户会犹豫是否要单击文本为 URL 的链接,因为文本可能会说一件事,而链接本身可能会转到其他地方。这就是许多网络钓鱼诈骗的运作方式,消费者也开始意识到这一点。
The only time a URL should be shown in the link text is if a user entered a URL as some type of submission data and the URL text was made into a link (a la Twitter, where posting a URL makes it a link). Otherwise, URLs are generally confusing and scare some users from clicking on them.
Oftentimes, users will be hesitant to click on links where the text is a URL, as the text could say one thing and the link itself could go somewhere else. This is how a lot of phishing scams work, and consumers are starting to catch on.
假设您正在为真实的人制作一个网站,阅读真实的文本(并假设人们比万维网更重要,而万维网又比巨型搜索引擎等更重要)
那么,在编写段落时,这会很有帮助包含可读文本,而不是完整的网址,除非您只想链接到网站的主根,但通常您会链接到具有特定内容的特定页面...示例就出自我的幻想。
现在再次阅读上面的文本,但插入了完整的网址,明白我的观点了吗?
Suppose you are making a website for real people, reading real text (and lets assume people are more important than world wide web network, which then is more important than giant searchengines etc etc)
Then, when writing a paragraph, it ould be helpfull to include readable text, as opposed to full url, unless you want to just link to the main root of a website, but often you link to a specific page, with a specific content... Example right out of my fantasy.
Now read the above text again, but insted put there the full urls, see my point?
这取决于我们的读者。示例我打印了网站上的一些信息。
没有2更标准
It's depend on our reader. Example I printed out some information on website.
No 2 is more standard
几乎没有人在链接上写下完整的 URL。例如,查看谷歌搜索结果或任何其他网页。
Almost no one writes the full URL on the link. for example, look at google search results, or any other web page.