Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Digital Literacy

Difference between URL and Domain Name

Hi,

What is the difference between the URL and Domain Name? I found some information online but it seems to be a little vague so any help would be appreciated.

Thanks!

2 Answers

Marina Alenskaja
Marina Alenskaja
9,320 Points

Hi Irene

A domain name is the name of a website - for example "Treehouse.com". A domain name is unique, and when you buy it it's yours - there cannot be two of the same domain names.

A URL is the entire 'path' of a website. A URL can link to any page of any website - https://teamtreehouse.com/community/difference-between-url-and-domain-name is the URL for this post, and www.treehouse.com is also a URL to the treehouse homepage.

Does that answer your question? :-)

Thanks Marina! You explained it perfectly :)