Loading Please Wait...

Logo Lynxsia IT Solutions

HTML URL Encoding

HTML URL Encoding

When we visit any recourse (web page, website, image, audio, video, files, etc.) on the internet or web, we need to enter the path of the resource. This path is called URL (Uniform Resource Locater) or web address.

A URL can be defined by name (lynxsia.com) and/or IP (Internet Protocol) address (127.12.158.42). When searching resource, it is simple to remember name instead of number like in IP address.

URL Structure

A typical URL have the following structure:

Common Syntax
					 
        
          scheme://prefix.domain.tld:port/path/file
          OR
          https://www.lynxsia.com/themes/preview/education-website?page=1
        
      
URL structure

Scheme: Defines the protocol or internet service (http, https, ftp)

Prefix: Defines the subdomain (www, blog, app)

Domain: Defines the second/root level domain. Generally the owner name (lynxsia, google, facebook).

TLD: Defines the top level domain (com, in, net, org).

Port: Defines the port of the host (80, 8080, 3306). Default is 80 in case if omitted.

Path: Defines the directory(s) structure. Default is root directory in case if omitted.

File: Defines the actual file (HTML page, Images).

URL Encoding

URL on the internet are accessible using ASCII character set. If any character used besides ASCII, it needs to be converted and properly encoded.

URL encoding replace non ASCII characters into "%" followed by hexadecimal digit.

For example, space is converted to "%20" or "+" sign

URL Encoding Example

URL Encoding converts UTF-8 (HTML default charset) to ASCII

Character Encoding (From UTF-8)
space %20
%E2%82%AC
# %23
® %C2%AE
Á %C3%81

How you feel about this blog:

Share this blog on:

Report Us

If you find any error in the turtorials, or want to share your suggestion/feedback, feel free to send us email at: info@lynxsia.com

Contact Us
Ads
Logo
Lynxsia IT Solutions

We are concern with various development process like website design & development, E-commerce development, Software development, Application development, SMS & Bulk SMS Provider, PWA Development, and many more..

Kotwali Road, Chhiptehri, Banda, 210001, UP, India

Copyright © 2022, Lynxsia IT Solutions, All rights reserved