Skip to main content
ReferenceComputing historyIntermediate

HTML, HTTP and URLs: the design choices that made the Web possible

One-way links, universal addresses, stateless requests, MIME types and UTF-8: the choices that let the Web endure, from 1991 to HTTP/3.

Show contents

In 1991, the Web came down to three conventions: an address to name a document, a GET line to ask for it, and a handful of tags to lay it out and link it to others. Thirty years later, those same three conventions carry billions of pages, applications, videos and programming interfaces. Addresses still look the same, requests still follow the same logic, and a current browser can still display a page written in 1992.

That continuity was not a given. It rests on a series of design choices, often modest, sometimes disputed, some of which still carry a cost today: broken links, accented characters turned into %C3%A9, badly written pages that browsers must display anyway. The story of the Web’s birth at CERN tells who designed these conventions, and when. This article looks at how they work: what they settled, what they left out, and how they evolved without breaking.

Three conventions, three questions

In 2004, the W3C published Architecture of the World Wide Web, a Recommendation that describes the system’s principles after the fact. It reduces the Web to three foundations:

  • identification: identifiers, called URIs, name resources;
  • interaction: agents exchange messages according to standard protocols, chief among them HTTP;
  • formats: the data exchanged is represented in documented formats, including HTML.

The same document stresses the orthogonality of these specifications: each can change without the others needing to know. A URL works just as well for an image as for an HTML page; HTTP carries HTML, JSON or video alike; an HTML document can be read from a local disk, with no HTTP involved. This independence goes a long way towards explaining the system’s longevity: HTTP/1.1 could be replaced by HTTP/2 without rewriting a single page, and HTML could be extended without touching servers.

Convention Question it answers In 1991 Current reference
URL, later URI Which resource? Addresses described in the project pages RFC 3986 (2005) and the WHATWG URL Standard
HTTP How do I get it or act on it? One GET line, one HTML response RFC 9110 (2022) for the semantics
HTML What does it contain, and what does it point to? About twenty tags, in ASCII WHATWG HTML Standard

These three conventions were layered on top of a network that already existed. Moving bytes was the job of TCP/IP; translating machine names into addresses was the job of DNS. In his FAQ, Berners-Lee recounts that he designed HTTP and then asked for a port number, 80, to be assigned to it for every computer. The Web thus settled in as one application among others, alongside email and file transfer, without asking anything of network operators.

In the 1992 “HTML Tags” page, a link is written with the A element and its HREF attribute, which holds the target address. The link lives only in the source document. The destination document knows nothing about it: it keeps no list of the pages pointing to it, and its author neither has to accept the link nor is even told about it.

This choice follows from a requirement set out as early as the 1989 proposal: the system must not depend on any central authority, and anyone must be able to add information and links. A link maintained in both directions needs a place where both ends are recorded together, which means a shared database or coordination between servers. A one-way link removes that need: publishing a page that cites another asks nothing of anyone.

The downside is familiar to every Web user. When the target resource disappears or moves, nothing warns the document that cites it. HTTP/1.0, described in RFC 1945 in May 1996, gave this situation a name: the 404 Not Found status code. The system does not try to prevent the breakage; it makes it visible and leaves the reader, or the software, to deal with it.

The remedy offered was editorial rather than technical. In 1998, Berners-Lee published “Cool URIs don’t change”: a good address is one that does not change, and, as he puts it, “URIs don’t change: people change them.” He advises choosing addresses you will be able to stand by “in 2 years, in 20 years, in 200 years”, leaving out anything likely to vary: server technology, internal organization, document status. HTTP’s permanent redirects, the 301 code, then make it possible to manage a change that cannot be avoided. The guide to URLs, slugs and parameters turns these principles into current practice.

The fragment: a marker inside a resource

A link can target a specific passage of a document through the fragment, the part that follows #. Berners-Lee explains that he needed a separator between the document and the element designated inside it. RFC 3986 spells out how it works: the fragment is stripped from the address before the request is made, so the server never receives it. The client interprets it according to the type of document received: an anchor in an HTML page, a position in a video or an element in a vector image.

From linking to embedding: the IMG element

On 25 February 1993, Marc Andreessen, then at NCSA, proposed a new element on the www-talk list: IMG. Its only required attribute, SRC, contains a URL: the browser fetches the image from that address and displays it where the tag sits. The message notes that X Mosaic already implements it.

The idea extends that of the link. Instead of taking the reader to another resource, the document pulls that resource into its own page, whichever server hosts it. The same mechanism would later serve style sheets, scripts and fonts. The IMG element is part of HTML 2.0, published as RFC 1866 in November 1995; that document also defines forms, which let readers send the server more than a few keywords.

Identifying: from document to resource

A syntax that takes in other services

The 1992 “W3 address syntax” page gives addresses their general shape: a scheme, then the machine name, an optional port and a path. The scheme comes first, and that is the most important decision. It states how to access the resource: http, but also ftp, gopher, news or telnet. A single syntax can therefore name resources served by protocols that predate the Web, and accommodate new ones without any change. The examples in RFC 3986 show the resulting variety:

ftp://ftp.is.co.za/rfc/rfc1808.txt
mailto:John.Doe@example.com
news:comp.infosystems.www.servers.unix
tel:+1-816-555-1212
urn:oasis:names:specification:docbook:dtd:xml:4.1.2

The rest of the syntax recycles familiar forms. Berners-Lee writes that he looked for conventions users would recognize: the slash to separate levels of a hierarchy, as in Unix file paths, and the double slash before the machine name, copied from file names on the Apollo system. He now says he regrets such a heavy syntax: he would rather have written http:com/example/foo/bar/baz than http://www.example.com/foo/bar/baz, and the double slash turned out to be unnecessary.

URL, URN, URI: naming or locating

The vocabulary took several years to settle. RFC 1630, published by Berners-Lee in June 1994, speaks of “Universal Resource Identifiers”. In December 1994, two documents split the roles: RFC 1738 standardized URLs, Uniform Resource Locators, which say where and how to obtain a resource; RFC 1737 set out the requirements for URNs, Uniform Resource Names, persistent names independent of location, much like an ISBN for a book.

RFC 2396 in August 1998, then RFC 3986 in January 2005, which became Internet Standard STD 66, brought these notions together under the umbrella term URI, Uniform Resource Identifier. RFC 3986 breaks every URI down into five parts, using the example foo://example.com:8042/over/there?name=ferret#nose:

Part Value in the example Role
Scheme foo Rules for interpreting the rest
Authority example.com:8042 Who governs the namespace: host and port
Path /over/there Hierarchical designation within that authority
Query name=ferret Non-hierarchical data, after ?
Fragment nose Part of the resource, interpreted by the client

Along the way, the key word changed. The 1992 pages talk about documents; later texts talk about resources. In his 2000 dissertation, Roy Fielding, co-author of the HTTP and URI specifications, defines a resource as what the author intends to identify, not as whatever content sits at that address when the link is created. A URL such as “the weather in Geneva” names a stable resource whose representation changes every hour. The 2004 Recommendation draws a rule of caution from this: software should not infer a resource’s properties from the form of its identifier. An address ending in .html does not guarantee that the server will return HTML; the response header is what says so.

Relative references

A document does not need to spell out the full address of its neighbours. A relative reference is resolved against the address of the document that contains it, exactly like a relative file path on Unix; in Berners-Lee’s words, “the relative URI syntax is just unix pathname syntax reused without apology.” Roy Fielding set out the rules in June 1995 in RFC 1808, later carried over and refined by RFC 3986. With the base address http://a/b/c/d;p?q, the standard gives, among others, these results:

Reference Resolved address
g http://a/b/c/g
../g http://a/b/g
?y http://a/b/c/d;p?y
#s http://a/b/c/d;p?q#s

This mechanism makes it possible to move a set of pages from one server to another, or from a local disk to a website, without rewriting a single internal link.

A standard rewritten from browser behaviour

The RFCs describe what addresses ought to be. Browsers, however, have to handle what people actually type or write: spaces, backslashes, non-ASCII characters. Their behaviour diverged on these edge cases. The WHATWG, a group founded in 2004 by people from Apple, the Mozilla Foundation and Opera, publishes a URL Standard whose stated goal is to align RFC 3986 and RFC 3987 with contemporary implementations, and to obsolete them in the process. It describes a parsing algorithm that produces the same result in every browser, including for malformed addresses. Two references therefore coexist: RFC 3986 for the generic syntax of identifiers, and the WHATWG standard for what browsers actually do.

Transferring: one request, one response, no memory

Choosing statelessness

From its abstract onwards, RFC 1945 presents HTTP/1.0 as a “generic, stateless” protocol. RFC 9110, in 2022, gives the sharpest definition: the meaning of each request can be understood in isolation. At protocol level, the server does not have to remember the previous request to interpret the next one; the method, target and headers are all in the message itself.

