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: <h4>, <h1>, <h3> or <h5>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
- 2.🌈 Which colour is #00ffff? (a) white (b) cyan (c) magenta (d) blue
- 3.📱 Which tag helps phones show a page at the right size? (a) the viewport meta tag (b) the title tag (c) the br tag (d) the hr tag
- 4.🔢 To build and share your first web page, which comes first: “test in a browser” or “plan what to show”? (a) plan what to show (b) test in a browser
- 5.🌈 Which colour of light is strongest in rgb(244, 60, 75)? (a) red (b) blue (c) green
- 6.🖼️ Which attribute of <img> describes the picture? (a) width (b) height (c) alt (d) src
- 7.Which of these is true of a web browser? (a) has an address bar (b) stores a website’s files (c) sends pages over the net (d) hosts websites online
-
8.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p>
<p>My pets</p> (a) I love mangoes. (b) The red kite (c) My pets -
9.💬 Which text will NOT show on the page?
<!-- <p>Fun facts</p> -->
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<p>I love mangoes.</p> (a) I love mangoes. (b) Cricket is fun. (c) Fun facts (d) Hello, world! - 10.📄 Can HTML on its own run a game loop? (a) Yes (b) No
-
11.🔁 What is the LAST number this code prints?
for (let i = 0; i < 13; i = i + 2) {
console.log(i);
} - 12.Which of these has a closing tag? (a) <hr> (b) <h1> (c) <input> (d) <meta>
-
13.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> (a) A red kite (b) A tiger asleep (c) tiger.jpg (d) width -
14.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<h3>My pets</h3>
<p>The red kite</p>
<h3>The red kite</h3> - 15.True or false: <style> goes in the body. (a) True (b) False
- 16.Which of these does HTML do? (a) lays out the page (b) adds space around boxes (c) makes a form box (d) checks a quiz answer
- 17.True or false: <tr> makes one data cell. (a) False (b) True
- 18.🌈 Which colour is rgb(0, 255, 0)? (a) yellow (b) magenta (c) black (d) bright green
- 19.True or false: score = score + 1; goes in script.js. (a) True (b) False
- 20.True or false: padding is space outside the border. (a) True (b) False
-
21.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Kites fly high<br>Birds sing</p> -
22.🔁 How many numbers does this code print?
for (let i = 0; i < 9; i = i + 4) {
console.log(i);
} - 23.📝 Which tag holds a whole form? (a) <input> (b) <form> (c) <ol> (d) <table>
-
24.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 520px;
justify-content: center;
}
Inside are 4 boxes, each 100px wide (no margins). - 25.🔐 Is Kite_Fl1es@Dawn a strong or a weak password? (a) weak (b) strong
- 26.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
- 27.📊 In a table, which tag is a row? (a) <tb> (b) <th> (c) <tr> (d) <td>
- 28.🌈 Which colour is #ff0000? (a) yellow (b) black (c) red (d) cyan
-
29.⚖️ What colour is the text of this element?
<h2 class="red" id="hero">Hi</h2>
CSS:
.red { color: orange; }
.red { color: white; } (a) green (b) black (c) white (d) orange - 30.🔍 Which is the odd one out? (a) rounds box corners (b) lays out the page (c) adds space around boxes (d) makes a link
- 31.🎯 How many elements on a page should have the same id? (a) any number (b) 1 (c) 2 (d) 5
-
32.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>The red kite</p>
<p>My pets</p> -
33.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 210px;
justify-content: center;
}
Inside are 3 boxes, each 50px wide (no margins). - 34.True or false: to check for https first is safe. (a) False (b) True
- 35.True or false: the server scrambles data on its way. (a) True (b) False
- 36.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) attribute (c) editor (d) address
- 37.True or false: #main is a class selector. (a) True (b) False
-
38.📊 How many cells are in each row?
<table>
<tr><td>Litchi</td><td>Jamun</td></tr>
<tr><td>Jamun</td><td>Mango</td></tr>
</table> -
39.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 300px;
justify-content: center;
}
Inside are 4 boxes, each 40px wide (no margins). - 40.True or false: <title> is an empty tag. (a) True (b) False
Answer key
- <h1>
- cyan
- the viewport meta tag
- plan what to show
- red
- alt
- has an address bar
- I love mangoes.
- Fun facts
- No
- 12
- <h1>
- A tiger asleep
- 3
- False
- makes a form box
- False
- bright green
- True
- False
- 3
- 3
- <form>
- 60
- strong
- Yes
- <tr>
- red
- white
- makes a link
- 1
- 4
- 30
- True
- False
- element
- False
- 2
- 70
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids