Building Your First Website with HTML and CSS
Write, style, and publish a real multi-section web page from a blank folder in seven days.
This course is for members
$9 unlocks every course in the library, this one included, plus a credit to build a topic of your own and at least 10 new courses every month.
What you will learn about Building Your First Website with HTML and CSS
The 7-day sprint
- A Page Is Just a File. A website starts as a plain text file named
index.htmlthat a browser opens and draws. - Elements, Attributes, and Content. HTML marks up content by wrapping it in elements, and attributes add extra information to an element.
- Structure That Means Something. Wrap regions of the page in semantic elements and keep headings in order, so the structure makes sense to browsers, search engines, and screen readers.
- CSS Rules and Which One Wins. CSS is a list of rules that match elements by selector and set property values, and when two rules collide the cascade decides the winner.
- Every Element Is a Box. CSS draws each element as a box made of content, padding, border, and margin, and
box-sizingdecides whatwidthmeasures. - Laying Out With Flexbox. Flexbox arranges a container's children along one axis, which is how you build navigation bars, card rows, and side by side sections.
- Responsive, Valid, and Online. Make the page work at any screen width, check the markup with a validator, then publish the folder so it has a public address.
The 80/20: the 7 concepts that matter most
- Markup describes meaning, not appearance
- The document skeleton and the two file split
- Selectors, the cascade, and inheritance
- The box model
- Normal flow and flexbox
- Responsive by default
- Semantics, accessibility, and validation
The core idea, explained like you are 5
HTML labels what each piece of your content is, and CSS says how the labeled pieces should look, because the browser turns those labels into nested boxes it draws on the screen.
Then the quiz and the ladder
10 questions that correct you when you are wrong, and beginner, intermediate, advanced levels, each with a practical exercise.
Created Sep 12, 2026. No mistakes have been reported by learners.
Written from these sources
- HTML: Creating the content - Learn web development | MDN, developer.mozilla.org. days 1 and 2, first page and elements.
- Basic HTML syntax - Learn web development | MDN, developer.mozilla.org. element and attribute terminology, day 2.
- Introduction to the CSS box model - MDN Web Docs, developer.mozilla.org. day 5 box areas and edges.
- The box model - Learn web development | MDN, developer.mozilla.org. day 5 standard versus alternate box model.
- CSS box model - MDN Web Docs, developer.mozilla.org. box model properties overview in 80/20.
- Handling conflicts - Learn web development | MDN, developer.mozilla.org. day 4 cascade, specificity, inheritance.
- Introduction to the CSS cascade - MDN Web Docs, developer.mozilla.org. expert stage cascade order.
- Specificity - CSS - MDN Web Docs, developer.mozilla.org. specificity scores and source order tiebreaks.
- Inheritance - CSS - MDN Web Docs, developer.mozilla.org. inherited properties in ELI5 stages.
- Responsive web design - Learn web development | MDN, developer.mozilla.org. day 7 flexible grids and breakpoints.
- Media query fundamentals - Learn web development | MDN, developer.mozilla.org. day 7 media query syntax and viewport tag.
- H42: Using h1-h6 to identify headings | WAI | W3C, w3.org. day 3 heading markup guidance.
- H69: Providing heading elements at the beginning of each section of content | WAI | W3C, w3c.github.io. day 3 headings per section, no skipped levels.
- Content Structure | Web Accessibility Initiative (WAI) | W3C, w3.org. semantic section and article usage, day 3.
- G115: Using semantic elements to mark up structure | WAI | W3C, w3.org. semantics concept in 80/20.
- GitHub Pages documentation - GitHub Docs, docs.github.com. day 7 publishing to GitHub Pages.
- Creating a GitHub Pages site - GitHub Docs, docs.github.com. day 7 static files and publishing source.
- box-sizing CSS property - CSS | MDN, developer.mozilla.org. content-box versus border-box math in quiz and lesson.
- Landmark Regions | APG | WAI | W3C, w3.org. semantic landmarks question and advanced lesson one.
- H101: Using semantic HTML elements to identify regions of a page | WAI | W3C, w3.org. main, nav and footer landmark guidance.