The web browser you are using is out of date, please upgrade.

  • Skip to content
  • Select language
  • Skip to search

OpenClassrooms becomes an accredited US university.

Discover what this means for you
OpenClassrooms.comOpenClassrooms.com
Our training programs
Online and at your own pace.
Compare our training programs
Learn a profession
Degree programs
Acquire in-demand skills with real-world projects and one-to-one mentoring.
Discover a topic
Free-access courses
Broaden your knowledge with 500+ regularly updated courses
For employers
Train and recruit talents through an all-in-one space.
Discover our solution
Upskilling & reskilling
Enhance your knowledge
with a library of 500+ self-guided courses - SPARK
Promote hard and soft skills
with mentor-led intensive programs - BOOST
Support career progression
with mentor-led training programs - PIVOT
Build Your First Web Pages With HTML and CSS

Table of contents

  • Part 1

    Introduction to HTML and CSS

    • 1

      Write your first lines of HTML and CSS

    • 2

      Create content using HTML

    • 3

      Decorate your content with CSS

    • Quiz: Understand basic HTML, CSS, and their relationship

  • Part 2

    Create HTML text elements

    • 1

      Create headings for strong page structure

    • 2

      Add text in paragraphs

    • 3

      Strengthen and emphasize text

    • 4

      Add links and understand attributes

    • 5

      Organize elements in a list

    • 6

      Add images to your web page

    • 7

      Use the best images possible

    • Quiz: Test your knowledge of HTML text elements

  • Part 3

    Structure an entire page

    • 1

      Create general page structure

    • 2

      Understand block-level and inline elements

    • 3

      Group content with divs and spans

    • 4

      Add classes and ids to elements

    • 5

      Add breaks and lines to your content

    • 6

      Add a head to your HTML for information about your website

    • Quiz: Understand page structure in HTML

  • Part 4

    Spice up your content with CSS

    • 1

      Apply CSS to elements

    • 2

      Decide where to write CSS

    • 3

      Set your first colors

    • 4

      Understand color theory

    • 5

      Set fonts

    • 6

      Control font sizes, line spacing, and word spacing

    • 7

      Trick out your text

    • 8

      Get some practice building your first page with HTML and CSS

    • Quiz: Change a page's appearance with CSS

Understand basic HTML, CSS, and their relationship

Test your knowledge!

Create an account for free or log in to take this course and complete this quiz.
Create an accountLog in

Question 1

Question 2