This choice has major practical consequences. As long as the application does not itself keep reader-specific state, two successive requests from the same reader can be served by two different machines, which allows load to be spread across several servers. An intermediary can store a response and serve it again to another client without knowing anything about the earlier exchange: that is the principle behind caches. In his dissertation, Fielding lists statelessness among the constraints of his REST architectural style, alongside caching and the uniform interface, and states that this style has guided the design of the modern Web’s architecture since 1994, including the writing of the HTTP and URI standards. His constraint goes further than the protocol: each request must contain all the information needed, without relying on context stored on the server, so that session state stays entirely on the client side.

Statelessness has its cost: a shopping basket or a logged-in account needs continuity. That continuity is added at application level, without changing the protocol. Cookies, which appeared at Netscape and were already used by HTTP/1.0 clients before being standardized by RFC 2109 in February 1997, let the server hand the browser a small piece of data that the browser sends back with subsequent requests. That data can hold the state itself, but most often it is just a session identifier: RFC 6265, which has described today’s cookies since 2011, mentions this common use, in which the server uses the identifier to look up the information it keeps on its own side. Each HTTP message can still be understood on its own, but the application now keeps state on the server, which the REST constraint rules out. The benefits of statelessness are no longer automatic: servers sharing the requests must reach a common session store, or send each reader back to the same machine, and a personalized response can only be reused by a cache under caching rules of its own. The dynamic Web was built on this compromise.

Self-describing messages

The 1991 HTTP had a single method and returned only HTML, with no information about the response. HTTP/1.0 turned every message into a self-describing envelope:

  • a method states the action requested: GET to retrieve, HEAD to retrieve only the headers, POST to send data;
  • a three-digit status code sums up the outcome, and its first digit gives the class: 2 for success, 3 for redirection, 4 for a client error, 5 for a server error;
  • headers carry the metadata, including the content type.

For that last point, HTTP invented nothing: it reused MIME types, designed for attaching files to email and most recently described by RFC 2045 in November 1996. RFC 1945 justifies the choice by the need for “open-ended” typing. A Content-Type: image/gif or text/html header is enough to tell the client how to interpret the bytes it receives. The Web thus became able to carry any format, including formats that did not yet exist, simply by adding a new type to a list.

Methods also have properties that shape how software behaves. A safe method, such as GET, is essentially a read: the client neither requests nor expects any change to the resource. The server may have side effects, such as writing the request to an access log, but the client did not ask for them and is not responsible for them. A search engine crawler or a browser prefetching pages can therefore follow links without triggering any action. An idempotent method, such as PUT, has the same effect whether it is sent once or several times, which means it can be retried after a network failure. These guarantees are contracts: a site that deletes data on a plain GET breaks them, and pays the price the day a crawler comes by.

HTTP/1.1: many sites behind one address

HTTP/1.1, described in RFC 2068 in January 1997 and revised by RFC 2616 in June 1999, added a seemingly minor requirement: every request must carry a Host header naming the target machine. RFC 2616 explains what is at stake in its list of changes: HTTP/1.0 clients assumed a one-to-one relationship between IP addresses and servers, with no other way to say which site they wanted. With Host, a single server on a single IP address can host hundreds of separate sites, and addresses allocated only to serve a domain name can be reclaimed. Shared hosting rests on that one line.

The same version made persistent connections the default: several requests can travel over the same TCP connection instead of opening a new one for every image on a page. It also expanded caching, with the Cache-Control header, and content negotiation, which lets the client state the formats or languages it prefers. Fielding notes that persistent connections only became possible once HTTP messages had been redefined to be fully self-describing, notably by stating their length.

Keep the meaning, change the transport

HTTP/1.1 is a text protocol, readable by humans, whose responses arrive in the order of the requests on a given connection. One slow resource delays every one behind it. HTTP/2, published as RFC 7540 in May 2015, splits messages into binary frames and runs several streams in parallel over one connection; its headers are compressed with the HPACK format from RFC 7541. But those streams share a single TCP connection, which delivers bytes in order: one lost packet holds up all the data behind it, whichever stream it belongs to. HTTP/3, published as RFC 9114 in June 2022, runs on QUIC, a transport protocol standardized in May 2021 by RFC 9000, which works over UDP and manages independent streams itself. A QUIC packet can carry data from several streams: losing it blocks all of those streams until it is retransmitted, but streams with no missing data keep being delivered.

One shared set of HTTP semantics, encoded on the wire by HTTP/1.1, HTTP/2 and HTTP/3.

The most significant change may be an editorial one. In June 2022, the IETF published HTTP’s semantics separately, in RFC 9110, from the way they are encoded on the wire, with one document per version. RFC 9110 says so in plain terms: all three major versions of HTTP rely on the semantics it defines. A GET request that receives a 200 response with a Content-Type header means the same thing in HTTP/1.1, HTTP/2 and HTTP/3; only the shape of the bytes exchanged changes. It is the orthogonality of 2004 applied within the protocol itself.

Representing: a declarative, forgiving format

Inspired by SGML, applied leniently

HTML borrowed the form of its tags from SGML, the markup language standard CERN used for its documentation. It kept the syntax but not the rigour. Early browsers displayed what they could and ignored what they did not understand. HTML 2.0 wrote this behaviour into the standard in 1995: a tag whose name is not declared is reduced to nothing when the document is read, and an unknown attribute is treated the same way.

This rule made it possible to extend the language step by step. A browser can introduce a new element; the others will simply display its content without failing. It also had a less welcome effect: since almost every page displays, few authors fix their mistakes, and each browser repairs malformed documents in its own way. The resulting divergences fed the rivalry described in the history of web browsers.

The rule of least power

HTML describes what a piece of content is, a heading, a paragraph, a list, a link, and leaves software to decide how to present it. In 2006, Berners-Lee and Noah Mendelsohn formalized this principle for the W3C Technical Architecture Group as the rule of least power: use the least powerful language suitable for expressing the information required. The text cites HTML as an example: because it is simply descriptive and deliberately far from a full programming language, other software can display it, index it or extract data from it in many ways. A search engine, a screen reader for blind users or a translation tool all benefit from this readability; an arbitrary program would not give them the same purchase.

Structure or presentation

Pressure from authors and browser vendors nevertheless pushed HTML towards layout. HTML 3.2, a W3C Recommendation of 14 January 1997, brought in tables, but also the FONT element, which sets text size and colour directly. HTML 4.0, at the end of 1997, then HTML 4.01, in December 1999, deprecated these presentational elements and handed their role over to style sheets. The separation of structure and presentation, whose adoption is traced in the history of CSS, extends the rule of least power: the document says what it contains, a separate style sheet says how to display it.

HTML5: standardizing what browsers do

In the early 2000s, the W3C bet on XHTML, a reformulation of HTML under the strict rules of XML, where a single syntax error can prevent display. According to its own FAQ, the WHATWG was born in 2004 out of concern among people at Apple, Mozilla and Opera about this direction and about the lack of interest in HTML. It set out to describe HTML as it is actually used.

The centrepiece of this work is a complete parsing algorithm. The WHATWG HTML Standard defines the rules for reading HTML documents, whether syntactically correct or not: for every possible error, it specifies how to recover. Two conforming browsers therefore build the same structure from the same faulty page. The tolerance of 1991, which had produced divergent behaviour, became defined behaviour.

The W3C published HTML5 as a Recommendation on 28 October 2014. On 28 May 2019, the two bodies announced an agreement: the WHATWG maintains the living standards for HTML and the DOM, and the W3C contributes to that work instead of publishing competing versions of its own.

Encoding: from ASCII to UTF-8

Page content

The 1991 Web was written in ASCII, with no accents and no non-Latin scripts. HTTP/1.0 then set a default: text received with no indication otherwise is assumed to be encoded in ISO-8859-1, the Latin-1 of Western European languages. HTML 2.0 provided character references for writing those letters with ASCII characters, such as é for “é”.

In January 1997, RFC 2070 changed the model. The character set of HTML documents became the universal set of ISO 10646, that of Unicode, and the actual byte encoding is announced by the charset parameter of the Content-Type header. A page could now contain Greek, Arabic or Japanese, provided the server correctly declared the encoding used.

That still left the choice of encoding. UTF-8, designed around September 1992 by Ken Thompson and Rob Pike according to Pike’s account, encodes ASCII characters in a single byte, unchanged, and all others in two to four bytes. Text made up solely of ASCII characters therefore stays identical byte for byte, and software built for ASCII can process it unchanged. For the rest of the text, compatibility is conditional: RFC 3629 limits it to software that is transparent to non-ASCII bytes and passes them through intact; a program restricted to seven bits, or one that treats a byte as a character when splitting text, can truncate or break UTF-8 sequences. That same RFC 3629, of November 2003, gives its current definition. The WHATWG Encoding Standard now settles the matter: new protocols and formats must use UTF-8 exclusively. It also records a legacy of Latin-1: on the Web, the labels iso-8859-1, latin1 and ascii actually refer to the broader windows-1252 encoding, which browsers applied in practice.

Addresses

Addresses took a different path. RFC 1738 of 1994 requires URLs to be written using printable ASCII characters only. Any other byte, or any character reserved for another use, is written as a percent-encoding: the % sign followed by two hexadecimal digits. The space, deemed unsafe because it can vanish or appear when text is copied, becomes %20.

This mechanism encodes bytes, not characters. In 2005, RFC 3986 specified the convention for text: first convert it to bytes using UTF-8, then percent-encode the bytes that do not correspond to allowed characters. RFC 3987, published the same month, defines IRIs, identifiers that can contain Unicode characters directly and are converted to URIs by this rule.

Domain names raise a separate problem. The DNS protocol itself imposes little beyond length limits: RFC 2181 pointed out in 1997 that a label can be any binary string, and that restrictions come from the applications that use the data. It is the host name rules, enforced by existing software, that in practice confine names to ASCII letters, digits and hyphens. Rather than change all that software, RFCs 3490 and 3492 have described since March 2003 a representation convention, IDNA, compatible with those rules: each non-ASCII part of a name is converted by the Punycode algorithm into an ASCII string prefixed with xn--. The browser shows the readable form and sends the encoded form over the network. The WHATWG URL Standard specifies that, for this, the Web applies the compatibility processing defined by Unicode rather than the IETF’s IDNA2008 revision.

Let us follow a fictitious address, on a domain reserved for documentation by RFC 2606:

https://café.example/menu/crème brûlée?lang=en#desserts

This is how an author might write it in a page, or how a reader might see it in the address bar. It cannot travel as it stands.

1. The domain name. The label café contains a non-ASCII character. Punycode keeps the ASCII letters caf, adds a hyphen, then encodes the position and value of the “é” (U+00E9) in the letters dma. The xn-- prefix flags the conversion:

café.example  →  xn--caf-dma.example

2. The path. The segment crème brûlée has 12 characters. In UTF-8, the nine ASCII characters, including the space, take one byte each and the three accented letters two bytes each, for a total of 15 bytes. Percent-encoding keeps the eight bytes that correspond to letters as they are and replaces the other seven with a %XX triplet:

è  U+00E8  →  bytes C3 A8  →  %C3%A8
û  U+00FB  →  bytes C3 BB  →  %C3%BB
é  U+00E9  →  bytes C3 A9  →  %C3%A9
space      →  byte 20      →  %20

crème brûlée  →  cr%C3%A8me%20br%C3%BBl%C3%A9e

The encoded form is 8 + 7 × 3 = 29 characters long, all ASCII. The URL encoder and decoder lets you redo this conversion in both directions.

3. The fragment. #desserts is stripped before sending: once the page arrives, the browser will use it to scroll to the matching anchor.

4. The request. After resolving the encoded name through DNS and setting up an encrypted connection, the browser sends, in HTTP/1.1:

GET /menu/cr%C3%A8me%20br%C3%BBl%C3%A9e?lang=en HTTP/1.1
Host: xn--caf-dma.example
Accept: text/html

The first line carries the method, the path and the query, without the fragment. The Host header tells the server, which may host other sites on the same IP address, which one is wanted. The blank line ends the headers.

5. The response. The server replies:

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8

<p>Crème brûlée: €7</p>

The header announces both the format, HTML, and the byte encoding, UTF-8. The HTTP header analyzer decodes this kind of response and flags missing or malformed headers.

6. The classic mistake. If the server leaves out the charset parameter and the browser assumes the old Western encoding, each accented letter is read as two separate characters: byte C3 becomes “Ô, A8 “¨”, BB “»” and A9 “©”. The text then appears like this:

Crème brûlée

This defect, still common in emails and mislabelled files, comes from a mismatch between the encoding the author used and the one the reader assumed. To avoid it regardless of encoding, an author can write these letters as numeric character references, which point directly to the character’s Unicode code point: Cr&#232;me br&#251;l&#233;e, where 232, 251 and 233 are the decimal values of U+00E8, U+00FB and U+00E9. The HTML entity encoder and decoder produces these references automatically. In a document declared as UTF-8, as the standard now recommends, they are only needed for characters reserved by HTML syntax, such as < or &.

This example brings all three conventions and their encoding layers into play: the URI names the resource, HTTP requests it and announces its format, HTML provides the structure. The legacies of 1991, ASCII-only addresses and content long assumed to be Latin-1, account for every one of the conversions.

Timeline

Date Milestone Document
1991 Original HTTP: one GET line, one HTML response “The Original HTTP as defined in 1991”
November 1992 Archived state of the “HTML Tags” and “W3 address syntax” pages W3C archives
25 February 1993 Marc Andreessen proposes the IMG element www-talk list
June 1994 “Universal Resource Identifiers in WWW” RFC 1630
December 1994 URLs standardized; URN requirements RFC 1738, RFC 1737
June 1995 Rules for relative references RFC 1808
November 1995 HTML 2.0: images, forms, unknown tags ignored RFC 1866
May 1996 HTTP/1.0: methods, status codes, headers, MIME types RFC 1945
January 1997 HTTP/1.1 and the Host header; internationalized HTML; HTML 3.2 RFC 2068, RFC 2070, W3C
February 1997 RFC standardizing cookies, already used by Netscape RFC 2109
December 1997 HTML 4.0 deprecates presentational elements W3C
June 1999 HTTP/1.1 revised RFC 2616
2000 Roy Fielding’s dissertation on the REST style University of California, Irvine
March 2003 Internationalized domain names and Punycode RFC 3490, RFC 3492
November 2003 Current definition of UTF-8 RFC 3629
2004 WHATWG founded; Architecture of the World Wide Web (15 December) WHATWG, W3C
January 2005 Generic URI syntax; IRIs RFC 3986, RFC 3987
28 October 2014 HTML5 becomes a W3C Recommendation W3C
May 2015 HTTP/2 and HPACK compression RFC 7540, RFC 7541
28 May 2019 W3C–WHATWG agreement on HTML and the DOM W3C blog
May 2021 QUIC transport RFC 9000
June 2022 HTTP semantics separated from versions; HTTP/3 RFC 9110, RFC 9114

What these choices made possible

None of these choices was the most powerful option available. A two-way link guarantees consistency better, a stateful protocol makes sessions simpler, a programming language offers more freedom than descriptive markup, and a strict format avoids guesswork repairs. Almost every time, the Web picked the option that was simplest to implement independently, by anyone, on any machine.

That simplicity had a cumulative effect. Because a link asks nothing of its target, anyone could publish and cite without coordination. Because HTTP keeps no state, caches, load balancers and content delivery networks could slot in without applications knowing. Because formats are announced by a MIME type and unknown tags are ignored, new formats and new elements could appear without breaking older software. Because the three conventions are independent, each has been rewritten several times while keeping its older forms readable.

The flaws stem from the same decisions: links broken for want of a register, sessions grafted on through cookies that the dynamic Web later repurposed for tracking, browsers diverging over malformed pages, encodings declared wrongly. A large share of the standards published over the past twenty years has been less about inventing than about describing precisely what those choices produce: the URL Standard writes down how browsers really behave, the HTML Standard defines how to recover from every error, the Encoding Standard records that Latin-1 means windows-1252. The Web earned its stability by accepting its imperfections, then specifying them.

Frequently asked questions

What is the difference between a URL, a URI and a URN?

A URI, Uniform Resource Identifier, is the generic term defined by RFC 3986: any string that identifies a resource following the common syntax, starting with a scheme. A URL is a URI that also says how to reach the resource, such as https://example.org/page. A URN is a persistent name independent of location, such as urn:oasis:names:specification:docbook:dtd:xml:4.1.2. In everyday use, and in the WHATWG standard, “URL” simply means a Web address.

Why is HTTP called “stateless” when I stay logged in to a site?

The protocol is stateless: the meaning of each request can be understood without the previous one. Being logged in to an account is built at application level. The server hands the browser a cookie, which the browser sends back with every request; it usually holds just a session identifier, which lets the server look up the state it keeps on its own side. The HTTP message can still be understood on its own, but the application is no longer stateless: several servers then have to share those sessions, or send each reader back to the same machine, and personalized responses need suitable caching rules.

Why do addresses contain %20 or %C3%A9?

Since RFC 1738 in 1994, URLs carry only printable ASCII characters. A space becomes %20, and an accented letter is first converted to UTF-8 bytes, then each byte is written as %XX: “é” gives the bytes C3 and A9, hence %C3%A9. Browsers often show the decoded form in the address bar but send the encoded form to the server.

