人们谈论网址和 LINK ,就好像他们有不同的东西,但他们看起来一样肉眼。
它们之间的区别是什么?
答案 0 :(得分:3)
URL是“统一资源定位器”的首字母缩写,它是 指定Internet上资源位置的地址。一个 典型的URL必须指定用于访问资源的协议, 它所在的主机的名称,以及它的路径 资源: http://www.server.com/main/folder/resource.html 上面的URL表示文档resource.html位于 Web服务器www.server.com,它可以在路径中找到 /主/文件夹。
超链接,或简称链接,是“电子元素中的一个元素 链接到同一文档中的另一个地方或文档的文档 完全不同的文件。通常,您单击要添加的超链接 点击链接。
<强> Source 强>
答案 1 :(得分:1)
这些是一些网址:
http://example.com/
mailto:alice@example.com
https://example.com/all.css
在文档中,这些网址可以链接。这通常会允许消费者使用此URL(通过点击它,或在打开文档时自动执行等),例如:
在HTML文档中(这是最受欢迎但不是唯一可以包含链接的文档格式),您可以(例如)使用a
element创建超链接(又名。链接),可以有您选择的标签(或锚文本),例如:
<a href="http://example.com/">This is a link.</a>
<a href="http://example.com/">http://example.com/</a>
<a href="http://example.com/">http://example.net/misleading-label</a>
<a href="mailto:alice@example.com">email me</a>
<a href="mailto:alice@example.com">alice@example.com</a>
<a href="https://example.com/all.css">A CSS file</a>
<link href="https://example.com/all.css" rel="stylesheet" />