Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. URIs
  3. Reference
  4. Path

URI path

Thepath of a URI is the section that comes after theauthority.It contains data, usually organized in hierarchical form, to identify a resource within the scope of the URI'sscheme and naming authority.

Syntax

url
http://example.com:80<path>urn:<path>

The path can contain nearly all characters, except? and# (which start thequery andfragment respectively), and other characters reserved by the URI scheme. Some schemes (known ashierarchical schemes) further parse the path as a sequence of segments separated by slash (/) characters; others treat it as a single opaque string.

Description

The path follows the authority and is terminated by the first question mark (?), number sign (#), or the end of the URI.In the following two URIs:

url
urn:nbn:de:bvb:19-epub-5359-3https://example.com:80/images/animated/ayse.gif

nbn:de:bvb:19-epub-5359-3 is the path of theURN./images/animated/ayse.gif is the path of thehttps URI.

Every URI has a path component, meaning the paths in the following examples are a forward-slash (/) in the first URL and an empty path component in the second:

url
https://example.com/https://example.com

Browsers, including theURL web API, normalize empty paths to/.

Specifications

Specification
Unknown specification
# section-3.3

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp