Free course · Lesson 1 of 30

How Websites Work (and What You Will Build)

Type a web address, press Enter, and a page appears in under a second. Here is what really happens, and the roadmap to building your own site.

In this lesson

This is the first lesson of ManoraTech's free 30-video course that takes you from zero to a live website with HTML, CSS and JavaScript. You will learn the difference between a browser and a search engine, how a URL is built, how DNS finds a server's IP address, what an HTTP request and response are, and what status codes like 200 and 404 mean. Then you will see how HTML, CSS and JavaScript work together using a simple house analogy, the difference between front-end and back-end development, and the full roadmap of the course.

What you will learn

  • Explain what happens between typing a URL and seeing a page (browser, DNS, server, HTTP request and response).
  • Describe the jobs of HTML, CSS and JavaScript using the house analogy.
  • Tell front-end development apart from back-end development.
  • Know the course roadmap, the three projects, and how to use the code folder and quizzes.

Key takeaways

  • A website is a set of files (HTML, CSS, JavaScript and images) stored on a web server.
  • The browser, also called the client, requests those files over HTTP or HTTPS and draws the page.
  • One page is usually many requests: the HTML first, then CSS, JavaScript and images.
  • Front-end runs in your browser, back-end runs on the server. This course teaches front-end development.

What this lesson covers

No code yet. This video explains what happens between typing a web address and seeing a page, what HTML, CSS and JavaScript each do, the difference between front-end and back-end, and the roadmap for the whole course. You also peek inside a real website with View page source and DevTools, to see that every page is just HTML, CSS and JavaScript files.

What happens when you press Enter

  1. You type a URL, for example https://example.com/about.html, and press Enter.
  2. The browser asks DNS for the IP address of the domain example.com.
  3. The browser sends an HTTP request to the server at that IP address: "please send me /about.html".
  4. The server sends back a response: a status code (200 OK, or 404 Not Found) and the HTML file.
  5. The browser reads the HTML, requests the CSS, JavaScript and image files it mentions, and draws the page.

Glossary

