HTML Uniform Resource Locators
HTML Tutorial
HTML Uniform Resource Locators
CompletedA URL is known to be another word for a web address.
A URL can consists of words (ngo.com), or an Internet Protocol (IP) address (192.68.20.50).
Most people prefer to enter the name during surfing, as names are much easier to remember than numbers.
URL - Uniform Resource Locator
CompletedWeb browsers will be requesting pages from web servers by means of a URL.
A Uniform Resource Locator (URL) is used for addressing a document (or other data) on the web.
A web address, like http://hexagonitsolutions.com/ngo/html_home.php are also following these syntax rules:
Example
scheme://prefix.domain:port/path/filename
Explanation:
- scheme - used to define the type of Internet service (most common is http or https)
- prefix - used to define a domain prefix (default for http is www)
- domain - used to define the Internet domain name (like NGO.com)
- port - used to define the port number at the host (default for http is 80)
- path - used to define a path at the server (If omitted: the root directory of the site)
- filename - used to define the name of a document or resource
Common URL Schemes
CompletedThe table below lists some common schemes:
| Scheme | Short for | Used for |
|---|---|---|
| http | HyperText Transfer Protocol | Common web pages. Not encrypted |
| https | Secure HyperText Transfer Protocol | Secure web pages. Encrypted |
| ftp | File Transfer Protocol | Downloading or uploading files |
| file | A file on your computer |
HTML Uniform Resource Locators
CompletedURLs are sent over the Internet by using the ASCII character-set only. Incase a URL consists of characters outside the ASCII set, the URL should be converted.
URL encoding is used to convert non-ASCII characters into a format which can be transmitted over the Internet.
URL encoding helps in replacing non-ASCII characters with a "%" followed by hexadecimal digits.
URLs do not hve spaces. URL encoding usually replaces a space with a plus (+) sign, or %20.
HTML Uniform Resource Locators
CompletedTry It Yourself
If you click "Submit", the browser will URL encode the input before it is sent to the server.
A page at the server will display the received input.
Try some other input and click Submit again.
ASCII Encoding Examples
CompletedYour browser will manage toencode input, depending upon the character-set used in your page.
The default character-set in HTML5 is inown to be UTF-8.
| Character | From Windows-1252 | From UTF-8 |
|---|---|---|
| € | %80 | %E2%82%AC |
| £ | %A3 | %C2%A3 |
| © | %A9 | %C2%A9 |
| ® | %AE | %C2%AE |
| À | %C0 | %C3%80 |
| Á | %C1 | %C3%81 |
| Â | %C2 | %C3%82 |
| Ã | %C3 | %C3%83 |
| Ä | %C4 | %C3%84 |
| Å | %C5 | %C3%85 |
For a complete reference of all URL encodings, visit our URL Encoding Reference.
