Find a course
Age level: Teens (12–18)BeginnerTechnology & Programming

Build Your First Website

HTML, CSS and a little JavaScript, from a blank file to a site online

⏱ 1 h 55 min5 modules · 11 lessons62 practice questionsFinal exam: 20 questions
First name and initial are enough.
Included with this course

Your certificate for this course

Finish the 11 lessons (about 1 h 55 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons11 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Explain how a browser, a server and a URL work together to show a web page
  • Write a valid HTML page with headings, paragraphs, lists, links and images
  • Style a page with CSS selectors, colors, fonts and the box model
  • Lay out elements in rows and columns with flexbox
  • Make a page responsive with the viewport tag and media queries
  • Add simple interactivity with JavaScript events and the DOM
  • Organize, check and publish a static website for free while protecting your privacy

About this course

Every website you have ever visited, from a giant video platform to a tiny fan page, is built from the same three ingredients: HTML for the content, CSS for the look, and JavaScript for the behavior. The good news is that all three are plain text. You don't need to buy anything, install a huge program or ask permission. A free text editor and the browser you already have are enough to build a real site.

This free course takes you from a blank file to a finished personal website that other people can visit. You'll start by learning what actually happens when you type an address into a browser, then write your first HTML page by hand. Next you'll add headings, lists, links and images, and learn why a good alt text matters for people who use screen readers.

In the CSS module you'll pick colors and fonts, master the box model (the reason your spacing never looks right at first), and arrange things side by side with flexbox. Then you'll make the page work on phones with responsive design, and add a button that actually does something using a few lines of JavaScript.

Finally, you'll organize your files, check your site for common mistakes, and publish it for free on a static hosting service, while keeping your personal information safe.

The course is made for teens with no coding experience, but anyone who wants a friendly start can take it. Each lesson mixes short explanations with real code, quick checks and small coding challenges you run right in the page. Pass the final exam to earn a free certificate of completion.

Syllabus

  1. How the Web Works

    See what really happens when you open a web page, then write and open your very first HTML file.

    1. What Happens When You Open a Website11 min
    2. Your First HTML Page12 min
  2. HTML Building Blocks

    Fill your page with real content, from headings, paragraphs and lists to links, images and meaningful page sections.

    1. Headings, Paragraphs and Lists11 min
    2. Links, Images and Page Structure13 min
  3. Styling with CSS

    Give your page a personality with colors and fonts, control spacing with the box model, and build layouts with flexbox.

    1. CSS Rules, Colors and Fonts12 min
    2. The Box Model and Spacing12 min
    3. Layouts with Flexbox12 min
  4. Phones and Interactivity

    Make your site look good on every screen with responsive design, then make it respond to visitors with a few lines of JavaScript.

    1. Responsive Design for Phones12 min
    2. Add Interactivity with JavaScript14 min
  5. Finish and Publish

    Plan and polish a multi-page site, test it like a professional, then put it online for free without exposing your personal information.

    1. Plan, Organize and Polish Your Site12 min
    2. Publish Your Site Safely12 min
  6. Final exam and certificate

    20 questions drawn from a pool of 34. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

A website with a database, like a social network, sends something other than HTML, CSS and JavaScript to your browser.

True or false?

Show the answer

Answer: False

Dynamic sites use databases and server programs to build the page, but what finally travels to your browser is still HTML, CSS and JavaScript (plus images and other media). That's why learning these three languages is useful no matter what kind of site you want to make.

HTML
HyperText Markup Language, the language that describes the structure and content of a web page.
CSS
Cascading Style Sheets, the language that controls colors, fonts, spacing and layout.
JavaScript
The programming language that runs in the browser and makes pages interactive.
Browser
A program such as Chrome, Firefox, Safari or Edge that requests web pages and displays them.
Server
A computer that stores website files and sends them to browsers that request them.
URL
The address of a resource on the web, such as https://example.com/about.html.

Frequently asked questions

Do I need to install anything to build a website?

Not much. Any computer has a browser, and you can write HTML in a free code editor such as Visual Studio Code, or even in a basic text editor like Notepad. Online editors like CodePen let you practice without installing anything at all.

Is HTML a programming language?

Strictly speaking, no. HTML is a markup language: it labels content (this is a heading, this is a link) rather than giving step-by-step instructions. CSS is a style language. JavaScript is the real programming language of the three, and it's the one that adds logic and behavior.

How long does it take to build a first website?

A simple one-page site can be written in an afternoon once you know the basics from this course. A polished multi-page portfolio usually takes a few days of tinkering, mostly on styling and content.

Can I put my website online for free?

Yes. Static hosting services such as GitHub Pages, Netlify and Cloudflare Pages host plain HTML, CSS and JavaScript sites for free and give you an address you can share. A custom domain name usually costs money each year, but it's optional.

Should I use a website builder instead of learning HTML?

Builders are great for getting a site up fast, but they hide how things work and can be hard to customize. Knowing HTML and CSS lets you fix problems, understand what builders produce and move on to web development as a skill or career.

What should I learn after this course?

Good next steps are deeper CSS (grid layout, animations), more JavaScript (functions, arrays, fetching data), and version control with Git. Building small projects, like a quiz page or a photo gallery, teaches faster than reading alone.

Sources and further reading

Related courses

Adults & professionalsBeginner

HTML and CSS Basics

Build and style a real web page from scratch, from first tag to responsive layout

Technology & Programming
2 h 5 min12 lessonsCertificate
University studentsBeginner

APIs, REST and JSON Basics

How apps talk to each other, from HTTP requests to designing your own API

Technology & Programming
2 h 25 min12 lessonsCertificate
TeensBeginner

Python for Teens

Write real programs: games, quizzes and calculators from your first line of code

Technology & Programming
1 h 55 min10 lessonsCertificate
TeensBeginner

Make Games with JavaScript

Code real browser games with variables, loops, canvas drawing, keys and collisions

Technology & Programming
2 h11 lessonsCertificate
Adults & professionalsBeginner

JavaScript for Beginners

Variables, functions, arrays, objects, the DOM and async code

Technology & Programming
2 h 10 min12 lessonsCertificate
Adults & professionalsBeginner

Excel Fundamentals

Formulas, lookups, tables, PivotTables and charts from zero to confident

Technology & Programming
2 h 10 min12 lessonsCertificate