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.🌍 What is the path in this URL?
http://kids.example.org/about.html (a) http (b) kids.example.org (c) /maths/tables.html (d) /about.html -
2.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red<br>Stars shine</p> - 3.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
4.🔁 How many numbers does this code print?
for (let i = 0; i < 7; i = i + 3) {
console.log(i);
} -
5.📊 How many rows does this table have?
<table>
<tr><td>Guava</td><td>Grapes</td><td>Banana</td><td>Papaya</td></tr>
<tr><td>Mango</td><td>Papaya</td><td>Mango</td><td>Mango</td></tr>
</table> -
6.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="150"> - 7.🔍 Which is the odd one out? (a) changes the page live (b) adds space around boxes (c) counts down a timer (d) checks a quiz answer
-
8.✍️ Which property is set to 20px in this rule?
h1 {
font-size: 20px;
text-align: center;
} (a) background-color (b) 20px (c) text-align (d) font-size -
9.🌍 What is the protocol in this URL?
https://learn.example.com/games/chess.html (a) learn.example.com (b) http (c) /games/chess.html (d) https - 10.📋 Which list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ul> (d) <ol>
- 11.True or false: the URL is the page’s address. (a) False (b) True
- 12.Which of these goes in the body? (a) <h1> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <title>
-
13.✍️ Which property is set to center in this rule?
h1 {
text-align: center;
font-weight: bold;
margin: 10px;
} (a) background-color (b) center (c) margin (d) text-align - 14.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 6 (d) 1
- 15.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <p> (c) inside the <head> (d) inside a <tr>
- 16.✍️ Which sign ends each CSS declaration? (a) : (b) . (c) ; (d) ,
- 17.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h6> or <h3>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
- 18.🛡️ Online: is it safe to meet an online stranger? (a) not safe (b) safe
- 19.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <meta charset="utf-8"> (c) <img> (d) <style>
- 20.True or false: <ol> lists steps in order. (a) True (b) False
- 21.💬 Does the browser show comments on the page? (a) Yes (b) No
- 22.Which of these is true of <aside>? (a) holds a news story (b) holds the menu of links (c) holds extra side notes (d) holds the main content
- 23.Which of these does JavaScript do? (a) lays out the page (b) checks a quiz answer (c) makes a link (d) changes the text size
- 24.🧭 Which semantic tag sits at the bottom? (a) <footer> (b) <nav> (c) <article> (d) <header>
- 25.⚡ Which JavaScript word shows a pop-up box? (a) console.log() (b) if (c) let (d) alert()
-
26.⚡ What number does this code print?
let runs = 9;
runs = runs + 2;
runs = runs - 10;
console.log(runs); -
27.🔁 How many times does this code print “Hi”?
for (let i = 3; i <= 7; i++) {
console.log("Hi");
} - 28.🖌️ Which CSS property sets the letter colour? (a) font-family (b) text-align (c) background-color (d) color
-
29.📱 The screen is 1366px wide. Does the rule inside @media apply?
p {
font-size: 20px;
}
@media (max-width: 600px) {
p {
font-size: 14px;
}
} (a) Yes (b) No -
30.🔍 One closing tag is missing. Which one?
<u>Rain today</u>
<h1>Fun facts
<h2>The red kite</h2> (a) </u> (b) </h2> (c) </p> (d) </h1> - 31.📄 Where does the text of <title> appear? (a) on the browser tab (b) in a big heading (c) nowhere (d) at the bottom
- 32.True or false: <li> is an ordered list. (a) True (b) False
-
33.📱 The screen is 320px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (max-width: 480px) {
p {
font-size: 10px;
}
} (a) No (b) Yes - 34.📝 Which input type is for an email address? (a) email (b) text (c) number (d) checkbox
- 35.🔍 Which is the odd one out? (a) answers page requests (b) opens web pages for us (c) hosts websites online (d) stores a website’s files
- 36.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 37.🌐 Which one opens web pages for us? (a) a web browser (b) a web server (c) a code editor
- 38.Which of these is a closing tag? (a) <p> (b) </h1> (c) <h1> (d) <li>
- 39.⚡ Which JavaScript word writes in the console? (a) console.log() (b) if (c) for (d) let
- 40.📊 In a table, which tag is a row? (a) <tb> (b) <tr> (c) <td> (d) <th>
Answer key
- /about.html
- 3
- has a closing tag
- 3
- 2
- 150
- adds space around boxes
- font-size
- https
- <ol>
- True
- <h1>
- text-align
- 1
- inside a <tr>
- ;
- <h6>
- not safe
- <img>
- True
- No
- holds extra side notes
- checks a quiz answer
- <footer>
- alert()
- 1
- 5
- color
- No
- </h1>
- on the browser tab
- False
- Yes
- opens web pages for us
- a closing tag
- a web browser
- </h1>
- console.log()
- <tr>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids