Module 3 · Practice

Practice questions

Three difficulty levels.

Section A — Easy

01

What does HTML stand for? What does it describe — structure or appearance?

02

Match each HTML tag to its meaning: <p>, <a>, <img>, <ul>.

03

What four parts make up the CSS box model?

04

What is the purpose of the alt attribute on an <img> tag?

Section B — Medium

05

Write the HTML to create a clickable link to https://example.com with the visible text "Visit us".

06

Write a CSS rule that makes all paragraphs blue with 20px padding.

07

Spot the error and fix it:

<p>Hello world<p>
08

Choose the best image format for each use, with reason:

(a) Holiday photo (b) Logo with transparent background (c) Icon that should still be sharp at any size

Section C — Hard

09

Write a complete HTML page (html, head with title, body) that has a heading "My Pets", one paragraph and an unordered list of three pets.

10

Look at this page in a browser: dark grey body text on a black background, very small font. Suggest three CSS changes that would improve readability and explain each.

11

You're asked to make a website's navigation bar links open in a new tab. What HTML attribute do you need, and where do you add it?

Check answers
← Back Notes Next → Answers