关于html:URI和URL之间的区别

Difference between URI and URL

本问题已经有最佳答案,请猛点这里访问。

Possible Duplicate:
What's the difference between a URI and a URL?

如何区分uri和url?


URL是一种URI类型。

尽管如此,大多数人还是可以互换使用这两个术语。

来自维基百科(URL):

In computing, a Uniform Resource Locator (URL) is a Uniform Resource Identifier (URI) that specifies where an identified resource is available and the mechanism for retrieving it.

因此,一个URI标识一个资源(作为其ID),一个URL指定资源位置。


从这里的RFC2396,我引用

1
2
3
4
5
6
7
8
9
10
   A URI can be further classified as a locator, a name, or both.  

   The term"Uniform Resource Locator" (URL) refers to the subset of URI
   that identify resources via a representation of their primary access
   mechanism (e.g., their network"location"), rather than identifying
   the resource by name or by some other attribute(s) of that resource.

   The term"Uniform Resource Name" (URN) refers to the subset of URI
   that are required to remain globally unique and persistent even when
   the resource ceases to exist or becomes unavailable.


统一资源标识符

统一资源定位器

URI通过任何类型的元信息来标识资源。

URL在网络上定位资源,这意味着如果可以检索资源的URL和适当的协议。

URI的一个特征是,它提供有关只有一个资源。另一个是可以有多个URI描述相同的资源。


查找EDOCX1[0]的详细信息。

Diff between URL and URI


正如Oded所说,URL是一种URI类型。

一个快速的谷歌会找到以下完整的答案:

http://www.bernzilla.com/item.php?ID=100


http://www.damhandy.com/2007/11/19/uri-vs-url-whats-the-difference/

我认为这是一个很好的解释。


一个快速的谷歌搜索会显示你这个链接