Uniform Resource Locators - URL in HTML

Uniform Resource Locators - URL is another way of writing a web address.

The URL can be made up of letters (quantrimang.com) or IP address (192.68.20.50). Most users use names because they are easier to remember.

URL - Reousece Uniform Locators - Uniform resource positioning

The web browser will request the web page from the web server with the URL. The Uniform Resource Locator (URL) is used to determine the address of a document (or other data) on the network. A web address like https://quantrimang.com/html/ will follow the syntax rules as follows.

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

Inside

  1. scheme - defines the type of Internet service (usually HTTP or HTTPS)
  2. prefix - prefix of domain name (default with HTTPS is www)
  3. domain - define the domain name (eg quantrimang.com)
  4. port - defines the port number at the host (default with HTTP is 80)
  5. path - defines the path to the server (if omitted, this will be the root of the page)
  6. filename - defines the name of the file or data source

Popular Scheme URL

Popular Scheme URLs (connection protocols) are listed in the table below:

Protocol Full name Purpose of using http HyperText Transfer Protocol Regular, unencrypted web sites https Secure HyperText Transfer Protocol Secure, encrypted web page ftp File Transfer Protocol Upload or download file file A file on your computer count

URL encoding

URLs can only be transferred via the Internet using ASCII encoded character sets. If there are non-ASCII characters contained, the URL will be converted. URL encoding will convert non-ASCII characters to another format for transfer over the Internet, replacing these characters with '%' and followed by decimal digits.

The URL cannot contain spaces, usually the encryption process will replace the white space with a plus sign (+) or% 20.

ASCII coding examples

Depending on the character set used on the page, the browser will encrypt the input. The default HTML5 character set is UTF-8.

Character From Windows-1252 From UTF-8 €% 80% E2% 82% AC £% A3% C2% A3 ©% A9% C2% A9®% AE% C2% AE A% C0% C3% 80 Asia% C1% C3 % 81%% C2% C3% 82%% C3% C3% 83 Ä% C4% C3% 84 Å% C5% C3% 85

Previous article: Character encoding in HTML (Charset)

The following article: HTML and XHTML

5 ★ | 1 Vote

May be interested

  • Text in HTMLText in HTML
    the element in html is used to define a paragraph of text.
  • How to Use Text Color Tags in HTMLHow to Use Text Color Tags in HTML
    this article explains how to change the font color in html documents. although the html style tag is obsolete in html5, you can use css to color content on an html page. if you use an older version of html, you can use the html text color tag as needed.
  • Format text in HTMLFormat text in HTML
    format elements in html help determine the style and importance of text.
  • Elements in HTMLElements in HTML
    the html element usually goes in pairs, including the opening tag, closing tag, and the content inside the two tags.
  • Symbol - Icon in HTMLSymbol - Icon in HTML
    html has many mathematical, technical and monetary symbols that cannot be used to write.
  • 5 ways to open Resource Monitor in Windows 105 ways to open Resource Monitor in Windows 10
    resource monitor is a tool that allows you to simply monitor cpu, memory, disk and network usage. in this tutorial, tipsmake will show you quick ways to open resource monitor in windows 10.
  • Parameters in HTTPParameters in HTTP
    this chapter lists some of the http protocol parameters and their syntax by which they are used in communication.
  • Common HTML mistakes that you should avoid for better web programmingCommon HTML mistakes that you should avoid for better web programming
    learning html is not difficult, but when running it in the browser, errors often occur. here are common html errors and how to handle them for better web development.
  • How to insert spaces in HTMLHow to insert spaces in HTML
    this tutorial explains how to insert spaces and line breaks in html. because no matter how many times you type a space, html will display a space so to insert more than one space, you will need to use the html tag.
  • Image img in HTMLImage img in HTML
    when you visit the website, you will often see images of all sizes and positions on the page. images in html web pages will help to enrich the content as well as increase the aesthetics of the page.