No account needed · Learn something today

CSS, spacing and visual hierarchy

Web Design · Free lesson 3 of 3 · Foundation level · Video 0:32 + practice

Your learning plan

Watch the narrated lesson or read the teaching notes, try the worked example, then answer three practice questions. Video: 0:32. Allow about 5–10 additional minutes for the sample activity and quiz, or longer when needed.

Watch · See · Practise

Watch this lesson’s visual explainer

32-second silent teaching clip with on-screen text and English captions. Tap Play; pause to read. Full teaching notes follow the visual guide.

Open this lesson video directly

See the steps: CSS, spacing and visual hierarchy

Read the worked example and write your expected result. Then: Describe the difference between padding and margin and style a readable card. Then: Record your attempt before checking the answer, then explain any correction.
Illustrated guided steps for this lesson. Read each step, predict the result, then try the written activity.
Read the video transcript

Understand the idea

CSS controls presentation. Consistent spacing, readable typography and sufficient contrast help users scan content. The box model includes content, padding, border and margin.

Worked example

A card with generous padding separates the text from its border and surrounding cards.

Try it yourself

Describe the difference between padding and margin and style a readable card.

Open the illustrated guide

This visual recap supports the full lesson. It is not an instructor recording.

Understand the idea

CSS controls presentation. Consistent spacing, readable typography and sufficient contrast help users scan content. The box model includes content, padding, border and margin. When a layout overflows, inspect its total size and inherited styles before adding arbitrary offsets.

Worked example

A card with generous padding separates the text from its border and surrounding cards.

Now check what you learned: Answer three practice questions below. Choose an answer, then press Next Question. The last question shows your score.

Check your understanding

Sample lesson 3 of 3 · 3 practice questions

Pass each sample lesson’s quiz to build your practice progress.

Answer all 3 questions, then check your score below. This is a practice check, not the full course or an official certification exam.

Question 1 of 3: Describe the difference between padding and margin and style a readable card.

Question 1 of 3

Optional video learning

Learn with video

Responsive Web Design · HTML and CSS video course

Source: freeCodeCamp · Supplementary video

Watch for: Look for an example related to “CSS, spacing and visual hierarchy”. Pause and explain how it connects to this lesson.

For a long course, choose the relevant chapter; you do not need to watch the entire video before continuing. This is a supporting program video and may cover only selected topics; it is not a separate recording of every lesson. Videos are optional; use the written lesson and exercises too.

Watch on the source website ↗

If playback is unavailable, use the source link. Look for captions or a transcript on the provider’s page.

Optional extra practice · write your answer

Your turn

Describe the difference between padding and margin and style a readable card.

Compare your answer

Padding is inside the border; margin separates the element from neighbors. Use consistent spacing and readable line height.

More learning options and student rewards

Your sample answer is not submitted. Passed sample quizzes are remembered only in this browser when storage is available; this does not complete the full course or approve a reward.