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 hex code is blue? (a) #00ffff (b) #000000 (c) #0000ff (d) #ff00ff
- 2.🧭 Is <aside> semantic or not semantic? (a) semantic (b) not semantic
-
3.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Jamun</li>
<li>Mango</li>
</ul> (a) numbers (b) bullets - 4.🔗 Which attribute holds the address of a link? (a) href (b) alt (c) id (d) src
- 5.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
- 6.True or false: the border is a solid or dotted edge. (a) True (b) False
- 7.🌈 Which colour of light is strongest in rgb(176, 26, 22)? (a) green (b) blue (c) red
-
8.⚖️ What colour is the text of this element?
<h1 class="star" id="end">Hi</h1>
CSS:
#end { color: purple; }
#end { color: white; } (a) white (b) purple (c) yellow (d) blue -
9.🔗 Which address opens when you click this link?
<a href="contact.html">Visit the site</a> (a) contact.html (b) maths.html (c) Visit the site (d) https://example.com - 10.🌗 Is dark grey on white easy or hard to read? (a) hard to read (b) easy to read
- 11.⚡ Which JavaScript word writes in the console? (a) console.log() (b) alert() (c) if (d) for
- 12.True or false: <link rel="stylesheet"> goes in the body. (a) True (b) False
-
13.🔍 One closing tag is missing. Which one?
<p>Our school trip</p>
<h3>Hello, world!</h3>
<h1>I love mangoes. (a) </p> (b) </h3> (c) </b> (d) </h1> - 14.True or false: HTML changes the page live. (a) True (b) False
-
15.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 4; i++) {
total = total + 2;
}
console.log(total); -
16.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 80px;
padding: 20px;
border: 2px solid black;
margin: 0px;
} -
17.🔗 Which words do you click on?
<a href="quiz.html">About us</a> (a) About us (b) Contact us (c) quiz.html (d) href -
18.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Sky is blue<br>Roses are red</p> - 19.🔍 Which is the odd one out? (a) changes the page live (b) checks a quiz answer (c) counts down a timer (d) makes a link
- 20.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <p> (c) <h6> (d) <br>
-
21.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 380px;
justify-content: flex-start;
}
Inside are 3 boxes, each 100px wide (no margins). - 22.📦 In the box model, which part is the gap round content? (a) border (b) margin (c) content (d) padding
-
23.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="colour"> Orange
<input type="radio" name="colour"> Blue
<input type="radio" name="colour"> Pink
<input type="radio" name="colour"> Red
</form> -
24.📋 How many items does this list show?
<ol>
<li>Mango</li>
<li>Papaya</li>
<li>Litchi</li>
<li>Jamun</li>
</ol> - 25.True or false: <th> makes a heading cell. (a) False (b) True
- 26.🔍 Which is the odd one out? (a) puts a picture on a page (b) makes a link (c) gives the page structure (d) reacts to a button click
- 27.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h2> or <h4>? (a) <h5> (b) <h1> (c) <h2> (d) <h4>
-
28.🔁 How many numbers does this code print?
for (let i = 0; i < 17; i = i + 2) {
console.log(i);
} -
29.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 100px;
padding: 30px;
border: 3px solid black;
margin: 20px;
} - 30.🧩 Which language adds space around boxes? (a) JavaScript (b) HTML (c) CSS
-
31.🖌️ How big is the text, in px?
li {
text-align: center;
background-color: black;
color: green;
font-size: 32px;
} -
32.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 9; i++) {
total = total + i;
}
console.log(total); - 33.📝 Which tag holds a whole form? (a) <table> (b) <input> (c) <ol> (d) <form>
-
34.💬 Which text will NOT show on the page?
<p>My best friend</p>
<p>Our school trip</p>
<p>Good morning!</p>
<!-- <p>Fun facts</p> --> (a) My best friend (b) Our school trip (c) Fun facts (d) Good morning! -
35.✍️ Which property is set to 10px in this rule?
.box {
width: 300px;
font-size: 20px;
border: 2px solid;
margin: 10px;
} (a) font-weight (b) 10px (c) padding (d) margin -
36.♿ Is this heading order correct (no level skipped)?
<h1> → <h2> → <h3> → <h3> (a) No (b) Yes - 37.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
38.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Stars shine<br>Kites fly high<br>Rivers flow</p> -
39.🔁 What is the LAST number this code prints?
for (let i = 0; i < 17; i = i + 3) {
console.log(i);
} -
40.⚖️ What colour is the text of this element?
<h1 class="star" id="logo">Hi</h1>
CSS:
.star { color: black; }
.star { color: red; } (a) blue (b) black (c) red (d) green
Answer key
- #0000ff
- semantic
- bullets
- href
- in the body
- True
- red
- white
- contact.html
- easy to read
- console.log()
- False
- </h1>
- False
- 8
- 124
- About us
- 3
- makes a link
- <h1>
- 80
- padding
- 1
- 4
- True
- reacts to a button click
- <h5>
- 9
- 206
- CSS
- 32
- 45
- <form>
- Fun facts
- margin
- Yes
- an empty tag
- 4
- 15
- red
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids