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 picture file does the browser load?
<img src="moon.png" alt="The full moon" width="200"> (a) fort.jpg (b) The full moon (c) bus.jpg (d) moon.png - 2.🛡️ Before typing a password on a site, check the address starts with ___. (a) http (b) https (c) www (d) ftp
- 3.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <html> (d) <head>
- 4.♿ Does this help everyone, or make the page harder to use: skipping heading levels? (a) makes it harder (b) helps everyone
-
5.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>My best friend</p> -->
<p>Rain today</p>
<p>Fun facts</p> (a) My best friend (b) I love mangoes. (c) Fun facts (d) Rain today - 6.🧩 Which language adds space around boxes? (a) HTML (b) JavaScript (c) CSS
- 7.✍️ Which sign ends each CSS declaration? (a) . (b) , (c) ; (d) :
-
8.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 220px;
padding: 10px;
border: 3px solid black;
margin: 15px;
} -
9.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 130px;
justify-content: space-between;
}
Inside are 2 boxes, each 40px wide (no margins). - 10.True or false: the URL is the page’s address. (a) True (b) False
-
11.🖼️ Which picture file does the browser load?
<img src="map.png" alt="Map of India" width="150"> (a) dog.jpg (b) map.png (c) cake.jpg (d) Map of India -
12.🎯 Which CSS selector matches this element?
<p class="box" id="main">Hello</p> (a) .star (b) h1 (c) #box (d) .box - 13.🔍 Which is the odd one out? (a) changes the text size (b) shows a pop-up message (c) adds space around boxes (d) sets colours and fonts
- 14.🧩 Which language rounds box corners? (a) HTML (b) CSS (c) JavaScript
- 15.True or false: CSS sets colours and fonts. (a) True (b) False
-
16.📋 Does this list show bullets or numbers?
<ol>
<li>Guava</li>
<li>Banana</li>
<li>Grapes</li>
</ol> (a) numbers (b) bullets -
17.🌍 What is the protocol in this URL?
https://www.example.net/index.html (a) https (b) /index.html (c) http (d) www.example.net - 18.🖼️ Which attribute of <img> describes the picture? (a) height (b) src (c) width (d) alt
-
19.⚡ What number does this code print?
let a = 20;
let b = 37;
console.log(a + b); -
20.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Papaya</li>
<li>Grapes</li>
</ul> (a) bullets (b) numbers -
21.✍️ Which property is set to bold in this rule?
h1 {
font-size: 20px;
margin: 10px;
text-align: center;
font-weight: bold;
} (a) bold (b) font-weight (c) width (d) border - 22.True or false: padding is the gap to other boxes. (a) False (b) True
-
23.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>Hello, world!</p> -->
<p>Rain today</p> - 24.True or false: <input type="checkbox"> lets you tick many. (a) False (b) True
- 25.True or false: <input type="password"> hides what you type. (a) True (b) False
- 26.Which of these does CSS do? (a) changes the page live (b) makes a form box (c) adds space around boxes (d) puts a picture on a page
- 27.What does justify-content: space-between do? (a) puts boxes in the middle (b) equal gaps, none at ends (c) packs boxes at the start (d) packs boxes at the end
- 28.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 29.🔢 In a basic web page file, which comes FIRST? (a) <html> (b) <body> (c) <head> (d) <!DOCTYPE html>
- 30.⚡ Which JavaScript word writes in the console? (a) alert() (b) console.log() (c) let (d) for
- 31.Which of these is true of a web browser? (a) is where we type code (b) stores a website’s files (c) shows line numbers (d) opens web pages for us
- 32.True or false: <th> holds the whole table. (a) True (b) False
- 33.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h1> or <h6>? (a) <h4> (b) <h1> (c) <h6> (d) <h2>
-
34.🖌️ What colour is behind the letters?
li {
text-align: left;
font-size: 28px;
background-color: green;
color: blue;
} (a) green (b) blue (c) yellow -
35.⚖️ What colour is the text of this element?
<h1 class="star" id="top">Hi</h1>
CSS:
h1 { color: orange; }
.star { color: yellow; } (a) white (b) yellow (c) green (d) orange - 36.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
- 37.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) script.js (b) index.html (c) style.css
-
38.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="colour"> Red
<input type="radio" name="colour"> Orange
<input type="radio" name="colour"> Green
</form> - 39.Which colour pair is hard to read? (a) black on white (b) white on black (c) pink on red (d) white on dark blue
- 40.True or false: <footer> holds copyright notes. (a) True (b) False
Answer key
- moon.png
- https
- <!DOCTYPE html>
- makes it harder
- My best friend
- CSS
- ;
- 276
- 50
- True
- map.png
- .box
- shows a pop-up message
- CSS
- True
- numbers
- https
- alt
- 57
- bullets
- font-weight
- False
- 2
- True
- True
- adds space around boxes
- equal gaps, none at ends
- has a closing tag
- <!DOCTYPE html>
- console.log()
- opens web pages for us
- False
- <h1>
- green
- yellow
- hard to read
- index.html
- 1
- pink on red
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids