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.📝 How many <input> tags are in this form?
<form>
<input type="email">
<input type="password">
<input type="number">
<input type="date">
<input type="submit" value="Send">
</form> -
2.🔗 Which words do you click on?
<a href="art.html">Contact us</a> (a) Visit the site (b) href (c) Contact us (d) art.html - 3.🌍 What do we call the computer that stores a website? (a) a mouse (b) a printer (c) a server (d) a keyboard
-
4.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Fun facts</p>
<p>The red kite</p> - 5.Which of these is a closing tag? (a) </title> (b) <b> (c) <body> (d) <title>
- 6.🌈 In #00009d the blue part is the hex number 9d. What is it as a normal number?
- 7.🔗 Which attribute holds the address of a link? (a) href (b) id (c) src (d) alt
-
8.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red</p> -
9.🔍 One closing tag is missing. Which one?
<small>Rain today</small>
<h1>My best friend</h1>
<strong>Good morning! (a) </h1> (b) </strong> (c) </h2> (d) </small> -
10.📝 How many <input> tags are in this form?
<form>
<input type="password">
<input type="text">
<input type="submit" value="Send">
</form> - 11.🧭 How many <main> parts should a page have? (a) ten (b) none (c) one (d) three
- 12.🚀 Which file should this code go in: <h1>My Site</h1> (a) script.js (b) style.css (c) index.html
-
13.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 190px;
justify-content: flex-start;
}
Inside are 4 boxes, each 40px wide (no margins). - 14.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <p> (d) <h3>
- 15.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) J (c) G (d) F
-
16.📋 Does this list show bullets or numbers?
<ul>
<li>Mango</li>
<li>Orange</li>
</ul> (a) numbers (b) bullets - 17.🔍 Which is the odd one out? (a) checks a quiz answer (b) lays out the page (c) counts down a timer (d) shows a pop-up message
- 18.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
- 19.Which of these does CSS do? (a) changes the page live (b) makes a form box (c) counts down a timer (d) rounds box corners
-
20.⚡ What does this code print? (Look at the quotes!)
let x = "7";
let y = 6;
console.log(x + y); (a) 13 (b) Error (c) 76 -
21.⚖️ What colour is the text of this element?
<h1 class="note" id="logo">Hi</h1>
CSS:
.note { color: yellow; }
.note { color: black; } (a) yellow (b) blue (c) black (d) red - 22.True or false: <ul> lists things in any order. (a) False (b) True
- 23.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
-
24.🌍 What is the domain name in this URL?
https://www.example.com/index.html (a) www.example.com (b) https (c) kids.example.org (d) /index.html - 25.🚀 Which file should this code go in: let score = 0; (a) style.css (b) script.js (c) index.html
- 26.🔍 Which is the odd one out? (a) rounds box corners (b) makes a form box (c) makes headings and lists (d) puts a picture on a page
- 27.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <ul> (c) <style> (d) <link rel="stylesheet">
-
28.🔗 Which address opens when you click this link?
<a href="contact.html">Play games</a> (a) contact.html (b) https://example.com (c) maths.html (d) Play games - 29.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
- 30.True or false: “write clear link text” makes the page harder to use. (a) False (b) True
- 31.🔁 Which word runs code only when something is true? (a) if (b) log (c) for (d) let
- 32.🏷️ Which is the closing tag for <em>? (a) </em> (b) <em/> (c) <\em> (d) <em>
- 33.🔁 Which loop repeats code a set number of times? (a) else (b) if (c) let (d) for
-
34.📱 The screen is 375px wide. Does the rule inside @media apply?
p {
font-size: 24px;
}
@media (max-width: 600px) {
p {
font-size: 22px;
}
} (a) Yes (b) No - 35.What does font-weight do? (a) colours behind the text (b) makes letters bigger (c) makes the text bold (d) centres a heading
- 36.🧭 Is <span> semantic or not semantic? (a) not semantic (b) semantic
-
37.🔁 How many times does this code print “Welcome”?
for (let i = 0; i <= 5; i++) {
console.log("Welcome");
} - 38.True or false: <title> is an empty tag. (a) False (b) True
-
39.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 80px;
padding: 25px;
border: 4px solid black;
margin: 5px;
} -
40.🔁 What does this code print?
let temp = 45;
if (temp >= 22) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Cool (b) Hot
Answer key
- 5
- Contact us
- a server
- 1
- </title>
- 157
- href
- 2
- </strong>
- 3
- one
- index.html
- 30
- <h6>
- F
- bullets
- lays out the page
- in the head
- rounds box corners
- 76
- black
- True
- True
- www.example.com
- script.js
- rounds box corners
- <ul>
- contact.html
- Yes
- False
- if
- </em>
- for
- Yes
- makes the text bold
- not semantic
- 6
- False
- 148
- Hot
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids