How the Web Works: A Guide to Web Development

Understanding the fundamentals will prove to be invaluable for a web developer in the long run

Thomas Wang
Oct 15, 2020 · 7 min read
Image for post
Image for post
Humans are more interconnected than ever in history.

Motivation

The Internet vs. The World Wide Web (WWW)

Origins of the Web

Major Components of the Web

1. HTML — The Skeleton of a Webpage

Image for post
Image for post
Nothing too exciting… yet

2. CSS — Giving Webpages Some Style

Some basic CSS to modify the layout, font color, and background color
Image for post
Image for post
Still quite ugly… but at least not by 2000s standards!

3. JavaScript —Giving Webpages Dynamic Behavior

Try guessing what this code does!
Image for post
Image for post
With some simple JavaScript, we can add dynamic behavior to the webpage

4. HTTP/HTTPS — How Computers Talk to Each Other

Image for post
Image for post
The client initiates through requests. Source: MDN
Image for post
Image for post
Ever seen something like this? 404 is a “not found” status code sent by the server to indicate that the requested resource could not be found
Image for post
Image for post
Each row on the right is an HTTP(S) request made to retrieve some type of resource (could be HTML, CSS, vendor code, weather data, an image, etc.)

5. DNS — The Phonebook of the Internet

Image for post
Image for post
When the DNS Server fails to resolve a domain name

Putting Things Together

Just the Beginning of Your Journey

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store