/
27 HTML URL Encode.html
25 lines (20 loc) · 1.26 KB
/
27 HTML URL Encode.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
HTML Uniform Resource Locators
URL is another word for web address, can be composed of words, or an Internet Protocol (IP) address (192.68.20.50)-->
URL Uniform Resource Locator
web browsers request pages from web servers by using a URL, which is used to address a document (or other data) on the web
https://www.w3schools.com/html/default.asp follows syntax rules scheme://prefix.domain:port/path/filename
Explanation:
*scheme - defines the type of Internet service (http/https most common)
*prefix - defines a domain prefix (default for http is www)
*domain - defines the Internet domain name (like w3schools.com)
*port - defines the port number at the host (default for http is 80)
*path - defines a pth at the server (If omitted: the root directory of the site)
*filename - defines the name of a document or resource-->
Common URL Schemes
Scheme Short for Used for
http HyperText Transfer Protocol Common web pgs. Not encrypted
https Secure HyperText Transfer Protocol Secure web pages. Encrypted
ftp File Transfer Protocol Downloading/uploading files
file A file on your computer
URL Encoding
URLs can only be sent over the Internet using the ASCII character-set. URL contains characters outside the ASCII set, the URL has to be converted.