Video by freeCodeCamp.org · taught by David J. Malan · streamed from YouTube. All rights remain with the creator.
Lesson 6: How the Web Works: HTTP, HTML and CSS
About this lesson
This lecture moves from programs running on one computer to the internet, and explains what happens between typing an address into a browser and seeing a page. It begins with how computers find each other: IP addresses and the move to longer ones, the service that hands out an address when a device joins a network, and the routers that pass data from network to network towards its destination. You see how the domain name system turns names that people can remember into numerical addresses, and how data is split into packets that travel separately, with TCP putting them back together and using port numbers to reach the right program. The lecture then introduces HTTP, the language browsers and servers use to talk to each other, showing real requests and responses, the headers they contain, and the status codes that report success, redirection or errors. It looks at how information travels in the parameters of a web address, how search engines use them, and the difference between requests that fetch information and those that send it. The second half teaches how pages themselves are written. HTML describes the structure and content of a page with tags and attributes, and you see headings, paragraphs, links, images, tables and forms, and how a page's tags form a tree. CSS then controls how the page looks, with selectors that pick out elements and properties that set colours, fonts and layout. Afterwards, read Chapter 6 of the course book, which follows a request from start to finish.