Professional Business Website · Foundation · Path B
How Websites Work: HTML, CSS, JavaScript and Hosting
Understand what happens when someone opens a website on a phone, and what HTML, CSS, JavaScript and a web host each do in this project.
What you need
A computer (Windows, macOS or Linux) with Visual Studio Code (free) and a current web browser such as Chrome or Firefox. A smartphone is used for testing.
In this lesson you will
- Describe the request from browser to server and back
- Explain the roles of HTML, CSS, JavaScript and hosting
Key concepts
browserweb serverHTMLCSSJavaScripthostingdomain
The lesson
When a customer types an address or taps a link, the browser asks a web server for files. The server sends back HTML, CSS, JavaScript and images, and the browser assembles them into the page. Every file is downloaded over the customer's data connection, which is why size matters.
HTML describes the content and its meaning (headings, paragraphs, images, links). CSS controls appearance (colours, fonts, layout). JavaScript adds behaviour (opening a menu). A good site still works, in a basic way, if JavaScript fails.
Hosting is a computer that stores your files and serves them to the world. In this project you use GitHub Pages, which is free for public websites. A domain name (such as amanitailoring.com) is optional and is paid for separately.
Step by step
- Open any business website on your phone and on a computer.
- On the computer, press F12 to open the developer tools and look at the Network tab while reloading.
- Note which files were downloaded and their sizes.
- Write one sentence each on what HTML, CSS and JavaScript do on that site.
Practice activity
Inspect two business websites with developer tools and write a short comparison of how many files and how much data each page needs.
Expected result: A comparison note listing file counts, total size and one observation about speed on a phone.
Common mistakes
- Thinking a website must use a paid builder or a database; a small business site can be plain HTML and CSS
- Ignoring page size because the site loads quickly on the office Wi-Fi
Check your understanding
-
What does CSS control?
Show answer
The appearance of the page: colours, fonts, spacing and layout.
-
What does a web host do?
Show answer
Stores the site's files and sends them to visitors' browsers.
Further learning
Projects are instructor-guided: an instructor sets milestones, checks your work and gives feedback, online or in person. Self-study of the public lessons does not lead to a certificate. Enrolment and fees follow the Academy's existing policies — contact the Academy.