☼
⌃
☰

Uniform Resource Locator

Table of Contents

Uniform Resource Locator

Overview

A URL (Uniform Resource Locator) is a unique address used to locate a ​​specific resource on the internet, such as a webpage, image, video, or file.

Structure

A typical URL consists of the following components:

  • Scheme: The protocol used to access the resource (e.g., http://, https://, ftp://, mailto:). ​​
  • Domain Name: The name of the server or host where the resource is located (e.g., www.example.com).
  • Path: The specific location of the resource within the server (e.g. /index.html, /images/logo.png).
  • Query Parameters: Optional parameters that provide additional information to the server (e.g., ?id=123&page=2).
  • Fragment Identifier: Optional identifier that specifies a particular part of the resource (e.g. #section1).

Example

https://www.example.com/about/team?page=2#contact

  • Scheme: https:// (Hypertext Transfer Protocol Secure)
  • Domain Name: www.example.com
  • Path: /about/team
  • Query Parameter: ?page=2
  • Fragment Identifier: #contact

Purpose

  • Locating Resources: URLs provide a standardized way to locate and access resources on the internet.
  • Human-Readable Addresses: URLs are more user-friendly than IP addresses, making it easier for people to remember and navigate websites.
  • Hyperlinks: URLs are used to create hyperlinks, enabling users to easily navigate between different web pages.