Web Development Worksheet: Final Test
Code tip (Read it like a browser): Find the topic: HTML, CSS, JavaScript or how the web works. Read the code line by line, the way a browser would. For sums and loops, write each step down and check it again.
NameDateTime takenScore ___ / 40
-
1.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="fruit"> Banana
<input type="checkbox" name="fruit"> Guava
<input type="checkbox" name="fruit"> Litchi
<input type="checkbox" name="fruit"> Mango
<input type="checkbox" name="fruit"> Papaya
</form> -
2.📱 The screen is 1366px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (min-width: 1024px) {
p {
font-size: 18px;
}
} (a) Yes (b) No - 3.🏷️ Which is the closing tag for <small>? (a) <small/> (b) <\small> (c) </small> (d) <small>
-
4.🖌️ What colour is behind the letters?
h2 {
font-size: 36px;
text-align: center;
color: orange;
background-color: black;
} (a) purple (b) black (c) orange -
5.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) body (b) My Hobbies (c) Welcome! (d) Thanks for visiting. -
6.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>Cricket is fun.</p>
<p>I love mangoes.</p> -
7.🔠 How many headings are in this code?
<h1>My pets</h1>
<h2>Our school trip</h2>
<h2>I love mangoes.</h2>
<p>Hello, world!</p> - 8.🔍 Which is the odd one out? (a) rounds box corners (b) adds space around boxes (c) lays out the page (d) reacts to a button click
- 9.🎯 Which sign starts an id selector? (a) & (b) @ (c) # (d) .
- 10.Which colour pair is easy to read? (a) pink on red (b) light grey on white (c) white on dark blue (d) blue on purple
- 11.Which of these has a closing tag? (a) <input> (b) <b> (c) <meta> (d) <br>
- 12.True or false: <aside> holds the logo and title. (a) True (b) False
-
13.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="200"> (a) A happy dog (b) width (c) cake.jpg (d) Birthday cake -
14.🔍 Which line is missing its closing tag?
line 1: <b>The red kite
line 2: <em>Hello, world!</em>
line 3: <h1>Cricket is fun.</h1> (a) line 1 (b) line 2 (c) line 3 -
15.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Good morning!</p> -->
<!-- <p>My pets</p> --> - 16.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
17.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>I love mangoes.</p>
<p>Hello, world!</p> - 18.True or false: <ul><li>Art</li></ul> goes in script.js. (a) True (b) False
-
19.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 6; i++) {
total = total + 2;
}
console.log(total); - 20.🔤 In “HTML”, what does the M stand for? (a) Mouse (b) Modern (c) Markup (d) Machine
- 21.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
-
22.🖌️ What colour are the letters?
p {
color: yellow;
background-color: orange;
font-size: 16px;
text-align: left;
} (a) yellow (b) orange (c) red - 23.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h2> or <h1>? (a) <h5> (b) <h2> (c) <h3> (d) <h1>
-
24.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>Rain today</p>
<p>Our school trip</p>
<p>Rain today</p>
<h3>Our school trip</h3> - 25.🌍 Which program shows a web page to us? (a) a web browser (b) a music player (c) a paint program (d) a calculator
- 26.⚡ What does alert() show? (a) a pop-up box (b) a picture (c) a new tab (d) a table
- 27.True or false: <ul> shows bullet points. (a) False (b) True
- 28.📱 Which tag helps phones show a page at the right size? (a) the title tag (b) the br tag (c) the viewport meta tag (d) the hr tag
- 29.♿ Does this help everyone, or make the page harder to use: write clear link text? (a) helps everyone (b) makes it harder
-
30.📱 The screen is 700px wide. Does the rule inside @media apply?
p {
font-size: 24px;
}
@media (min-width: 600px) {
p {
font-size: 28px;
}
} (a) Yes (b) No - 31.🔢 To build and share your first web page, which comes first: “plan what to show” or “test in a browser”? (a) plan what to show (b) test in a browser
- 32.What does background-color do? (a) colours behind the text (b) picks the font style (c) makes the text bold (d) makes letters bigger
- 33.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h6> or <h1>? (a) <h3> (b) <h5> (c) <h6> (d) <h1>
- 34.🧩 Which language gives the page structure? (a) HTML (b) JavaScript (c) CSS
- 35.⚡ Which JavaScript word shows a pop-up box? (a) if (b) alert() (c) console.log() (d) for
- 36.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h1> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h1>
- 37.True or false: a web browser shows line numbers. (a) False (b) True
-
38.📱 The screen is 820px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 600px) {
p {
font-size: 18px;
}
} -
39.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 6; i++) {
total = total + 3;
}
console.log(total); -
40.🖌️ What colour are the letters?
h1 {
background-color: red;
color: black;
font-size: 36px;
text-align: right;
} (a) black (b) orange (c) red
Answer key
- 5
- Yes
- </small>
- black
- Welcome!
- 3
- 3
- reacts to a button click
- #
- white on dark blue
- <b>
- False
- Birthday cake
- line 1
- 1
- has a closing tag
- 1
- False
- 12
- Markup
- <ol>
- yellow
- <h1>
- 2
- a web browser
- a pop-up box
- True
- the viewport meta tag
- helps everyone
- Yes
- plan what to show
- colours behind the text
- <h1>
- HTML
- alert()
- <h6>
- False
- 24
- 18
- black
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids