HTML Uniform Resource Locator(Uniform Resource Locators)


A URL can be composed of letters, such as "example.com", or Internet Protocol (IP) addresses: 192.68.20.50. Most people access websites using website domain names because names are easier to remember than numbers.

A URL can consist of letters, such as "example.com", or an Internet Protocol (IP) address: 192.68.20.50. Most people access websites by using a website domain name, as names are easier to remember than numbers.


URL - Uniform Resource Locator

A web browser requests a page from a web server using a URL.

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

A URL is used to locate a document on the World Wide Web.

An example of a URL: http://www.example.com/html/html-tutorial.htmlSyntax Rules:

scheme://host.domain:port/path/filename

Explanation:

    • scheme - Defines the type of Internet service. The most common types are http
    • host - Defines the domain host (the default host for http is www)
    • domain - Defines the Internet domain, such as example.com
    • :port - Defines the port number on the host (the default port 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:

Scheme Access Used for...
http Hypertext Transfer Protocol Ordinary web pages using http://. Not encrypted.
https Secure Hypertext Transfer Protocol Secure web pages, encrypting all information exchanges.
ftp File Transfer Protocol Used to download or upload files to a website.
file   Files on your computer.


URL Character Encoding

A URL can only useASCII character set.

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

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

A URL cannot contain spaces. URL encoding typically uses "+" to replace spaces.


Online Example

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

Try entering some characters and clicking the "Submit" button again.


URL Encoding Example

Character URL Encoding
€ %80
£ %A3
© %A9
® %AE
À %C0
Á %C1
 %C2
à %C3
Ä %C4
Å %C5

For a complete URL encoding reference, please visit ourURL Encoding Reference Manual。



Other Extensions