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 heading shows the BIGGEST text: <h2>, <h6>, <h3> or <h5>? (a) <h5> (b) <h3> (c) <h2> (d) <h6>
- 2.📊 Where do <td> cells go? (a) inside a <tr> (b) inside the <head> (c) inside a <p> (d) inside a <li>
- 3.True or false: HTML on its own can run a game loop. (a) False (b) True
- 4.🎯 Which element does the selector #hero style? (a) <div id="top"> (b) <div class="hero"> (c) <div id="hero"> (d) <span class="note">
-
5.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
<tr><td>Guava</td><td>Jamun</td><td>Mango</td><td>Guava</td></tr>
<tr><td>Papaya</td><td>Guava</td><td>Litchi</td><td>Banana</td></tr>
<tr><td>Guava</td><td>Jamun</td><td>Jamun</td><td>Mango</td></tr>
</table> - 6.True or false: HTML on its own cannot make links to pages. (a) True (b) False
- 7.🌈 In #rrggbb, which colour do the first two digits give? (a) red (b) green (c) black (d) blue
-
8.📝 How many paragraphs does this code make?
<p>My pets</p>
<h2>Rain today</h2>
<h2>Good morning!</h2>
<h2>Fun facts</h2>
<p>Rain today</p>
<p>My pets</p> -
9.🔁 How many times does this code print “Welcome”?
for (let i = 3; i <= 9; i++) {
console.log("Welcome");
} - 10.🌈 Which colour of light is strongest in rgb(74, 94, 250)? (a) green (b) blue (c) red
-
11.🔍 One closing tag is missing. Which one?
<strong>I love mangoes.</strong>
<em>Hello, world!</em>
<h1>Good morning! (a) </h1> (b) </strong> (c) </u> (d) </em> - 12.♿ Does this help everyone, or make the page harder to use: tiny grey text? (a) makes it harder (b) helps everyone
- 13.True or false: <th> makes a heading cell. (a) True (b) False
- 14.📝 Which input type sends the form? (a) date (b) radio (c) email (d) submit
-
15.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h4>Hello, world!</h4>
<p>Our school trip</p>
<p>My pets</p> - 16.💬 How does an HTML comment end? (a) >> (b) */ (c) --> (d) //
- 17.Which of these has a closing tag? (a) <meta> (b) <h1> (c) <br> (d) <hr>
- 18.True or false: to keep passwords secret is safe. (a) True (b) False
- 19.🌈 Which hex code is bright green? (a) #ff0000 (b) #00ff00 (c) #000000 (d) #ffffff
- 20.⚡ Which word makes a new variable? (a) put (b) make (c) let (d) give
-
21.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="colour"> Blue
<input type="checkbox" name="colour"> Orange
<input type="checkbox" name="colour"> Red
<input type="checkbox" name="colour"> Pink
</form> - 22.🔍 Which is the odd one out? (a) puts a picture on a page (b) makes headings and lists (c) adds space around boxes (d) makes a link
- 23.🚀 Which file should this code go in: <a href="a.html">Go</a> (a) index.html (b) script.js (c) style.css
-
24.🔠 How many headings are in this code?
<h1>My pets</h1>
<h2>Hello, world!</h2>
<h2>My best friend</h2>
<p>My best friend</p>
<h3>I love mangoes.</h3> -
25.📊 How many cells are in each row?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Banana</td><td>Mango</td><td>Banana</td></tr>
</table> - 26.⚖️ Which selector is the strongest? (a) an id selector (b) an element selector (c) a class selector
- 27.🌍 Which one is the page’s address? (a) the browser (b) the server (c) HTTPS (d) the URL
-
28.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="sport"> Kabaddi
<input type="checkbox" name="sport"> Cricket
<input type="checkbox" name="sport"> Football
<input type="checkbox" name="sport"> Hockey
</form> - 29.🔁 What does i++ do? (a) adds 1 to i (b) prints i (c) doubles i (d) takes 1 from i
- 30.🎯 Which element does the selector li style? (a) <li class="star"> (b) <div> (c) <span class="star"> (d) <p id="main">
-
31.🔁 What is the LAST number this code prints?
for (let i = 0; i < 17; i = i + 2) {
console.log(i);
} -
32.🖌️ What colour is behind the letters?
p {
font-size: 28px;
color: black;
background-color: green;
text-align: right;
} (a) orange (b) green (c) black - 33.🧭 Which semantic tag holds copyright notes? (a) <article> (b) <header> (c) <footer> (d) <main>
-
34.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 480px) {
p {
font-size: 22px;
}
} - 35.Which of these is padding? (a) space inside the border (b) a solid or dotted edge (c) space outside the border (d) the line round the box
-
36.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 9; i++) {
total = total + 3;
}
console.log(total); - 37.🌈 Which colour is rgb(0, 255, 0)? (a) white (b) bright green (c) black (d) yellow
- 38.🌗 Is black on white easy or hard to read? (a) easy to read (b) hard to read
- 39.What does justify-content: flex-end do? (a) puts boxes in the middle (b) packs boxes at the start (c) equal gaps, none at ends (d) packs boxes at the end
- 40.🧭 Is <aside> semantic or not semantic? (a) not semantic (b) semantic
Answer key
- <h2>
- inside a <tr>
- False
- <div id="hero">
- 4
- False
- red
- 3
- 7
- blue
- </h1>
- makes it harder
- True
- submit
- 2
- -->
- <h1>
- True
- #00ff00
- let
- 4
- adds space around boxes
- index.html
- 4
- 3
- an id selector
- the URL
- 4
- adds 1 to i
- <li class="star">
- 16
- green
- <footer>
- 24
- space inside the border
- 27
- bright green
- easy to read
- packs boxes at the end
- semantic
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids