Udemy

Free HTML and CSS Foundations Course: Understand Layout and Motion

A layout is easier to fix when you can explain how the browser arrived at it. A selector chooses an element, a box determines its space, and a layout system positions it among neighboring elements. Learning those relationships gives a beginner a more useful starting point than memorizing a collection of visual effects.

Free learning access

Listed as Free on Udemy when checked on 6 November 2026. No coupon or subscription trial is required for the listed lessons. Enrollment needs a Udemy account; availability can change.

About this course

A layout is easier to fix when you can explain how the browser arrived at it. A selector chooses an element, a box determines its space, and a layout system positions it among neighboring elements. Learning those relationships gives a beginner a more useful starting point than memorizing a collection of visual effects.

Michael Leung’s free HTML and CSS Foundations course offers a quick introduction through compact examples. Its thirteen sections include twenty-seven videos totaling roughly sixty-four minutes, plus two article entries. The sequence moves from basic markup and file paths into selectors, spacing, positioning, Flexbox, media queries and animation. It suits a first encounter with these concepts or a short refresher, with basic software-download familiarity expected.

Official course HTML and CSS Foundations
Created by Michael Leung
Platform Udemy
Language English
Level Beginner
Listed duration 65 minutes; 27 lectures across 13 sections
Completion terms Not included with a new free enrollment

What you’ll learn

Connect HTML elements with CSS selectors and understand how project paths point to files. Examine the box model, CSS units, colors and fonts. Compare positioning with Flexbox, adapt an arrangement with media queries, and distinguish a keyframe animation from a transition between states.

Skills you’ll gain

  • HTML elements
  • Relative file paths
  • CSS targeting
  • Layout spacing
  • Flexbox axes
  • CSS motion

Build a small experiment you can inspect

The opening markup lessons introduce the head and body of a document, text, comments, links, lists, inputs and images. Spans and divs then provide containers for applying styles. Keep the purpose of each element in view while trying an example. A heading communicates structure, while a generic container groups content without adding that same meaning.

Try a separate practice exercise: make a small page showing three fictional workshop sessions. Each card can contain a session title, a short description and a link to another local page. Put the stylesheet and images in their own folders, then explain each relative path from the file where it is used. This editorial exercise extends the concepts; it is not an assignment supplied by the instructor.

Give layout rules a clear purpose

The selector lessons move from element names into shared rules, classes, IDs, descendants and pseudo-classes. Experiment with a common class for all session cards and a more specific rule for one state. Compare selecting any matching descendant with selecting only a direct child. Keeping the HTML visible beside the stylesheet makes those relationships easier to trace.

Next, use the box-model examples to distinguish content, padding, border and margin. Change just one value and observe which boundary moves. The units lesson adds another question: what is a measurement relative to? Pixels, root-relative units and viewport units serve different purposes. A value that looks comfortable in one window may behave differently when text size or viewport dimensions change.

Adapt the page before adding motion

The course introduces static, relative, absolute and fixed positioning before moving into Flexbox. For the workshop cards, begin with ordinary document flow, then try a flex container and allow wrapping. Identify the main axis before using alignment properties. Its direction follows flex-direction; justify-content is not a universal horizontal-alignment command. Changing from a row to a column changes the relationship you need to reason about.

Media queries offer a way to adapt the arrangement when conditions change. Reduce the available width and decide when the cards need a different presentation, using the content as your guide. Keep navigation order understandable and check that text remains readable. A breakpoint copied from one demonstration is a starting example, not a guarantee that every page fits well at that size.

The final demonstrations explore keyframes and transitions, including a changing shape and an expanding input. Treat these as small experiments with timing and state. As an additional modern practice, consider a reduced-motion preference when adding nonessential animation. CSS can detect that preference so you can reduce or remove motion while preserving the information and controls.

This recording was last updated in June 2017, and its setup belongs to that period. Atom was sunset in December 2022, so use a maintained text editor for practice instead of assuming the old editor-package workflow remains supported. The HTML and CSS concepts can be explored separately from those installation details. The two article bodies are not described here, and no certificate, complete production website or professional qualification is promised.

Enroll Now ↗

Related courses for your next step

Compare course focus, level and study time
Compare the published course outlines. A lower level is a preparation option, not a required prerequisite.
Course Level Focus Study time
This course — Free HTML and CSS Foundations Course: Understand Layout and Motion Beginner HTML elements · Relative file paths · CSS targeting 65 minutes (Udemy listing)
Free Bash Scripting Course: Write Your First Linux Script Beginner Script setup · Interpreter selection · Shell builtins 44 minutes (Udemy listing)
Free SQL to Python pandas Course: From Queries to DataFrames Beginner DataFrame selection · Boolean filtering · Removing duplicates 43 minutes (Udemy listing)

Frequently asked questions

Is this a complete web-development program?

No. It is a compact introduction to HTML and CSS concepts, including layout and animation. Further practice is needed beyond the demonstrations.

Should I install the historical editor setup?

The setup is from 2017. Atom was sunset in 2022; use a maintained text editor and adapt the local preview workflow.

Does justify-content always align items horizontally?

No. It works along the flex container’s main axis, which depends on flex-direction. Identify that axis before choosing alignment rules.

Share this course

Questions & discussion

Share a useful question or correction. Comments appear after moderation. Please avoid personal or sensitive information.

Add to the discussion

Your email address will not be published. Required fields are marked *