WordMeaning
BrowserA program that requests web pages from servers and displays them: Chrome, Edge, Firefox, Safari.
ServerA computer that is always on and connected to the internet. It stores a website's files and sends them to anyone who asks.
URLUniform Resource Locator, the full address of a page: protocol (https://), domain (example.com) and path (/about.html).
DomainThe easy-to-remember name of a website, such as example.com.
DNSDomain Name System. It works like the contacts list on your phone: it turns a domain name into the server's IP address.
IP addressThe number address of a computer on the internet, for example 203.0.113.10.
HTTPHyperText Transfer Protocol, the rules for requests and responses between browsers and servers.
HTTPSHTTP + Secure: the messages are encrypted so nobody in between can read them. Chrome marks plain HTTP sites as "Not secure".
Status codeA number in every response: 200 = OK, 404 = Not Found.
HTMLHyperText Markup Language, the structure and content of a page (the walls and rooms of the house).
CSSCascading Style Sheets, the style: colours, fonts, spacing, layout (the paint and decoration).
JavaScriptThe programming language of the web. It handles the behaviour: menus, form checks, apps (the electricity and plumbing).
Front-endEverything that runs in the browser: what you see and click. Built with HTML, CSS and JavaScript. This course.
Back-endCode that runs on the server: databases, logins, payments. Languages such as Python, PHP, or JavaScript with Node.js.
Full-stackA developer who does both front-end and back-end.

Practice challenge

Open any website you like, right-click and choose View Page Source. Find three HTML tags (anything inside angle brackets) and write them in the comments. Bonus: press F12 and find the Console tab.

Show the solution

There is no single correct answer, because every website is different. Almost every page source contains these tags near the top:

  • <!DOCTYPE html>: "this is a modern HTML document" (always the first line)
  • <html>: wraps the whole page
  • <head>: information about the page that visitors do not see on the page itself
  • <title>: the text on the browser tab
  • <meta>: extra information, for example the character set
  • <link>: loads a CSS file, and <style> holds CSS directly in the page
  • <script>: loads or holds JavaScript
  • <body>: everything visitors see

Inside the body you will often find <h1> (main heading), <p> (paragraph), <a> (link), <img> (image) and <div> (a box). Big websites can look messy, because their code is often squeezed onto very long lines to load faster. That is normal. From Video 3 onward you will write these tags yourself.

Bonus: F12 opens DevTools. The tabs along the top are Elements, Console, Sources, Network and more (if you cannot see Console, click the » arrow). The Console may already show some messages or red errors from that website. That is normal, and they are not your fault. Never paste code into the Console that you do not understand; Chrome even shows a warning about this.

Quick quiz

Check what you learned. Pick an answer to see if it is right.

Question 1 of 3What does a web browser do?

Show the answer

C. Requests pages from servers and displays them The browser sends a request to a server, receives files (HTML, CSS, JavaScript) and draws the page.

Question 2 of 3Which language controls the structure and content of a web page?

Show the answer

A. HTML HTML is the skeleton: headings, paragraphs, images and links. CSS styles it and JavaScript adds behaviour.

Question 3 of 3What is the main job of DNS?

Show the answer

D. Turning a domain name into a server IP address DNS works like a phone book: it finds the IP address that belongs to a name like example.com.

Frequently asked questions

What happens when you type a website address?

Your browser asks DNS for the server's IP address, sends an HTTP request to that web server, and the server answers with HTML, CSS and JavaScript files that the browser turns into the page you see, usually in under a second.

What is the difference between a browser and a search engine?

A browser (Chrome, Edge, Firefox, Safari) is a program on your computer that opens web pages. A search engine (Google, Bing) is a website you open inside the browser to find pages.

What do HTML, CSS and JavaScript do?

HTML is the structure of a page (headings, text, images, links), CSS is the style (colours, fonts, layout) and JavaScript is the behaviour (menus, buttons, live updates). Think of a house: walls, paint and electricity.

What does DNS do?

DNS, the Domain Name System, works like the internet's phone book: it turns a name like example.com into the IP address of the server.

What do status codes 200 and 404 mean?

200 means OK, here is your page. 404 means Not Found, the page does not exist.

Do I need experience to start?

No. The course starts from zero. You only need a computer and two free tools, which you install in Video 2.

Read the full transcript

0:00 Welcome to ManoraTech

Hello, and welcome to ManoraTech! This is Web Development for Beginners, a free course in thirty short videos. This is video one: How Websites Work, and What You Will Build.

0:16 What happens when you press Enter

You type a web address, press Enter, and in less than a second a whole page appears. It feels like magic, but it is not. There is no coding today, just the big picture. In the next ten minutes, you will understand exactly what happens in that one second.

You will meet the three languages that every website is made of. And you will see the roadmap of this course, from your very first line of code to your own websites, live on the internet.

0:44 Browser, server and the URL

Every time you visit a website, two main players talk to each other. The first one is the browser. A browser is a program that asks for web pages and shows them to you. Chrome, Edge, Firefox and Safari are all browsers. The second player is the server.

A server is a computer that is always switched on and always connected to the internet. It stores the files of a website and sends them to anyone who asks. Common mistake: mixing up the browser and the search engine. Chrome is a browser, a program on your computer.

Google Search is a website that you open inside the browser. To ask for a page, the browser needs an address. That address is called a URL, short for Uniform Resource Locator. Look at this one. The https part at the start is the protocol, the set of rules the browser and the server use to talk.

Next comes the domain name, example dot com. A domain is the easy-to-remember name of a website. At the end is the path, about dot html, the exact file you want. But computers do not find each other by name. Every computer on the internet has a number address, called an IP address.

So first, your browser asks the DNS, the Domain Name System, which IP address belongs to example dot com. DNS works like the contacts list on your phone. You tap a name, and the phone finds the number for you.

2:15 Request and response in plain words

Now the browser knows where the server is, so it sends a request. A request is a short message that says: please send me the page about dot html. The rules for these messages are called HTTP, the HyperText Transfer Protocol. The server finds the file and sends it back.

That answer is called the response. Every response comes with a status code, a number that says how it went. 200 means OK, here is your page. 404 means Not Found, because the page does not exist. Today, almost every website uses HTTPS, where the S stands for secure.

The messages are encrypted, so nobody in between can read them. That is why Chrome shows the words Not secure next to sites that still use plain HTTP. And here is a surprise. One page is usually many requests. The HTML file arrives first. The browser reads it, finds links to CSS files, JavaScript files and images, and requests each of those too.

Then it puts everything together and draws the page on your screen. Your browser does all of this in a fraction of a second, every time you click a link. You will learn to use these developer tools in the next video. For now, remember the whole story: the browser asks, and the server answers.

Quick pause. If you are enjoying this video, please give it a like, share it with a friend who wants to learn web development, and subscribe to ManoraTech, so you never miss a lesson.

3:50 HTML, CSS and JavaScript: the house analogy

Those files are written in three languages, and each one has its own job. The easiest way to remember them is to think of a house. HTML is the structure: the walls, the rooms and the doors. In a web page, HTML says this is a heading, this is a paragraph, this is an image, and this is a button.

Without HTML, there is no page at all. CSS is the paint and the decoration. It controls colours, fonts, spacing, and where things sit on the screen. Same walls, completely different look. JavaScript is the electricity and the plumbing. It makes things work: a menu that opens when you tap it, a form that checks your email address, or a to-do list that remembers your tasks.

Let us peek inside a real page. Right-click on an empty part of any website and choose View page source. This is the HTML that the server sent. The words inside angle brackets are called tags, and you will write your own in Video 3.

Near the top you can usually spot the CSS, either inside a style tag or in a separate file. Every website you have ever visited is built from these same three languages. In this course, you learn all three, in that order. First HTML, then CSS, then JavaScript.

Each one builds on the one before.

5:14 Front-end vs back-end

Developers split a website into two parts. The front-end is everything that runs in your browser: what you see, read and click. It is built with HTML, CSS and JavaScript. The back-end runs on the server. It stores data in databases, checks passwords and handles payments, with languages like Python, PHP, or JavaScript with Node dot js.

People who do both are called full-stack developers. Do not worry about the back-end for now. This course teaches front-end development, the perfect place to start, because you see the result of every line straight away.

5:54 Your roadmap: 8 modules, 3 projects

Here is your roadmap: eight modules and thirty short videos. You are in module one, Getting Started. Module two is HTML, and module three is CSS. Module four is layouts with Flexbox and Grid, so your site looks great on phones too. Modules five and six are JavaScript: first the language itself, then making your pages interactive.

In module seven, you learn Git and GitHub and put your website online for free. And module eight is the final project, where everything comes together. Along the way, you build three projects. First, your own personal website. Second, two JavaScript apps: a to-do list and a GitHub profile finder.

Third, a complete business website for a café called Brew Haven. Every video has its own folder in the course files, with the finished code and the solution to the practice challenge. And every video ends with a quick quiz, so you can check what you learned.

A final quiz waits at the end of the course. If this lesson is helping you, a like, a share and a subscribe really help ManoraTech keep making free lessons like this one. Thank you! Now, let us keep going.

7:10 Practice challenge

Your turn. On your computer, open any website you like. Right-click on an empty part of the page and choose View page source, or press Control U. Find three HTML tags, so anything inside angle brackets, and write them in the comments below this video.

Bonus: press F12 to open the developer tools, and find the tab called Console. On a Mac, press Command Option I. Do not worry if the code looks confusing. Soon you will read it easily. Pause the video now and try it. The solution is in the course files linked in the description.

7:49 Quick quiz

Quick quiz time! Three questions about this video. Answer out loud, or pause the video and write your answers in the comments. Question one. What does a web browser do? A: Stores websites for other people to visit. B: Registers domain names. C: Requests pages from servers and displays them.

D: Writes HTML code for you. The answer is C. The browser sends a request to a server, receives files, HTML, CSS, JavaScript, and draws the page. Question two. Which language controls the structure and content of a web page? A: HTML. B: CSS. C: JavaScript.

D: Python. The answer is A. HTML is the skeleton: headings, paragraphs, images and links. CSS styles it and JavaScript adds behaviour. Question three. What is the main job of DNS? A: Making websites load faster. B: Checking your code for errors. C: Storing your passwords.

D: Turning a domain name into a server IP address. The answer is D. DNS works like a phone book: it finds the IP address that belongs to a name like example dot com.

9:25 Outro and next video

Today you learned how the browser, DNS and the server work together, and what HTML, CSS and JavaScript each do. The next video is Set Up Your Coding Tools (VS Code and Chrome). You will install everything you need, for free, and put your first page on the screen.

Subscribe, so you do not miss it. Thank you for watching ManoraTech! If you learned something new today, like this video, share it with a friend, and subscribe. I will see you in the next video. Goodbye!

Need a website for your business now?

This course teaches you to build one yourself. If you would rather have our team build a fast, conversion-focused site for you, we can help.

Free AuditBook a Call