What is a URL?

Share

A Uniform Resource Locator (commonly known as a URL) is a link or a string that is used to reach a particular web page. A URL is made up of three parts:

  • Protocol
  • Hostname
  • Resource location
svg viewer

Explanation

URLs are not as simple as they appear in the above illustration.

Suppose a user wants to buy a course on educative.io.

Broken down, the anatomy of this URL looks like this:

  1. Protocol: The protocol is https://www..
  2. Hostname: The domain/hostname is educative.io.

This can also be explained through DNS.

  1. Resource location: The location of the resource that the user desires to view is /courses/database-design-fundamentals.
Copyright ©2024 Educative, Inc. All rights reserved