是否有链接到外部网站的标准方法?

发布于 2024-10-08 19:49:06 字数 267 浏览 0 评论 0原文

我被教导要做:

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

深白境迁sunset 2024-10-15 19:49:06

不,也从来没有这样过。

浏览器包含告诉人们链接会将他们带到哪里的机制。拥有人类可读的链接文本更为重要。

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.

猫烠⑼条掵仅有一顆心 2024-10-15 19:49:06

如果通知用户他要离开网站很重要,您可以像维基百科那样在链接旁边放置一个图像,例如:
替代文本

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:
alt text

冰雪梦之恋 2024-10-15 19:49:06

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.

源来凯始玺欢你 2024-10-15 19:49:06

假设您正在为真实的人制作一个网站,阅读真实的文本(并假设人们比万维网更重要,而万维网又比巨型搜索引擎等更重要)

那么,在编写段落时,这会很有帮助包含可读文本,而不是完整的网址,除非您只想链接到网站的主根,但通常您会链接到具有特定内容的特定页面...示例就出自我的幻想。

在我们的假期里,我们参观了布宜诺斯艾利斯
艾利斯酒店
,景色优美
Boulevar Des Magnifiques 上,
热带双车道步行街
在悬崖上俯瞰大海
萨维奇·德·索莱伊。我永远不会忘记我们在烩饭吃的鱼
餐厅
。它接近我在我们的初吻
埃及度假给我现在的丈夫。

现在再次阅读上面的文本,但插入了完整的网址,明白我的观点了吗?

  • 关心你的观众/真实的人,而不是
  • 关心规则,尤其是机器规则

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.

On our vacation we visited the Buenos
Aires Hotel
which had a splendid view
on the Boulevar Des Magnifiques, a
tropical double laned walking street
overviwing the sea on the Cliff
Savage de Sollei. I will never forget the fish we ate at the Risotto
Restaurant
. It came close to my first kiss which I gave in our
holiday in Egypt to my current husband.

Now read the above text again, but insted put there the full urls, see my point?

  • Care about your audience / real people more than
  • caring about rules especially machine-rules
懒的傷心 2024-10-15 19:49:06

这取决于我们的读者。示例我打印了网站上的一些信息。

  1. 请点击此处看看它是如何工作的!
  2. 请访问 http://www.howstuffworks.com/ 了解其工作原理!

没有2更标准

It's depend on our reader. Example I printed out some information on website.

  1. Please click here to see how it works!
  2. Please visit http://www.howstuffworks.com/ to see how it works!

No 2 is more standard

旧人哭 2024-10-15 19:49:06

几乎没有人在链接上写下完整的 URL。例如,查看谷歌搜索结果或任何其他网页。

Almost no one writes the full URL on the link. for example, look at google search results, or any other web page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文