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.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) shows line numbers (d) opens web pages for us
-
2.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="350"> (a) moon.png (b) Our school bus (c) width (d) The full moon - 3.🔍 Which is the odd one out? (a) puts a picture on a page (b) gives the page structure (c) sets colours and fonts (d) makes a form box
-
4.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="350"> (a) A happy dog (b) width (c) dog.jpg (d) The full moon - 5.📊 Which tag makes a heading cell? (a) <th> (b) <table> (c) <td> (d) <tr>
-
6.🌍 What is the path in this URL?
http://kids.example.org/art/gallery.html (a) /art/gallery.html (b) /news/today.html (c) http (d) kids.example.org -
7.🎯 Which CSS selector matches this element?
<h2 class="big" id="top">Hello</h2> (a) h2 (b) #intro (c) .red (d) #big - 8.Which of these is not safe to do online? (a) log out on shared PCs (b) use a nickname in games (c) share your OTP (d) check for https first
-
9.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 50px;
padding: 30px;
border: 5px solid black;
margin: 5px;
} - 10.🌈 In #rrggbb, which colour do the first two digits give? (a) green (b) red (c) black (d) blue
-
11.💬 Which text will NOT show on the page?
<!-- <p>Fun facts</p> -->
<p>Good morning!</p>
<p>Rain today</p>
<p>The red kite</p> (a) The red kite (b) Rain today (c) Fun facts (d) Good morning! - 12.📝 Which tag holds a whole form? (a) <table> (b) <form> (c) <input> (d) <ol>
-
13.📊 How many cells does this table have in all?
<table>
<tr><td>Papaya</td><td>Grapes</td><td>Litchi</td></tr>
<tr><td>Banana</td><td>Orange</td><td>Guava</td></tr>
<tr><td>Banana</td><td>Mango</td><td>Orange</td></tr>
<tr><td>Orange</td><td>Mango</td><td>Orange</td></tr>
</table> - 14.🔒 What does the lock (HTTPS) in the address bar mean? (a) the site is fast (b) the site is free (c) the site is a game (d) the data is scrambled
-
15.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 90px;
padding: 15px;
border: 2px solid black;
margin: 5px;
} - 16.🌈 Which hex code is white? (a) #ffffff (b) #00ff00 (c) #ffff00 (d) #ff0000
- 17.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
18.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 80px;
padding: 20px;
border: 2px solid black;
margin: 15px;
} -
19.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Orange</li>
<li>Guava</li>
<li>Jamun</li>
</ol> -
20.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Guava</li>
</ol> (a) numbers (b) bullets - 21.🔁 When does the else part run? (a) always (b) never (c) when if is false (d) when if is true
-
22.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Play games</a> (a) in a new tab (b) in the same tab - 23.🌈 Which hex code is red? (a) #ff0000 (b) #ffffff (c) #ffff00 (d) #000000
-
24.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (max-width: 768px) {
p {
font-size: 10px;
}
} - 25.True or false: the URL is the page’s address. (a) True (b) False
- 26.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
- 27.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
-
28.⚖️ What colour is the text of this element?
<h1 class="big" id="logo">Hi</h1>
CSS:
h1 { color: white; }
.big { color: blue; } (a) black (b) red (c) white (d) blue -
29.🔍 One closing tag is missing. Which one?
<h1>My best friend
<i>Rain today</i>
<h2>Good morning!</h2> (a) </h2> (b) </i> (c) </h3> (d) </h1> - 30.🌈 In #220000 the red part is the hex number 22. What is it as a normal number?
- 31.What is <input type="radio"> for? (a) takes only numbers (b) lets you pick only one (c) hides what you type (d) is for one line of words
- 32.True or false: HTML on its own can show paragraphs. (a) True (b) False
- 33.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) white (c) blue (d) yellow
-
34.🔗 Which address opens when you click this link?
<a href="https://example.com">Take the quiz</a> (a) maths.html (b) Take the quiz (c) https://example.com (d) art.html - 35.Which of these is a strong password? (a) 111111 (b) password (c) 123456 (d) S0lar!Pen#8
- 36.🧭 Why use <nav> instead of <div> for a menu? (a) it loads faster (b) it adds pictures (c) it tells its meaning (d) it makes text red
- 37.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <tr> (c) inside a <p> (d) inside the <head>
- 38.🚀 Which file should this code go in: console.log(5 + 2); (a) index.html (b) style.css (c) script.js
-
39.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="200"> - 40.True or false: a web browser turns HTML into a page. (a) True (b) False
Answer key
- shows line numbers
- The full moon
- sets colours and fonts
- A happy dog
- <th>
- /art/gallery.html
- h2
- share your OTP
- 130
- red
- Fun facts
- <form>
- 12
- the data is scrambled
- 134
- #ffffff
- a closing tag
- 124
- 4
- numbers
- when if is false
- in a new tab
- #ff0000
- 10
- True
- <ul>
- <ol>
- blue
- </h1>
- 34
- lets you pick only one
- True
- yellow
- https://example.com
- S0lar!Pen#8
- it tells its meaning
- inside a <tr>
- script.js
- 200
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids