Home / Guides

What Is a URL? The Parts of a Web Address, Explained

A URL is just an address with a few labeled parts. Once you can read one, a lot of web work gets easier.

The parts, with an example

Take https://example.com/guides/domains?ref=newsletter#renewal:

PartExampleWhat it does
SchemehttpsHow to talk to the server, securely.
Hostexample.comWhich site to ask.
Path/guides/domainsWhich page on that site.
Query?ref=newsletterExtra information, such as tracking tags or search terms.
Fragment#renewalA spot on the page.

URL, domain, link: are they the same?

A domain is the name part (example.com). A URL is the full address of one page. A link is a clickable URL. People mix the words, and that is fine in conversation.

Good URLs are readable

More in our clean URL guide.

Special characters

Spaces and some symbols are encoded with percent signs (a space becomes %20). It works, but it looks messy, which is another reason to keep paths simple.

Try it

Open any page you like and read its URL out loud, part by part. After a few, you will do it without thinking.

Gear and reading that fits this guide

Photos and links go to Amazon. Check the current price, model and seller there.

JavaScript: The Definitive Guide product photo

JavaScript: The Definitive Guide

The big reference you will keep coming back to.

Check it on Amazon →
CSS: The Definitive Guide product photo

CSS: The Definitive Guide

Deep, reliable coverage of layout and styling.

Check it on Amazon →

Want the whole shelf sorted by type? Browse all Top Picks →