Saturday, 5 September 2015

Html URL Encoding

Html URL:

URL stands for Uniform Resource Locators.
URL is another word for web address.
URL can be composed of words (Learnhtmlwithdanyal.blogspot.com), or an IP(Internet Protocol) address (123.45.30.40).
Commonly people enter name when surfing because names are easier to be remenber instead of numbers.

Uniform Resource Locator - URL:

By using URL web browsers request pages from web servers.
When you click on link In html page an underlying <a> tag pionts to address on web.
Uniform resource locator is used to address a document on web.
Web address like http://www.learnhtmlwithdanyal.blogspot.com follow these syntax rules;

Expalnation:

1)scheme - defines type Internet service ( most common is http)
2)host - defines Domain Host (default host for http is www)
3)domain - defines internet domain name (learnhtmlwithdanyal.blogspot.com)
4)port -defines port number at host (default for http is 80)
5)path -defines path at server (If omitted : the root directory of site)
6)filename -defines name of document or resource

Common Url Schemes:

Table below lists some schemes;

Url Encoding:

By using ASCII character set URLs can only be sent over internet.
As URLs contain character outside ASCII set URL has to converted inoto ASCII.
URL encoding converts character in such format that it can be transmitted over internet.
By hexadecimal digits URL encoding replaces non ASCII character with "%".
URL encoding normally replaces space with +(plus) sign, or %20.

ASCII ENCODING EXAMPLES:

According to character set used in your page,your browser will encode input.
Default char-set in html5 is UTF-8.

No comments:

Post a Comment