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.🖌️ Where does the text sit on its line?
h2 {
background-color: white;
text-align: left;
font-size: 20px;
color: red;
} (a) in the middle (b) on the left (c) on the right -
2.🖌️ What colour are the letters?
p {
color: blue;
text-align: center;
font-size: 12px;
background-color: yellow;
} (a) purple (b) blue (c) yellow -
3.🔗 Which words do you click on?
<a href="art.html">Art corner</a> (a) art.html (b) href (c) School news (d) Art corner -
4.📝 How many <input> tags are in this form?
<form>
<input type="date">
<input type="email">
<input type="number">
<input type="checkbox">
<input type="text">
<input type="submit" value="Send">
</form> - 5.🏷️ Which is the closing tag for <b>? (a) <b/> (b) </b> (c) <b> (d) <\b>
- 6.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 7.Which of these is true of a code editor? (a) turns HTML into a page (b) shows pages from the web (c) is where we type code (d) has an address bar
- 8.Which of these is true of <main>? (a) holds a news story (b) sits at the bottom (c) holds the logo and title (d) is the page’s key part
-
9.📋 How many items does this list show?
<ul>
<li>Litchi</li>
<li>Mango</li>
<li>Papaya</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Banana</li>
</ul> - 10.🌗 Is yellow on white easy or hard to read? (a) hard to read (b) easy to read
-
11.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) contact.html (b) href (c) About us (d) Play games - 12.True or false: li is an element selector. (a) True (b) False
-
13.🔍 One closing tag is missing. Which one?
<b>Fun facts</b>
<small>Cricket is fun.
<i>I love mangoes.</i> (a) </b> (b) </i> (c) </small> (d) </em> - 14.🎯 Which element does the selector .red style? (a) <h1 id="red"> (b) <h1 class="red"> (c) <h1 class="box"> (d) <h2 class="star">
- 15.🚀 Which file should this code go in: <h1>My Site</h1> (a) style.css (b) index.html (c) script.js
- 16.True or false: HTML on its own can pick a random number. (a) False (b) True
- 17.True or false: <footer> holds the menu of links. (a) False (b) True
- 18.🛡️ Online: is it safe to download from pop-ups? (a) safe (b) not safe
- 19.True or false: the server stores the site’s files. (a) False (b) True
-
20.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) body (b) Thanks for visiting. (c) Welcome! (d) My Hobbies - 21.🔐 Is Mango#Kite29! a strong or a weak password? (a) weak (b) strong
- 22.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <li> (c) <ol>
- 23.🎯 What kind of selector is p? (a) an id selector (b) an element selector (c) a class selector
- 24.What is <input type="text"> for? (a) sends the form (b) hides what you type (c) is for one line of words (d) picks a day
-
25.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 200px;
justify-content: flex-start;
}
Inside are 3 boxes, each 50px wide (no margins). -
26.⚡ What does this code print? (Look at the quotes!)
let x = "1";
let y = 2;
console.log(x + y); (a) Error (b) 3 (c) 12 - 27.🖼️ Which attribute of <img> sets how wide it is? (a) alt (b) height (c) width (d) src
-
28.🖌️ What colour are the letters?
li {
background-color: purple;
font-size: 16px;
text-align: right;
color: green;
} (a) white (b) purple (c) green -
29.🔒 Is the connection to this address scrambled (encrypted)?
https://www.example.net/maths/tables.html (a) Yes (b) No - 30.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
31.🌍 What is the path in this URL?
https://learn.example.com/games/chess.html (a) learn.example.com (b) https (c) /games/chess.html (d) /about.html -
32.🔠 How many headings are in this code?
<h1>My pets</h1>
<h3>I love mangoes.</h3>
<h2>My best friend</h2>
<p>Cricket is fun.</p> - 33.🛡️ Before typing a password on a site, check the address starts with ___. (a) www (b) https (c) http (d) ftp
-
34.📱 The screen is 1100px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (max-width: 768px) {
p {
font-size: 10px;
}
} (a) Yes (b) No - 35.🔢 In a basic web page file, which comes LAST? (a) <html> (b) </html> (c) <!DOCTYPE html> (d) <body>
- 36.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 10 (d) 3
-
37.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Grapes</li>
<li>Papaya</li>
<li>Orange</li>
<li>Litchi</li>
</ol> - 38.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
- 39.True or false: a web browser sends pages over the net. (a) True (b) False
- 40.💬 How does an HTML comment start? (a) // (b) <!-- (c) # (d) /*
Answer key
- on the left
- blue
- Art corner
- 6
- </b>
- a closing tag
- is where we type code
- is the page’s key part
- 6
- hard to read
- Play games
- True
- </small>
- <h1 class="red">
- index.html
- False
- False
- not safe
- True
- Welcome!
- strong
- <ol>
- an element selector
- is for one line of words
- 50
- 12
- width
- green
- Yes
- a closing tag
- /games/chess.html
- 3
- https
- No
- </html>
- 1
- 4
- in the head
- False
- <!--
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids