← All posts

What is a URL (in plain language)

The pieces of a web address—scheme, host, path, and query—and why they matter when you learn how the web works.

  • web
  • fundamentals

A URL (Uniform Resource Locator) is the address you type or click to reach a resource on the internet—usually a web page or an API.

Example

https://example.com/docs/search?q=astro&lang=en

Main parts

PartIn the exampleRole
Schemehttps://Tells the browser how to talk to the server (here, encrypted HTTP).
Hostexample.comIdentifies the server (via DNS to an IP address).
Path/docs/searchWhich document or route on that server you want.
Query?q=astro&lang=enExtra parameters, often from forms or filters.

You do not need every RFC detail at first. Recognizing these pieces is enough when you read documentation, debug redirects, or configure hosting.