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 is the odd one out? (a) adds space around boxes (b) lays out the page (c) gives the page structure (d) changes the text size
- 2.🧭 Is <header> semantic or not semantic? (a) semantic (b) not semantic
- 3.🌈 Which colour is rgb(0, 0, 255)? (a) yellow (b) black (c) blue (d) red
- 4.📦 In the box model, which part is the text or picture? (a) content (b) margin (c) border (d) padding
- 5.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h6>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
- 6.🌐 Which one colours code to help us? (a) a web browser (b) a web server (c) a code editor
-
7.📋 What number does the browser show next to “Papaya”?
<ol start="6">
<li>Orange</li>
<li>Guava</li>
<li>Papaya</li>
</ol> -
8.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Jamun</li>
<li>Grapes</li>
</ul> (a) numbers (b) bullets - 9.📝 What does a password box show instead of letters? (a) numbers (b) dots (c) emojis (d) capital letters
- 10.📦 In the box model, which part is the gap round content? (a) margin (b) content (c) border (d) padding
-
11.🎯 Which CSS selector matches this element?
<span class="note" id="intro">Hello</span> (a) p (b) #note (c) span (d) .intro -
12.⚖️ What colour is the text of this element?
<p class="big" id="intro">Hi</p>
CSS:
p { color: orange; }
#intro { color: red; }
.big { color: green; } (a) white (b) red (c) green (d) orange - 13.Which of these is a strong password? (a) iloveyou (b) 111111 (c) Kite_Fl1es@Dawn (d) 123456
-
14.📊 How many rows does this table have?
<table>
<tr><td>Banana</td><td>Mango</td><td>Banana</td></tr>
<tr><td>Mango</td><td>Guava</td><td>Papaya</td></tr>
<tr><td>Banana</td><td>Mango</td><td>Orange</td></tr>
<tr><td>Guava</td><td>Banana</td><td>Mango</td></tr>
</table> - 15.✍️ CSS declarations go inside which brackets? (a) { } (b) [ ] (c) < > (d) ( )
- 16.🖼️ Which attribute of <img> names the picture file? (a) alt (b) height (c) width (d) src
- 17.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <ol> (d) <hr>
- 18.📄 What is the first line of an HTML5 page? (a) <body> (b) <head> (c) <!DOCTYPE html> (d) <html>
- 19.💪 Which flexbox property sets space between boxes? (a) gap (b) flex-direction (c) justify-content (d) display: flex
- 20.🎯 What kind of selector is h1? (a) an id selector (b) a class selector (c) an element selector
-
21.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 190px;
justify-content: flex-end;
}
Inside are 3 boxes, each 60px wide (no margins). - 22.♿ Does this help everyone, or make the page harder to use: colour as the only clue? (a) makes it harder (b) helps everyone
- 23.✍️ Which sign ends each CSS declaration? (a) , (b) ; (c) . (d) :
- 24.Which colour pair is hard to read? (a) white on black (b) black on white (c) red on green (d) white on dark blue
-
25.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>My best friend</p>
<p>Fun facts</p>
<p>My best friend</p>
<p>Fun facts</p>
<p>Hello, world!</p> - 26.🌍 Which one shows the page to you? (a) the URL (b) HTTPS (c) the browser (d) the server
- 27.📦 In the box model, which part is the gap to other boxes? (a) border (b) content (c) margin (d) padding
-
28.🌍 What is the domain name in this URL?
https://www.example.com/index.html (a) https (b) www.example.com (c) /index.html (d) kids.example.org - 29.True or false: <ul><li>Art</li></ul> goes in script.js. (a) True (b) False
- 30.Which of these is a strong password? (a) qwerty (b) S0lar!Pen#8 (c) password (d) iloveyou
- 31.What does color do? (a) sets the letter colour (b) makes letters bigger (c) picks the font style (d) colours behind the text
-
32.🔍 One closing tag is missing. Which one?
<u>Fun facts</u>
<small>Rain today
<p>My pets</p> (a) </u> (b) </p> (c) </em> (d) </small> - 33.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 34.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) at the bottom (d) in a big heading
-
35.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<h2>The red kite</h2>
<h2>The red kite</h2> -
36.♿ Is this heading order correct (no level skipped)?
<h1> → <h1> → <h2> → <h2> (a) No (b) Yes - 37.True or false: <tr> holds the whole table. (a) True (b) False
-
38.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Rain today</p>
<h2>Hello, world!</h2>
<h2>I love mangoes.</h2> - 39.⚡ Which JavaScript word runs code when true? (a) let (b) if (c) alert() (d) console.log()
- 40.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) index.html (b) style.css (c) script.js
Answer key
- gives the page structure
- semantic
- blue
- content
- <h2>
- a code editor
- 8
- bullets
- dots
- padding
- span
- red
- Kite_Fl1es@Dawn
- 4
- { }
- src
- <ol>
- <!DOCTYPE html>
- gap
- an element selector
- 10
- makes it harder
- ;
- red on green
- 6
- the browser
- margin
- www.example.com
- False
- S0lar!Pen#8
- sets the letter colour
- </small>
- No
- on the browser tab
- 1
- Yes
- False
- 2
- if
- style.css
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids