HTML is a language that will give a browser instructions on how to construct and display a web page. You can view the HTML for any web page by choosing the view page source option on your browser. What you will see is basically a text file that is written in HTML.
A key element for HTML are tags. These are used to mark certain parts of the HTML page which can then be read by the browser to display properly on your screen. For example, the tag <b> will specify an area that should be made bold. Most tags have an opening and closing tag which is the same tag with a slash </b>. So you may find this in HTML: <b>Everything here is in bold</b>.
A very common tag is for loading images. <img src="http://www.infofornyc.com/images/infofornyc_logo.png"> tells the browser to load the image located at the URL http://www.infofornyc.com/images/infofornyc_logo.png.
URL stands for Uniform Resource Locator which points to a specific "resource". A resource could be an image, a web page, a video, and more. A typical URL will have the following:
- Protocol - http - the most common for web is http though there are others.
- Domain name - www.infofornyc.com in this example. We discussed domain in the last post.
- Port number - this is generally assumed to be 80 and usually not explicitly displayed on the web browser for http
- Path - /images/infofornyc_logo.png - everything after the domain which helps identify the location of the content (look in the images folder for the infofornyc_logo.png image)
There are some additional parts, but I'll save that for a later in-depth look at the URL.
HTML has a lot of different elements besides image tags and bold tags but I'll also save that for a more detailed post later. For the novice, just remember that HTML is sent by the web server to your browser as a text file. Your browser will read the text file and load the content to display the page on your computer.
HTML has a lot of different elements besides image tags and bold tags but I'll also save that for a more detailed post later. For the novice, just remember that HTML is sent by the web server to your browser as a text file. Your browser will read the text file and load the content to display the page on your computer.
To finish out the example flow from our last post where www.google.com is placed into the browser, once DNS resolution is complete, the below occurs.
Congratulations! If you have read all the posts up until now, you should have a solid foundation on understanding how the Internet works. We'll go into some more advanced technical topics and dive deeper into some concepts already introduced. We will likely start by explaining some of the key protocols such as IP (and how routers function), TCP, UDP, and HTTP.
- Browser connects to the www.google.com web server at the IP address provided and makes a request for http://www.google.com.
- The Google web server delivers a HTML page to the browser.
- The browser reads the HTML page and displays content and identifies additional content to load.
- If the HTML page has additional content to load such as images (e.g., https://www.google.com/images/srpr/logo11w.png), the browser will request the content from the web server.
- The web server delivers all the additional content. Steps 4 and 5 repeat until all content referenced in the HTML page are downloaded.
- The browser displays the full web page.