HTML Uniform Resource Locators (URLs) Example

aimtocode

Uniform Resource Locators (URLs):

The World Wide Web is a network of information resources. The Web relies on three mechanisms to make these resources readily available to the widest possible audience, URLs can only be sent over the Internet using the ASCII character-set. If a URL contains characters outside the ASCII set, the URL has to be converted.

Uniform Resource Locators (URLs):

  1. Fragment identifiers
  2. Relative URLs
  3. URLs in HTML

Explanation:

  • scheme - defines the type of Internet service (most common is http or https.)
  • prefix - defines a domain prefix (default for http is www).
  • domain - defines the Internet domain name (like aimtocode.com).
  • port - defines the port number at the host (default for http is 80).
  • path - defines a path at the server (If omitted: the root directory of the site).
  • filename - defines the name of a document or resource.

Common URL Schemes

The table below lists some common schemes:

Scheme Short for Used for
http HyperText Transfer Protocol Common web pages. Not encrypted
https Secure HyperText Transfer Protocol Secure web pages. Encrypted
ftp File Transfer Protocol Downloading or uploading files
file   A file on your computer

Example :


  • https://aimtocode.com/html.html
  • http://www.aimtocode.com/

  • aimtocode