Trusted answers to developer questions

What is a URL?

Free System Design Interview Course

Many candidates are rejected or down-leveled due to poor performance in their System Design Interview. Stand out in System Design Interviews and get hired in 2024 with this popular free course.

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.

RELATED TAGS

url
dns
http
www
website
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?