crus4

crus4

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. 117.92.60.20). 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:

%20
+%2B
:%3A
;%3B
@%40
&%26
=%3D
,%2C
?%3F
#%23
(%28
)%29

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.


Related Posts

HTML Computer Code

HTML Emojis

Text Formatting and Attributes

HTML URL Encoding

3 thoughts on “HTML URL Encoding

Leave a Reply

Your email address will not be published.