HTML Uniform Resource Locators
The URL is a web page address.
The URL can consist of letters such as "W3CSchools.cc" or Internet Protocol (IP) address: 22.214.171.124. Most people go to the website to use the website domain name to access, 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 address: http://www.php.cn/html/html-url.html
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 w3cschool.cc
: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 in the root of the website).
Filename - defines the name of the document/resource
Common URL Schemes
Here are some URL schemes:
|Http||Hypertext transfer protocol||A normal web page that starts with http://. Not encrypted.|
|Https||Secure hypertext transfer protocol||Secure web pages that encrypt all information exchanges.|
|Ftp||File transfer protocol||Used to download or upload files to a website.|
|File||The file on your computer.|
URL character encoding
URLs can only use the ASCII character set.
To send over the Internet. Since URLs often contain characters other than the ASCII collection, the URL must be converted to a valid ASCII format.
URL encoding uses "%" followed by a two-digit hexadecimal number to replace non-ASCII characters.
URLs cannot contain spaces. URL encoding usually uses + to replace spaces.
URL encoding instance
For a complete URL encoding reference, please visit our URL Encoding Reference Manual.