Lesson 1 of 3
Welcome & Setup
Welcome to Web Foundations — a short, hands-on taster that takes you from "I've never written a line of code" to a real, styled web page you build yourself. No setup, no fluff: you'll write code and see it run right here in the lesson. This lesson covers what the web is, the tools you need, and your very first page. Let's begin.
How the web actually works
That box above is live — it's real HTML being rendered by a browser, exactly like a real website. Edit it and re-run it; you're already writing the web. Here's the mental model behind it. A website is just files that a browser reads + displays. When you visit a site, your browser (Chrome, Safari, Firefox) requests files from a server (a computer somewhere that stores them) over the internet, then reads those files + paints them on your screen. The web = your browser fetching + displaying files. Three languages build every web page (learn them in order): HTML (the structure + content — headings, paragraphs, images, links; the "what it is" — this course's focus, lesson 2); CSS (the styling — colours, fonts, spacing, layout; the "how it looks" — lesson 3); and JavaScript (the behaviour/interactivity — buttons that do things, live updates; the "what it does" — a later course). A useful analogy: HTML is the skeleton (structure), CSS is the skin + clothes (appearance), JavaScript is the muscles (movement). This course covers the first two — the true foundations — because HTML + CSS alone can build a complete, real, deployable website.
Your tools (you already have them)
The wonderful thing about web development: the tools are free + you likely already have them. You need exactly two things. A web browser (to view your pages — Chrome/Firefox/Safari/Edge; you have one right now). And a text editor (to write your code — for real projects, install VS Code (free, the industry standard); to just learn + experiment, the runnable boxes in these lessons are your editor — write code, hit run, see it live, no install needed). That's the entire setup. Unlike most software, you don't need expensive programs or a powerful computer — a browser + a text file is a complete web-development environment. An HTML file is just a plain text file whose name ends in .html (like index.html). You write HTML tags in it, open it in a browser, + the browser renders it as a web page. index.html is the special name browsers look for as a site's home page.
Your first page, explained
This is the skeleton every HTML page shares — memorise its shape: <!DOCTYPE html> (tells the browser "this is modern HTML" — always the first line); <html> (wraps the entire page); <head> (invisible setup info — the <title> shows in the browser tab, plus metadata + links to CSS; nothing here appears in the page body); and <body> (everything VISIBLE on the page — your headings, text, images, links — all your content goes here). Inside <body>, notice the pattern: <h1>About Me</h1> is an element — an opening tag <h1>, some content, + a closing tag </h1> (the slash marks the close). <h1> is a big heading; <p> is a paragraph; <strong> makes text bold. You write content, wrap it in tags to give it meaning, + the browser displays it accordingly. That's the whole game — + it's exactly what lesson 2 dives into. Change "About Me" to your name and re-run the box; you're editing a real web page.
The mistake beginners make
The first mistake is thinking you need special/expensive software — believing web development requires costly tools or a powerful machine, when a free browser + a text file is a complete setup; you already have everything. The second mistake is confusing the three languages — mixing up what HTML, CSS, + JavaScript each do; remember HTML = structure, CSS = style, JavaScript = behaviour (skeleton, skin, muscles). The third mistake is skipping the skeleton — forgetting <!DOCTYPE html>, <html>, <head>, or <body>, so pages behave oddly; every page shares that same frame. And fearing you'll break something — hesitating to experiment; you can't break anything by editing a practice box — change it, run it, learn from what happens. And only reading, never running — passively reading code without typing + running it; the whole point is hands-on — edit every box. Know the tools are free, distinguish the three languages, use the skeleton, experiment fearlessly, and run every example.
Your turn
Your turn
- Understand how the web works: a website is just FILES a BROWSER reads + displays - when you visit a site, your browser fetches files from a server and paints them on screen. The web = your browser fetching + displaying files.
- Learn the three languages + their roles: HTML (structure/content - the skeleton), CSS (styling/appearance - the skin + clothes), JavaScript (behaviour/interactivity - the muscles). This course covers HTML + CSS, the true foundations.
- Know your (free) tools: a web BROWSER to view pages (you have one) + a TEXT EDITOR to write code (VS Code for real projects, or the runnable boxes here to learn) - and that an HTML file is just a plain text file ending in .html (index.html = the home page).
- Learn the page skeleton every HTML file shares: (modern HTML), (wraps everything), (invisible setup -
/metadata), (everything VISIBLE - your content goes here). - Edit + run the live boxes: change the text in the 'About Me' example above to your own name/details and re-run it - you're editing a real web page. Experiment fearlessly; you can't break anything.
Key points
- A WEBSITE = FILES a BROWSER reads + displays. When you visit a site, your BROWSER (Chrome/Firefox/Safari) fetches files from a SERVER over the internet and paints them on screen. The web = browser fetching + displaying files.
- THREE LANGUAGES build every page (in order): HTML (structure/content — 'what it is' — this course), CSS (styling/appearance — 'how it looks' — this course), JavaScript (behaviour/interactivity — 'what it does' — later). Analogy: HTML = skeleton, CSS = skin/clothes, JS = muscles. HTML + CSS alone build a complete, real website.
- TOOLS (free — you already have them): a BROWSER (to view) + a TEXT EDITOR (to write — VS Code for real work, or the runnable lesson boxes to learn). An HTML file = a plain text file ending in .html; index.html = the special home-page name.
- The PAGE SKELETON every HTML file shares: (modern HTML — first line), (wraps the page), (invisible setup —
shows in the tab, plus metadata/CSS links), (everything VISIBLE — your content). ELEMENT pattern:content
= opening tag + content + closing tag (slash = close). - The mistakes: thinking you need special/expensive software (a free browser + text file is enough), confusing the three languages (HTML/CSS/JS = structure/style/behaviour), skipping the skeleton, fearing you'll break something (experiment freely), and only reading without running (edit + run every box — it's hands-on).
Q&A · 0
Enrol to ask questions and join the discussion.
No questions yet — be the first to ask.