HTML Uniform Resource Locators

URL is a web address.

The URL can consist of letters, such as "", or an Internet Protocol (IP) address: Most people access the website using the website domain name, because the name is easier to remember than the number.

URL-Uniform Resource Locator

The web browser requests the page from the web server through the URL.

When you click on a link in an HTML page, the corresponding <a> tag points to an address on the World Wide Web.

A Uniform Resource Locator (URL) is used to locate documents on the World Wide Web.

An example of a web page address: Grammar rules:



    - scheme: defines the type of Internet service. The most common type is http

    - host: defines the domain host (the default host for http is www)

    - domain: defines the Internet domain name, such as

    - :port: defines the port number on the host (the default port number for http is 80)

    - path: defines the path on the server (if omitted, the document must be located in the root directory of the website).

    - filename: defines the name of the document/resource

Common URL Scheme

Here are some URL schemes:

SchemeAccessUsed for...
httpHypertext Transfer ProtocolOrdinary web pages beginning with http://. Not encrypted.
httpsSecure Hypertext Transfer ProtocolSecure web pages, encrypt all information exchanges.
ftpFile transfer protocolUsed to download or upload files to a website.
Files on your computer.

URL Character Encoding

URL can only use ASCII character set .

To send it over the Internet. Since URLs often contain characters outside the ASCII set, URLs must be converted to a valid ASCII format.

URL encoding uses "%" followed by a two-digit hexadecimal number to replace non-ASCII characters.

The URL cannot contain spaces. URL encoding usually uses + to replace spaces.

Online Examples

If you click the "Submit" button below, the browser will URL encode the input before sending it. The page on the server will display the received input.


Try to enter some characters, and then click the submit button again.

URL encoding example

CharacterURL Encode

For a complete URL encoding reference, please visit our URL encoding reference manual . (under construction)