Have HTTP/2 and HTTP/3 replaced HTTP/1.1?

They coexist. All three versions share the same semantics, described in RFC 9110: methods, status codes and headers mean the same thing. HTTP/2 and HTTP/3 change how messages are encoded and carried, with binary frames and several simultaneous streams, HTTP/3 using QUIC over UDP. A client and a server pick a version they can both speak, and HTTP/1.1 remains defined and in use.

Why do browsers display badly written pages?

Since the earliest browsers, and officially since HTML 2.0 in 1995, unknown tags are ignored rather than causing an error, which allows the language to grow without breaking what already exists. How faulty documents were repaired long varied from one browser to another. Since HTML5, the WHATWG standard defines a parsing algorithm that also handles incorrect documents, so that all conforming browsers get the same result.

What does “xn–” mean at the start of a domain name?

This prefix marks an internationalized domain name converted to ASCII by the Punycode algorithm, described in RFC 3492 in 2003. The DNS protocol could carry other bytes, but host name rules and existing applications only accept ASCII letters, digits and hyphens; IDNA therefore represents café.example as xn--caf-dma.example, which complies with those rules. The browser displays the readable form when its security rules allow it.

Was this article useful?

Sources and references

  1. Tim Berners-Lee, Information Management: A Proposal (opens in a new tab), CERN, March 1989, recirculated May 1990; copy published by the W3C, 1989Page in English
  2. Tim Berners-Lee, The Original HTTP as defined in 1991 (opens in a new tab), W3C, archive of HTTP specifications, 1991Page in English
  3. WorldWideWeb project, CERN, HTML Tags (opens in a new tab), Project pages as of 3 November 1992; W3C archive, 1992Page in English
  4. WorldWideWeb project, CERN, W3 address syntax (opens in a new tab), Project pages as of 3 November 1992; W3C archive, 1992Page in English
  5. Marc Andreessen, proposed new tag: IMG (opens in a new tab), www-talk mailing list, 25 February 1993; University of Calgary mirror, 1993Page in English
  6. Tim Berners-Lee, Frequently asked questions by the Press (opens in a new tab), W3C, Tim Berners-Lee’s personal page, undatedPage in English
  7. Tim Berners-Lee, RFC 1630: Universal Resource Identifiers in WWW (opens in a new tab), CERN, June 1994; RFC Editor, 1994Page in English
  8. Karen Sollins and Larry Masinter, RFC 1737: Functional Requirements for Uniform Resource Names (opens in a new tab), December 1994; RFC Editor, 1994Page in English
  9. Tim Berners-Lee, Larry Masinter and Mark McCahill, RFC 1738: Uniform Resource Locators (URL) (opens in a new tab), December 1994; RFC Editor, 1994Page in English
  10. Roy T. Fielding, RFC 1808: Relative Uniform Resource Locators (opens in a new tab), June 1995; RFC Editor, 1995Page in English
  11. Tim Berners-Lee and Dan Connolly, RFC 1866: Hypertext Markup Language — 2.0 (opens in a new tab), November 1995; RFC Editor, 1995Page in English
  12. Tim Berners-Lee, Roy Fielding and Henrik Frystyk, RFC 1945: Hypertext Transfer Protocol — HTTP/1.0 (opens in a new tab), May 1996; RFC Editor, 1996Page in English
  13. Ned Freed and Nathaniel Borenstein, RFC 2045: Multipurpose Internet Mail Extensions (MIME) Part One (opens in a new tab), November 1996; RFC Editor, 1996Page in English
  14. Roy Fielding, Jim Gettys, Jeffrey Mogul, Henrik Frystyk and Tim Berners-Lee, RFC 2068: Hypertext Transfer Protocol — HTTP/1.1 (opens in a new tab), January 1997; RFC Editor, 1997Page in English
  15. François Yergeau, Gavin Nicol, Glenn Adams and Martin Dürst, RFC 2070: Internationalization of the Hypertext Markup Language (opens in a new tab), January 1997; RFC Editor, 1997Page in English
  16. David M. Kristol and Lou Montulli, RFC 2109: HTTP State Management Mechanism (opens in a new tab), February 1997; RFC Editor, 1997Page in English
  17. W3C, HTML 3.2 Reference Specification (opens in a new tab), W3C Recommendation, 14 January 1997, 1997Page in English
  18. Robert Elz and Randy Bush, RFC 2181: Clarifications to the DNS Specification (opens in a new tab), July 1997; RFC Editor, 1997Page in English
  19. W3C, HTML 4.01 Specification (opens in a new tab), W3C Recommendation, 24 December 1999, 1999Page in English
  20. Tim Berners-Lee, Cool URIs don't change (opens in a new tab), W3C, style guide, 1998Page in English
  21. Tim Berners-Lee, Roy Fielding and Larry Masinter, RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax (opens in a new tab), August 1998; RFC Editor, 1998Page in English
  22. Roy Fielding, Jim Gettys, Jeffrey Mogul, Henrik Frystyk, Larry Masinter, Paul Leach and Tim Berners-Lee, RFC 2616: Hypertext Transfer Protocol — HTTP/1.1 (opens in a new tab), June 1999; RFC Editor, 1999Page in English
  23. Roy Thomas Fielding, Architectural Styles and the Design of Network-based Software Architectures (opens in a new tab), Doctoral dissertation, University of California, Irvine, 2000Page in English
  24. Rob Pike, UTF-8 history (opens in a new tab), Email of 30 April 2003, archived by Markus Kuhn, University of Cambridge, 2003Page in English
  25. Patrik Fältström, Paul Hoffman and Adam M. Costello, RFC 3490: Internationalizing Domain Names in Applications (IDNA) (opens in a new tab), March 2003; RFC Editor, 2003Page in English
  26. Adam M. Costello, RFC 3492: Punycode (opens in a new tab), March 2003; RFC Editor, 2003Page in English
  27. François Yergeau, RFC 3629: UTF-8, a transformation format of ISO 10646 (opens in a new tab), November 2003; RFC Editor, 2003Page in English
  28. Ian Jacobs and Norman Walsh (eds.), Architecture of the World Wide Web, Volume One (opens in a new tab), W3C Recommendation, 15 December 2004, 2004Page in English
  29. Tim Berners-Lee, Roy Fielding and Larry Masinter, RFC 3986: Uniform Resource Identifier (URI): Generic Syntax (opens in a new tab), January 2005, STD 66; RFC Editor, 2005Page in English
  30. Martin Dürst and Michel Suignard, RFC 3987: Internationalized Resource Identifiers (IRIs) (opens in a new tab), January 2005; RFC Editor, 2005Page in English
  31. Tim Berners-Lee and Noah Mendelsohn, The Rule of Least Power (opens in a new tab), W3C, Technical Architecture Group, 23 February 2006, 2006Page in English
  32. Adam Barth, RFC 6265: HTTP State Management Mechanism (opens in a new tab), April 2011; RFC Editor, 2011Page in English
  33. W3C, HTML5: A vocabulary and associated APIs for HTML and XHTML (opens in a new tab), W3C Recommendation, 28 October 2014, 2014Page in English
  34. Mike Belshe, Roberto Peon and Martin Thomson, RFC 7540: Hypertext Transfer Protocol Version 2 (HTTP/2) (opens in a new tab), May 2015; RFC Editor, 2015Page in English
  35. Roberto Peon and Herve Ruellan, RFC 7541: HPACK: Header Compression for HTTP/2 (opens in a new tab), May 2015; RFC Editor, 2015Page in English
  36. W3C, W3C and WHATWG to work together to advance the open Web platform (opens in a new tab), W3C blog, 28 May 2019, 2019Page in English
  37. Jana Iyengar and Martin Thomson, RFC 9000: QUIC: A UDP-Based Multiplexed and Secure Transport (opens in a new tab), May 2021; RFC Editor, 2021Page in English
  38. Roy Fielding, Mark Nottingham and Julian Reschke, RFC 9110: HTTP Semantics (opens in a new tab), June 2022, STD 97; RFC Editor, 2022Page in English
  39. Mike Bishop, RFC 9114: HTTP/3 (opens in a new tab), June 2022; RFC Editor, 2022Page in English
  40. WHATWG, FAQ (opens in a new tab), Web Hypertext Application Technology Working Group, undated pagePage in English
  41. WHATWG, HTML Living Standard — Parsing HTML documents (opens in a new tab), WHATWG, living standardPage in English
  42. WHATWG, URL Living Standard (opens in a new tab), WHATWG, living standardPage in English
  43. WHATWG, Encoding Living Standard (opens in a new tab), WHATWG, living standardPage in English
  44. Donald Eastlake and Aliza Panitz, RFC 2606: Reserved Top Level DNS Names (opens in a new tab), June 1999; RFC Editor, 1999Page in English