Build Your First Website
HTML, CSS and a little JavaScript, from a blank file to a site online
Technology & ProgrammingBuild and style a real web page from scratch, from first tag to responsive layout
Finish the 12 lessons (about 2 h 5 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.
Every website you have ever visited, from a one-page portfolio to a giant online store, is built on two languages. HTML describes what is on the page: headings, paragraphs, images, links and forms. CSS describes how it looks: colors, fonts, spacing and layout. Learn these two, and you can read the source of any web page and build your own from a blank file.
This free course takes you from zero to a complete, responsive page. You'll start with how the web works: what a browser does with an HTML file and how a page travels from a server to your screen. Then you'll write real HTML, including document structure, headings, links, lists, images, tables and forms, and learn to use semantic elements that make pages accessible to screen readers and understandable to search engines.
In the CSS half, you'll write selectors, understand the cascade and specificity (the rules that decide which style wins), work with colors, units and fonts, and master the box model, the key to controlling space on a page. You'll build layouts with Flexbox and CSS Grid, then make everything adapt to phones, tablets and desktops with media queries and a mobile-first approach. The last lesson walks through checking, organizing and publishing a page for free.
The course is for complete beginners: career changers, designers who want to understand code, marketers and small business owners who edit their own sites, and anyone curious about how web pages work. You don't need to install anything; any text editor and browser will do, and a few short coding exercises run right in the page. Each lesson mixes clear explanations and real code examples with spot-the-bug puzzles, calculators and quick checks, and you can earn a free certificate by passing the final exam.
See what happens between typing an address and seeing a page, and write your first complete, valid HTML document.
Mark up text, links, lists, images, tables and forms, and use semantic elements so every visitor and search engine understands your page.
Write CSS rules, target elements with selectors, understand which styles win, and control color, type, sizing and spacing.
Arrange elements in rows, columns and full page layouts using the two modern CSS layout systems.
Make pages work on every screen size, then check, organize and publish your site for the world to see.
20 questions drawn from a pool of 32. Score 70% or more to pass; retakes get a fresh set of questions.
A visitor goes to https://bakery.example/menu/. Which file will the server usually send?
Answer: B. menu/index.html
When a URL path ends with a folder, web servers by convention send that folder's index.html file. That's why home pages and section pages are usually named index.html. CSS files are requested separately, after the HTML is read.
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 sheet language. JavaScript is the programming language of the web. Together the three build almost every website.
Only a text editor and a web browser. Save a file with the .html extension, open it in your browser, and you will see your page. A free code editor such as VS Code adds helpful features like color highlighting and auto-completion, but it is optional.
Yes, for most people. JavaScript changes HTML and CSS on the page, so you need to understand what it is changing. Many useful sites need little or no JavaScript at all.
Both, for different jobs. Flexbox is best for arranging items in one direction, such as a navigation bar or a row of buttons. Grid is best for two-dimensional layouts with rows and columns, such as a page layout or a photo gallery. Many pages use Grid for the overall layout and Flexbox inside components.
Builders and AI tools can generate pages quickly, but knowing HTML and CSS lets you fix what they get wrong, customize beyond their templates, make pages accessible and understand what is happening when something breaks.
You can learn the essentials covered here in a few focused sessions and build a simple page right away. Becoming comfortable with layout and responsive design usually takes a few weeks of regular practice on your own projects.
Yes. Several services host static HTML and CSS sites for free, usually with a free subdomain. A custom domain name typically costs a small yearly fee.
HTML, CSS and a little JavaScript, from a blank file to a site online
Technology & ProgrammingHow apps talk to each other, from HTTP requests to designing your own API
Technology & ProgrammingVariables, functions, arrays, objects, the DOM and async code
Technology & ProgrammingHardware, files, the internet, email and staying safe, from zero
Technology & ProgrammingFormulas, lookups, tables, PivotTables and charts from zero to confident
Technology & ProgrammingWrite real programs with variables, loops, lists, dictionaries and functions
Technology & Programming