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 one is the page’s address? (a) the server (b) HTTPS (c) the browser (d) the URL
-
2.🖌️ What colour is behind the letters?
h1 {
font-size: 12px;
color: green;
text-align: right;
background-color: red;
} (a) green (b) red (c) blue -
3.🖌️ How big is the text, in px?
h1 {
font-size: 36px;
background-color: red;
text-align: left;
color: white;
} -
4.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>Rain today</p>
<!-- <p>I love mangoes.</p> -->
<!-- <p>My pets</p> --> - 5.🖌️ Which CSS property makes letters bigger? (a) color (b) font-size (c) font-family (d) text-align
-
6.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 420px;
justify-content: center;
}
Inside are 4 boxes, each 100px wide (no margins). - 7.True or false: <input type="text"> lets you tick many. (a) True (b) False
- 8.Which of these does CSS do? (a) gives the page structure (b) changes the text size (c) reacts to a button click (d) counts down a timer
- 9.♿ Who uses a screen reader? (a) people who are blind (b) only teachers (c) only coders (d) only robots
- 10.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 11.🛡️ Online: is it safe to share your OTP? (a) not safe (b) safe
- 12.🔍 Which is the odd one out? (a) checks a quiz answer (b) changes the page live (c) counts down a timer (d) puts a picture on a page
- 13.🌈 Which colour is #000000? (a) black (b) blue (c) yellow (d) magenta
-
14.📊 How many cells are in each row?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
<tr><td>Grapes</td><td>Orange</td><td>Jamun</td><td>Jamun</td></tr>
</table> - 15.📦 In the box model, which part is the gap round content? (a) content (b) margin (c) border (d) padding
- 16.Which of these is an opening tag? (a) </h1> (b) </title> (c) </li> (d) <h1>
- 17.Which of these is an empty tag? (a) <img> (b) <li> (c) <h1> (d) <title>
-
18.⚖️ What colour is the text of this element?
<p class="star" id="end">Hi</p>
CSS:
p { color: green; }
p { color: white; } (a) green (b) white (c) orange (d) yellow -
19.📱 The screen is 820px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (min-width: 1024px) {
p {
font-size: 28px;
}
} - 20.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the later one (b) neither (c) the shorter one (d) the first one
- 21.🏷️ Which is the closing tag for <h1>? (a) </h1> (b) <\h1> (c) <h1/> (d) <h1>
-
22.📦 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: 30px;
border: 5px solid black;
margin: 20px;
} - 23.🛡️ Online: is it safe to download from pop-ups? (a) not safe (b) safe
-
24.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 170px;
justify-content: flex-end;
}
Inside are 2 boxes, each 60px wide (no margins). - 25.🌈 In #6d0000 the red part is the hex number 6d. What is it as a normal number?
- 26.📊 Which tag holds the whole table? (a) <caption> (b) <table> (c) <td> (d) <tr>
- 27.🖼️ Which attribute of <img> sets how wide it is? (a) src (b) alt (c) height (d) width
- 28.True or false: <a href="a.html">Go</a> goes in index.html. (a) False (b) True
- 29.💪 Which flexbox property turns on flexbox? (a) align-items (b) display: flex (c) gap (d) justify-content
- 30.🌈 Which colour is rgb(0, 255, 0)? (a) blue (b) red (c) bright green (d) black
- 31.True or false: “skipping heading levels” makes the page harder to use. (a) True (b) False
- 32.Which of these is a weak password? (a) Kite_Fl1es@Dawn (b) Blue@Tiger_74 (c) iloveyou (d) S0lar!Pen#8
- 33.Which of these is a weak password? (a) qwerty (b) Rain#Drop_42! (c) Blue@Tiger_74 (d) Kite_Fl1es@Dawn
- 34.🌍 Which one sends the page back? (a) the URL (b) the server (c) the browser (d) HTTPS
- 35.📄 Can HTML on its own make bullet lists? (a) No (b) Yes
- 36.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
-
37.⚖️ What colour is the text of this element?
<p class="box" id="hero">Hi</p>
CSS:
.box { color: purple; }
#hero { color: orange; } (a) black (b) orange (c) purple (d) red - 38.True or false: <meta charset="utf-8"> goes in the head. (a) True (b) False
-
39.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 260px;
justify-content: center;
}
Inside are 2 boxes, each 50px wide (no margins). - 40.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
Answer key
- the URL
- red
- 36
- 1
- font-size
- 10
- False
- changes the text size
- people who are blind
- a closing tag
- not safe
- puts a picture on a page
- black
- 4
- padding
- <h1>
- <img>
- white
- 24
- the later one
- </h1>
- 350
- not safe
- 50
- 109
- <table>
- width
- True
- display: flex
- bright green
- True
- iloveyou
- qwerty
- the server
- Yes
- <li>
- orange
- True
- 80
- Yes
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids