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.🛡️ Online: is it safe to click prize links? (a) not safe (b) safe
- 2.📝 Which input type is for an email address? (a) text (b) radio (c) password (d) email
- 3.True or false: HTML on its own cannot keep a high score. (a) False (b) True
-
4.♿ Is this heading order correct (no level skipped)?
<h1> → <h1> → <h2> → <h2> (a) Yes (b) No - 5.True or false: .big is a class selector. (a) True (b) False
-
6.⚖️ What colour is the text of this element?
<h1 class="note" id="intro">Hi</h1>
CSS:
.note { color: white; }
.note { color: yellow; } (a) yellow (b) white (c) green (d) red -
7.🔍 Which line is missing its closing tag?
line 1: <i>Cricket is fun.</i>
line 2: <h2>The red kite
line 3: <h3>I love mangoes.</h3> (a) line 3 (b) line 2 (c) line 1 - 8.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) test in a browser (b) publish it online (c) write the HTML (d) add CSS styles
-
9.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 190px;
padding: 15px;
border: 1px solid black;
margin: 20px;
} -
10.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<h4>I love mangoes.</h4>
<p>Our school trip</p> - 11.⚡ Where does console.log() show its output? (a) on the printer (b) on the title bar (c) in the address bar (d) in the console
-
12.🔁 What is the LAST number this code prints?
for (let i = 0; i < 7; i = i + 4) {
console.log(i);
} - 13.🚀 Which program lets you see your web page while you build it? (a) a calculator (b) a web browser (c) a music player (d) a photo viewer
-
14.🔗 Which address opens when you click this link?
<a href="games.html">Play games</a> (a) games.html (b) about.html (c) Play games (d) contact.html -
15.⚖️ What colour is the text of this element?
<p class="note" id="main">Hi</p>
CSS:
p { color: purple; }
p { color: green; } (a) black (b) purple (c) red (d) green - 16.🧭 Which semantic tag holds a side box of tips? (a) <aside> (b) <article> (c) <main> (d) <header>
-
17.🔍 One closing tag is missing. Which one?
<b>My pets</b>
<small>Our school trip
<em>The red kite</em> (a) </b> (b) </small> (c) </h3> (d) </em> - 18.📝 Which input type picks a day? (a) radio (b) checkbox (c) text (d) date
- 19.🧭 Which semantic tag holds the main content? (a) <nav> (b) <aside> (c) <header> (d) <main>
-
20.🔗 Which words do you click on?
<a href="news.html">About us</a> (a) Contact us (b) About us (c) href (d) news.html - 21.Which of these goes in the head? (a) <h1> (b) <img> (c) <title> (d) <p>
- 22.True or false: <ul> is an unordered list. (a) False (b) True
- 23.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a href="about.html">
- 24.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
-
25.📱 The screen is 320px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 480px) {
p {
font-size: 22px;
}
} - 26.🌗 Is white on dark blue easy or hard to read? (a) easy to read (b) hard to read
- 27.🔢 To build and share your first web page, what comes right after “add CSS styles”? (a) publish it online (b) plan what to show (c) test in a browser (d) write the HTML
-
28.🔠 How many headings are in this code?
<h1>My pets</h1>
<h2>Fun facts</h2>
<h2>I love mangoes.</h2>
<p>Cricket is fun.</p> - 29.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
- 30.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 31.🎯 Which element does the selector .note style? (a) <h2 class="note"> (b) <li class="red"> (c) <h2 class="big"> (d) <h2 id="note">
- 32.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <tr> (c) inside a <p> (d) inside the <head>
-
33.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (max-width: 480px) {
p {
font-size: 10px;
}
} - 34.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 255 (c) 1000 (d) 100
- 35.♿ Who uses a screen reader? (a) only robots (b) only teachers (c) only coders (d) people who are blind
-
36.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Try this poha.</p>
</body>
</html> (a) index.html (b) Art Gallery (c) Try this poha. (d) Welcome! - 37.📝 Does <title> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 38.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h1> or <h3>? (a) <h5> (b) <h1> (c) <h4> (d) <h3>
- 39.🧩 Which language rounds box corners? (a) JavaScript (b) CSS (c) HTML
-
40.⚖️ What colour is the text of this element?
<h1 class="star" id="intro">Hi</h1>
CSS:
h1 { color: black; }
h1 { color: red; } (a) red (b) black (c) yellow (d) blue
Answer key
- not safe
- True
- Yes
- True
- yellow
- line 2
- write the HTML
- 222
- 2
- in the console
- 4
- a web browser
- games.html
- green
- <aside>
- </small>
- date
- <main>
- About us
- <title>
- True
- <a href="about.html">
- in the body
- 22
- easy to read
- test in a browser
- 3
- <img>
- No
- <h2 class="note">
- inside a <tr>
- 10
- 255
- people who are blind
- Art Gallery
- has a closing tag
- <h1>
- CSS
- red
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids