HTML Url Encoding
HTML Url Encoding
HTML Url Encoding
Next Chapter
s c h e m e : / / h o s t . d o m a i n : p o r t / p a t h / f i l e n a m e
Explanation: 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, like w3schools.com :port - defines the port number at the host (the default port number for http is 80 ) path - defines a path at the server (If omitted, the document must be stored at the root directory of the web site) filename - defines the name of a document/resource
ftp
file
URL Encoding
URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format. URL encoding converts characters into a format that can be transmitted over the Internet.
w3schools.com/html/html_urlencode.asp 1/2
4/4/13
URL encoding replaces non ASCII characters with a "%" followed by two hexadecimal digits. URLs cannot contain spaces. URL encoding normally replaces a space with a + sign.
Try It Yourself
If you click the "Submit" button below, the browser will URL encode the input before it is sent to the server. A page at the server will display the received input. Hello Gnter Submit
For a complete reference of all URL encodings, visit our URL Encoding Reference.
Previous
Next Chapter
w3schools.com/html/html_urlencode.asp
2/2