A URL may consist of either words (such as w3schools.com) or an Internet Protocol (IP) address (for example, 192.68.20.50).
When browsing the web, individuals typically input the name since names are simpler to recall than numbers.
Web browsers request pages from web servers by employing a URL.
A Uniform Resource Locator (URL) serves as the means to locate a document or other data on the web.
A web address, such as https://www.code7school.com/html/default.asp, adheres to these syntax guidelines:
scheme://prefix.domain:port/path/filename |
Description:
Below is a table enumerating some frequently used 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 |
URLs can solely traverse the Internet utilizing the ASCII character-set. When a URL incorporates characters beyond the ASCII set, conversion becomes necessary.
URL encoding transforms non-ASCII characters into a format compatible with Internet transmission.
In URL encoding, non-ASCII characters are substituted with a “%” followed by hexadecimal digits.
Spaces are not permissible within URLs. Typically, URL encoding replaces a space with a plus (+) sign or %20.
When you click “Submit,” the browser will encode the input into a URL format before sending it to the server.
A page on the server will then exhibit the received input.
Feel free to experiment with different input and click Submit again.
Your browser will encode input based on the character-set employed in your page.
The default character set in HTML5 is 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 |