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

WordPress Customizing the WordPress Admin Area Admin Color Schemes Customizing Admin Color Schemes from Scratch

Stavros Sofroniadis
PLUS
Stavros Sofroniadis
Courses Plus Student 1,503 Points

Difference betwwen URI & URL?

If you could mention what is difference betwwen URI & URL?

Why in style.css file we use URI instead of URL? In the Theme URI instead of URL

URI is the location of resource into our computer(the path in order author of site to reach resource into his/her computer) while URL is the location of a resource into web? (in order someone user to view the resource)

/* Theme Name: Twenty Fourteen Child Theme -->Το ονομα του θέματος Theme URI: http://wptreehouse.com/customize-admin Description: 2014 Child Theme for How to Customize the WordPress Admin Area Author: Zac Gordon --> Author URI: http://zacgordon.com Template: twentyfourteen --> Version: 1.0 --> Εκδοση του θεματος */

Please if you could assist,

Thank You,

2 Answers

Hi STAVROS,

URI -- Uniform Resource Identifier URIs are a standard for identifying documents using a short string of numbers, letters, and symbols. They are defined by RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax. Generic Syntax. URLs, URNs, and URCs are all types of URI.

URL -- Uniform Resource Locator Contains information about how to fetch a resource from its location. For example:

http://example.com/mypage.html
ftp://example.com/download.zip
mailto:user@example.com
file:///home/user/file.txt
tel:1-888-555-5555
http://example.com/resource?foo=bar#fragment
/other/link.html (A relative URL, only useful in the context of another URL)

URLs always start with a protocol (http)and usually contain information such as the network host name (example.com) and often a document path (/foo/mypage.html). URLs may have query parameters and fragment identifiers.

Stavros Sofroniadis
Stavros Sofroniadis
Courses Plus Student 1,503 Points

HI Remon,

Thank you for reply,

could you mention an URI example, dont understand what you mean identifying documents using a short string of numbers, letters, and symbols.

Usually identify the path of a document localy/server using numbers,letters,symbols?

URI dont use any protocol as URL(which use to identify a resource location)?

Hi Stavaros, Wikipedia captures it well.

One can classify URIs as locators (URLs), or as names (URNs), or as both. A Uniform Resource Name (URN) functions like a person’s name, while a Uniform Resource Locator (URL) resembles that person’s street address. In other words: the URN defines an item’s identity, while the URL provides a method for finding it.

https://en.wikipedia.org/wiki/Uniform_Resource_Identifier

this is also a good article https://danielmiessler.com/study/url-uri/