HTML URL

HTML Uniform Resource Locators

The URL is a web page address.

The URL can consist of letters such as "W3CSchools.cc" or Internet Protocol (IP) address: 192.68.20.50. Most people go to the website to use the website domain name to access, because the name is easier to remember than the number.

URL - Uniform Resource Locator

The web browser requests the page from the web server through the URL.

When you click on a link in an HTML page, the corresponding <a> tag points to an address on the World Wide Web.

A Uniform Resource Locator (URL) is used to locate documents on the World Wide Web.

An example of a web address: http://www.php.cn/html/html-url.html

Grammar rules

Scheme://host.domain:port/path/filename

Description:

Scheme - defines the type of Internet service. The most common type is http

Host - defines the domain host (the default host for http is www)

Domain - defines the Internet domain name, such as w3cschool.cc

:port - defines the port number on the host (the default port number for http is 80)

Path - defines the path on the server (if omitted, the document must be in the root of the website).

Filename - defines the name of the document/resource

Common URL Schemes

Here are some URL schemes:

    
     Chemes     access     Used for
    HttpHypertext transfer protocolA normal web page that starts with http://. Not encrypted.
    HttpsSecure hypertext transfer protocolSecure web pages that encrypt all information exchanges.
    FtpFile transfer protocolUsed to download or upload files to a website.
    File
The file on your computer.

URL character encoding

URLs can only use the  ASCII character set.

To send over the Internet. Since URLs often contain characters other than the ASCII collection, the URL must be converted to a valid ASCII format.

URL encoding uses "%" followed by a two-digit hexadecimal number to replace non-ASCII characters.

URLs cannot contain spaces. URL encoding usually uses + to replace spaces.

URL encoding instance 

     character     URL encoding
     €     %80
     £     %A3
     ©     %A9
     ®     %AE
     À     %C0
     Á     %C1
     Â     %C2
     Ã     %C3
     Ä     %C4
     Å     %C5

For a complete URL encoding reference, please visit our URL Encoding Reference Manual.





Last Updated: 2018-07-06 12:32:44 By akshay

SHARE THIS

share_facebook share_twitter share_google_plus

Please Comment Here :