Module 3 · Practice
Practice questions
Three difficulty levels.
Section A — Easy
What does HTML stand for? What does it describe — structure or appearance?
Match each HTML tag to its meaning: <p>, <a>, <img>, <ul>.
What four parts make up the CSS box model?
What is the purpose of the alt attribute on an <img> tag?
Section B — Medium
Write the HTML to create a clickable link to https://example.com with the visible text "Visit us".
Write a CSS rule that makes all paragraphs blue with 20px padding.
Spot the error and fix it:
<p>Hello world<p>
Choose the best image format for each use, with reason:
Section C — Hard
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.
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.
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?