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 colour is the text of this element?
<p class="big" id="top">Hi</p>
CSS:
.big { color: purple; }
.big { color: white; } (a) purple (b) white (c) red (d) blue -
2.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 240px;
justify-content: flex-end;
}
Inside are 2 boxes, each 80px wide (no margins). - 3.🌍 What does a web address (URL) tell the browser? (a) your password (b) where the page is (c) the page colour (d) how old you are
- 4.📝 Which input type lets you tick many? (a) radio (b) password (c) checkbox (d) text
- 5.True or false: in <img>, height tells which image to load. (a) False (b) True
- 6.🚀 Which file should this code go in: score = score + 1; (a) style.css (b) script.js (c) index.html
-
7.📊 How many rows does this table have?
<table>
<tr><td>Banana</td><td>Jamun</td><td>Jamun</td></tr>
<tr><td>Mango</td><td>Banana</td><td>Orange</td></tr>
</table> -
8.📱 The screen is 1366px wide. Does the rule inside @media apply?
p {
font-size: 20px;
}
@media (max-width: 1024px) {
p {
font-size: 18px;
}
} (a) No (b) Yes - 9.True or false: <li> lists steps in order. (a) True (b) False
- 10.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 11.🔢 When you open a web page, which comes first: “you type the URL” or “DNS finds the server”? (a) DNS finds the server (b) you type the URL
-
12.🔗 Which address opens when you click this link?
<a href="games.html">Play games</a> (a) about.html (b) contact.html (c) Play games (d) games.html - 13.True or false: #top is a class selector. (a) False (b) True
- 14.True or false: <input type="radio"> lets you pick only one. (a) False (b) True
- 15.📊 Which tag makes a heading cell? (a) <td> (b) <th> (c) <tr> (d) <table>
-
16.🔗 Which address opens when you click this link?
<a href="about.html">Play games</a> (a) https://example.com (b) Play games (c) contact.html (d) about.html - 17.📝 What does <br> do? (a) makes a list (b) starts a new line (c) makes text bold (d) adds a picture
- 18.🧩 Which language checks a quiz answer? (a) HTML (b) CSS (c) JavaScript
- 19.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h2>? (a) <h6> (b) <h4> (c) <h2> (d) <h1>
- 20.🌗 Is white on dark blue easy or hard to read? (a) easy to read (b) hard to read
- 21.🌍 Which one asks for a web page? (a) the server (b) the browser (c) HTTPS (d) the URL
-
22.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 400px;
justify-content: center;
}
Inside are 4 boxes, each 80px wide (no margins). -
23.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="fruit"> Banana
<input type="checkbox" name="fruit"> Guava
<input type="checkbox" name="fruit"> Papaya
<input type="checkbox" name="fruit"> Litchi
<input type="checkbox" name="fruit"> Mango
</form> - 24.Which of these goes in the head? (a) <title> (b) <h1> (c) <a> (d) <img>
- 25.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h1> (d) <h6>
-
26.🔍 Which line is missing its closing tag?
line 1: <em>Fun facts</em>
line 2: <small>My best friend</small>
line 3: <b>My pets (a) line 3 (b) line 2 (c) line 1 - 27.📝 Which tag makes a big box for many lines of text? (a) <input> (b) <br> (c) <p> (d) <textarea>
- 28.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) red (d) blue
- 29.🌗 Is dark grey on white easy or hard to read? (a) easy to read (b) hard to read
- 30.Which of these is an opening tag? (a) </b> (b) </li> (c) <p> (d) </title>
- 31.True or false: <b> has a closing tag. (a) True (b) False
- 32.🖼️ Which attribute of <img> sets how wide it is? (a) height (b) src (c) width (d) alt
- 33.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
-
34.✍️ Which property is set to red in this rule?
body {
color: red;
border: 2px solid;
font-weight: bold;
} (a) text-align (b) font-size (c) color (d) red - 35.Which of these is true of a web browser? (a) stores a website’s files (b) sends pages over the net (c) hosts websites online (d) has an address bar
-
36.✍️ How many declarations (property: value pairs) are in this rule?
p {
border: 2px solid;
} -
37.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 280px;
padding: 25px;
border: 1px solid black;
margin: 10px;
} -
38.🖌️ What colour is behind the letters?
h1 {
font-size: 36px;
background-color: yellow;
color: purple;
text-align: left;
} (a) red (b) yellow (c) purple -
39.⚡ What does this code show?
let name = "Meera";
alert("Welcome, " + name + "!"); (a) Welcome, Meera! (b) name (c) Meera (d) Welcome, name! -
40.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 250px;
justify-content: flex-end;
}
Inside are 4 boxes, each 60px wide (no margins).
Answer key
- white
- 80
- where the page is
- checkbox
- False
- script.js
- 2
- No
- False
- an opening tag
- you type the URL
- games.html
- False
- True
- <th>
- about.html
- starts a new line
- JavaScript
- <h1>
- easy to read
- the browser
- 40
- 5
- <title>
- <h1>
- line 3
- <textarea>
- blue
- easy to read
- <p>
- True
- width
- an element selector
- color
- has an address bar
- 1
- 332
- yellow
- Welcome, Meera!
- 10
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids