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 heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
- 2.🔍 Which is the odd one out? (a) opens web pages for us (b) shows pages from the web (c) answers page requests (d) has an address bar
-
3.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (max-width: 768px) {
p {
font-size: 10px;
}
} - 4.🔢 When you open a web page, which comes FIRST? (a) you type the URL (b) the server sends files (c) DNS finds the server (d) the browser asks it
- 5.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) 600px or narrower (c) exactly 1000px (d) turned off
- 6.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 3 (d) 10
- 7.Which of these does HTML do? (a) counts down a timer (b) makes headings and lists (c) adds space around boxes (d) sets colours and fonts
- 8.🖼️ Which attribute of <img> names the picture file? (a) width (b) src (c) height (d) alt
-
9.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 768px) {
p {
font-size: 20px;
}
} - 10.🎯 Which element does the selector .big style? (a) <span id="big"> (b) <span class="big"> (c) <p class="box"> (d) <span class="red">
- 11.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) shows pages from the web (d) sends pages over the net
-
12.🌍 What is the protocol in this URL?
https://learn.example.com/games/chess.html (a) http (b) https (c) /games/chess.html (d) learn.example.com - 13.🔗 Which attribute holds the address of a link? (a) src (b) alt (c) id (d) href
- 14.True or false: <hr> has a closing tag. (a) False (b) True
-
15.🔗 Where does this link open?
<a href="https://example.com" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab - 16.🌍 Which one scrambles data on its way? (a) the browser (b) the URL (c) HTTPS (d) the server
- 17.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h3>? (a) <h6> (b) <h1> (c) <h2> (d) <h3>
-
18.♿ Is this heading order correct (no level skipped)?
<h1> → <h2> → <h3> → <h3> (a) Yes (b) No - 19.True or false: <br> is an empty tag. (a) True (b) False
- 20.What does color do? (a) sets the letter colour (b) makes letters bigger (c) picks the font style (d) centres a heading
-
21.📝 How many <input> tags are in this form?
<form>
<input type="date">
<input type="password">
<input type="text">
<input type="checkbox">
<input type="submit" value="Send">
</form> - 22.🎯 Which sign starts an id selector? (a) . (b) & (c) # (d) @
-
23.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (max-width: 1024px) {
p {
font-size: 18px;
}
} - 24.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
-
25.🔠 How many headings are in this code?
<h1>My pets</h1>
<p>Fun facts</p>
<p>Fun facts</p>
<p>Hello, world!</p> - 26.🔁 When does the else part run? (a) always (b) never (c) when if is true (d) when if is false
-
27.🔁 What is the LAST number this code prints?
for (let i = 0; i < 11; i = i + 2) {
console.log(i);
} - 28.What is <input type="checkbox"> for? (a) takes only numbers (b) lets you tick many (c) picks a day (d) sends the form
- 29.🧩 Which language puts a picture on a page? (a) CSS (b) HTML (c) JavaScript
- 30.💬 How does an HTML comment start? (a) <!-- (b) # (c) // (d) /*
-
31.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 240px;
padding: 20px;
border: 3px solid black;
margin: 5px;
} - 32.🧭 Why use <nav> instead of <div> for a menu? (a) it adds pictures (b) it tells its meaning (c) it makes text red (d) it loads faster
-
33.🔗 Which words do you click on?
<a href="maths.html">Art corner</a> (a) School news (b) maths.html (c) Art corner (d) href - 34.🔍 Which is the odd one out? (a) puts a picture on a page (b) makes headings and lists (c) makes a form box (d) counts down a timer
-
35.✍️ What value is given to font-weight in this rule?
p {
font-weight: bold;
color: red;
padding: 8px;
} (a) font-weight (b) bold (c) 2px solid (d) 300px -
36.📱 The screen is 820px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (max-width: 768px) {
p {
font-size: 12px;
}
} (a) No (b) Yes - 37.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <a href="about.html">
- 38.Which of these is the border? (a) space outside the border (b) the text or picture (c) the line round the box (d) space inside the border
- 39.🌐 Which one saves our .html files? (a) a web server (b) a web browser (c) a code editor
- 40.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Link (c) Language (d) Line
Answer key
- <h6>
- answers page requests
- 10
- you type the URL
- 600px or narrower
- 6
- makes headings and lists
- src
- 20
- <span class="big">
- shows pages from the web
- https
- href
- False
- in a new tab
- HTTPS
- <h1>
- Yes
- True
- sets the letter colour
- 5
- #
- 20
- in the body
- 1
- when if is false
- 10
- lets you tick many
- HTML
- <!--
- 296
- it tells its meaning
- Art corner
- counts down a timer
- bold
- No
- <a href="about.html">
- the line round the box
- a code editor
- Language
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids