Today we discussed the basics parts of a URL and the basics of HTML. As far as the basics of HTML, a former student actually put together the very tutorial (with the same metaphors) that I based my lesson on. You can find that here (http://2tailedmonkey.com/topic/html).
Regarding how to understand a URL, I couldn’t really find a good resource that I liked on the Web. So, I’ll break it down here. Let’s start with the basics.
- First, it’s best to understand that a URL is an address. Let’s consider the following address:
149 E. Countryside Circle, Park City, Utah, 84098-6102USA
Looking at this address, we can see that it is the address of a specific building (149 E. Countryside Circle), in a specific city (Park City), in a specific state (Utah), in the USA. In other words, a URL is just a set of information about where something is located.
- Now, let’s look at a URL, or web address:
Just as a physical mail address, this web address shows us several parts, going from the largest to the smallest.
- education.byu.edu is the domain (like a state or country)
- ipt/ indicates that the file we’re looking at is inside a folder named “ipt” (like a city)
- finally, index.html indicates the name of the actual web page, or file we’re looking at (like the individual building)
- Sometimes, urls get to be a bit more complex. For example, you may see something like:
That little?name=peter at the end is not a new page, but actually information that was passed to that page from another page.
- the ? indicates that everything from that point on is data. It’s like saying “load the faculty page, but with the following informationK
- name is the name of some variable
- = indicates that the value of the variable is about to follow
- peter is the value of the variable name.