Learning Website Design: Session 3 – How Browsers work
December 6th, 2009 admin Location: Raleigh, North CarolinaIn our previous article we took a look at what is html and how hyper transfer protocol allowed us to see pages. In this article I am going to explain in a simple way how the browser finds and displays your pages.
The browser is a piece of software that sits in your computer and interprets html, css, javascript and some other technologies like images, videos and java applets.
THE URL
The first step in using a browser is that you type in a URL in the URL bar. The URL (Uniform Resource Locator) is the address that identifies a particular resource on the web. The address is a naming convention and it is composed of different parts:
- The first part is the protocol. Some protocols include https, ftp, etc.
- The host or hostname is merkados.com, where the .com is also known as the top level domain tld.
- The subdomain is whatever is before the host name, examples could be: intermarketing.merkados.com. Where intermarketing is the subdomain.
- The next part is the port. And the default port number for http transmission in web servers is 80. Other ports are possible; a web server can listen on port 8000, for example. You can avoid listing the port number when the default is expected, however if you are accessing another port you need to include it: intermarketing.merkados.com:8888
- The request path is /path. Path typically refers to a file or location on the web server, e.g. /directory/file.html. So for example: merkados.com/pathgoeshere/ would be a directory. and merkados.com/pathgoeshere.html would be a file.
- This URL can also have parameters. These parameters help determine the request for dynamic pages served with a database. Parameters start with a question mark (?) and are separated with an ampersand (&). So for example you would see: www.merkados.com/path?uid=23033. The uid would be the user id parameter and in this case is 23033.
- Finally the last part that you may encounter in a URL is an anchor. The anchors are set by the pound sign (#). For example: merkados.com/services#best_services. That means jump to a subsection inside of a page named services that is called best_services.



