/    /  HTML URL Encode

HTML URL Encode

 

A URL is another word for a web address.URL stands for Uniform Resource Locator. It is actually a web address. A URL can contain words i.e. (i2tutorials.com) or an Internet Protocol (IP) address i.e.195.201.68.81. Most of the users use URL in the form of words because it is the easiest way to remember than numbers.

 

Syntax:

 

scheme://prefix.domain:port/path/filename

  • scheme – Type of Internet service (most common is http or https).
  • prefix – Domain prefix (default for http is www).
  • domain – Internet domain name (like javaTpoint.com).
  • port – Port number at the host (default for http is 80).
  • path – Path at the server (If omitted: the root directory of the site).
  • filename – The name of a document or resource.

 

some common types of schemes used in URL:

 

  • HTTP(HyperText Transfer Protocol): Common web pages. Not encrypted.
  • https (Secure HyperText Transfer Protocol): Define the Secure web pages. Encrypted.
  • FTP(File Transfer Protocol): Downloading or uploading files.
  • file: A file on your computer.

 

URL Encoding:

 

URL encoding is provided to convert non-ASCII characters into a format that can be used over the Internet because a URL is sent over the Internet by using the ASCII character-set only. If a URL contains characters outside the ASCII characters set, the URL has to be converted.

 

In URL encoding, the non-ASCII (American Standard Code for Information Interchange) characters are replaced with a “%” followed by hexadecimal digits.

 

HTML URL Encode