Jan 082014
 

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.

  1. 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.

  2. Now, let’s look at a URL, or web address:

    http://education.byu.edu/ipt/index.html

    Just as a physical mail address, this web address shows us several parts, going from the largest to the smallest.

    1. education.byu.edu is the domain (like a state or country)
    2. ipt/ indicates that the file we’re looking at is inside a folder named “ipt” (like a city)
    3. finally, index.html indicates the name of the actual web page, or file we’re looking at (like the individual building)
  3. Sometimes, urls get to be a bit more complex. For example, you may see something like:

    http://education.byu.edu/ipt/faculty.php?name=peter

    That little?name=peter at the end is not a new page, but actually information that was passed to that page from another page.

    1. the ? indicates that everything from that point on is data. It’s like saying “load the faculty page, but with the following informationK
    2. name is the name of some variable
    3. = indicates that the value of the variable is about to follow
    4. peter is the value of the variable name.
 Posted by at 10:03 am

  One Response to “Understanding URLs and HTML basics”

  1. […] Given a url, identify: (a) the domain, (b) the directory, (c) the file containing the page being looked at, and (d) any var… […]

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)