HTML URL Encoding
What is URL?
URL (Uniform Resource Locators) is another word for web address. A URL is a set of words (e.g. crus4.com) or an IP (Internet Protocol) address (e.g. 184.108.40.206). A URL can also be composed of some special characters like !, &, $, but some characters like @, (the space) makes an URL invalid. Most of the users use name when looking up for your website on search engines, because names are easier to remember than numbers.
What is URL Encoding?
URL Encoding is the method of converting the URL into valid format that is accepted by web servers and browsers. URL Encoding replaces all the characters that are not accepted in the URL (like @) with a percentage sign (%)followed by two hexadecimal digits. e.g. A space is not accepted in URL, the URL encoding replaces a space with a %20 or with a + sign.
The two hexadecimal characters that are followed by the % sign are represent the numeric values of the character in the ASCII character set.
Below is a list of characters that are replaced with other characters when encoding takes place:
Summary (HTML URL Encoding)
- URL is another name for web address.
- URL encoding is the process of converting the URL into valid format that is accepted by web servers and browsers.
- URL encoding replaces all the characters that are not accepted in the URL, with the % sign followed by two hexadecimal characters.