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 list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
- 2.True or false: <img src="cat.png"> goes in script.js. (a) False (b) True
-
3.🖌️ How big is the text, in px?
p {
background-color: black;
color: green;
font-size: 16px;
text-align: left;
} - 4.What does justify-content: flex-start do? (a) packs boxes at the start (b) packs boxes at the end (c) puts boxes in the middle (d) equal gaps, none at ends
-
5.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th></tr>
<tr><td>Mango</td><td>Guava</td></tr>
</table> - 6.What does justify-content: center do? (a) packs boxes at the start (b) equal gaps, none at ends (c) puts boxes in the middle (d) packs boxes at the end
- 7.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
- 8.🚀 Which file should this code go in: .box { padding: 8px; } (a) script.js (b) style.css (c) index.html
- 9.♿ Who uses a screen reader? (a) only coders (b) only teachers (c) only robots (d) people who are blind
- 10.🧭 Which semantic tag holds a side box of tips? (a) <footer> (b) <main> (c) <aside> (d) <article>
- 11.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h5>? (a) <h5> (b) <h2> (c) <h4> (d) <h6>
- 12.🚀 Which file should this code go in: p { color: red; } (a) style.css (b) index.html (c) script.js
- 13.True or false: in <img>, height sets how tall it is. (a) True (b) False
- 14.True or false: <input type="date"> picks a day. (a) True (b) False
- 15.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 16.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the first one (b) neither (c) the later one (d) the shorter one
-
17.🔗 Which address opens when you click this link?
<a href="art.html">Play games</a> (a) art.html (b) quiz.html (c) Play games (d) news.html - 18.🔗 Which tag makes a clickable link? (a) <img> (b) <p> (c) <link> (d) <a>
- 19.🎯 Can many elements share the same class? (a) Yes (b) No
-
20.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="50"> (a) dog.jpg (b) moon.png (c) cake.jpg (d) Birthday cake -
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="200"> (a) Our school bus (b) The full moon (c) moon.png (d) width - 22.♿ What does good colour contrast mean? (a) many bright colours (b) no colours at all (c) text stands out clearly (d) only red text
- 23.⚡ A JavaScript file usually ends with which extension? (a) .jpg (b) .js (c) .html (d) .css
- 24.Which of these goes in the head? (a) <h1> (b) <a> (c) <meta charset="utf-8"> (d) <ul>
- 25.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 3 (d) 4
-
26.📋 Does this list show bullets or numbers?
<ol>
<li>Litchi</li>
<li>Guava</li>
</ol> (a) bullets (b) numbers - 27.🧱 HTML gives a web page its ___. (a) colours (b) speed (c) sound (d) structure
-
28.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<p>Our school trip</p>
<p>Our school trip</p> - 29.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 30.True or false: <article> holds a news story. (a) False (b) True
- 31.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 32.Which of these is true of <main>? (a) holds one blog post (b) helps you move around (c) is the page’s key part (d) sits at the very top
-
33.🔗 Which address opens when you click this link?
<a href="contact.html">About us</a> (a) maths.html (b) https://example.com (c) About us (d) contact.html - 34.🔢 In a basic web page file, which comes FIRST? (a) <html> (b) </head> (c) </html> (d) <!DOCTYPE html>
-
35.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (max-width: 1024px) {
p {
font-size: 18px;
}
} - 36.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h4> or <h3>? (a) <h4> (b) <h2> (c) <h3> (d) <h1>
-
37.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Papaya</li>
<li>Mango</li>
</ul> (a) numbers (b) bullets - 38.Which of these is true of <aside>? (a) is the page’s key part (b) holds the main content (c) holds a side box of tips (d) sits at the very top
- 39.🌈 Which hex code is magenta? (a) #00ffff (b) #000000 (c) #ff00ff (d) #00ff00
- 40.♿ Does this help everyone, or make the page harder to use: images with no alt? (a) helps everyone (b) makes it harder
Answer key
- <ul>
- False
- 16
- packs boxes at the start
- 2
- puts boxes in the middle
- an element selector
- style.css
- people who are blind
- <aside>
- <h6>
- style.css
- True
- True
- Yes
- the later one
- art.html
- <a>
- Yes
- cake.jpg
- The full moon
- text stands out clearly
- .js
- <meta charset="utf-8">
- 6
- numbers
- structure
- 3
- Yes
- True
- an opening tag
- is the page’s key part
- contact.html
- <!DOCTYPE html>
- 18
- <h1>
- bullets
- holds a side box of tips
- #ff00ff
- makes it harder
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids