Home > Positioning > Subjects > URI > The syntax

The syntax

RFC 3986 defines one generic syntax for all URIs:

scheme ":" ["//" authority] path ["?" query] ["#" fragment]

Characters outside the permitted set are percent-encoded as %HH. References may be absolute (complete) or relative (resolved against a base URI) — the mechanism that lets documents link without repeating a common prefix.

IRI

The Internationalized Resource Identifier (RFC 3987) extends URIs to the full Unicode repertoire, so identifiers can use non-ASCII characters directly; an IRI maps to a URI by percent-encoding.

For the exhaustive grammar, see RFC 3986.

Sources