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.True or false: margin is the line round the box. (a) True (b) False
-
2.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Cricket is fun.</h2>
<p>Good morning!</p> -
3.✍️ What value is given to width in this rule?
h1 {
background-color: yellow;
width: 300px;
} (a) red (b) italic (c) 300px (d) width -
4.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<h2>My pets</h2>
<p>The red kite</p> - 5.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
- 6.Which of these is the border? (a) the gap to other boxes (b) a solid or dotted edge (c) space inside the border (d) the text or picture
- 7.Which of these does CSS do? (a) rounds box corners (b) counts down a timer (c) makes headings and lists (d) shows a pop-up message
- 8.True or false: JavaScript makes a link. (a) False (b) True
- 9.True or false: <input type="radio"> picks a day. (a) True (b) False
-
10.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Orange</li>
<li>Litchi</li>
</ul> - 11.True or false: <table> goes in the body. (a) False (b) True
- 12.What does font-size do? (a) colours behind the text (b) picks the font style (c) sets the letter colour (d) makes letters bigger
- 13.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h3> or <h4>? (a) <h4> (b) <h1> (c) <h2> (d) <h3>
-
14.🌍 What is the path in this URL?
http://school.example.in/about.html (a) school.example.in (b) http (c) /maths/tables.html (d) /about.html - 15.Which of these is an empty tag? (a) <h1> (b) <li> (c) <p> (d) <input>
- 16.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
- 17.Which of these is a weak password? (a) Rain#Drop_42! (b) password (c) Kite_Fl1es@Dawn (d) S0lar!Pen#8
-
18.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 160px;
padding: 10px;
border: 1px solid black;
margin: 15px;
} - 19.True or false: <footer> sits at the bottom. (a) False (b) True
- 20.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
-
21.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="100"> -
22.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="350"> (a) The full moon (b) width (c) Our school bus (d) moon.png - 23.True or false: in <img>, width describes the picture. (a) True (b) False
- 24.Which of these is a weak password? (a) S0lar!Pen#8 (b) Kite_Fl1es@Dawn (c) riya2014 (d) Rain#Drop_42!
- 25.Which of these does HTML do? (a) puts a picture on a page (b) rounds box corners (c) sets colours and fonts (d) adds space around boxes
-
26.⚖️ What colour is the text of this element?
<h1 class="red" id="main">Hi</h1>
CSS:
h1 { color: yellow; }
h1 { color: blue; } (a) blue (b) yellow (c) black (d) red -
27.⚡ What does this code print? (Look at the quotes!)
let x = "7";
let y = 4;
console.log(x + y); (a) 74 (b) Error (c) 11 -
28.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="300"> (a) kite.png (b) width (c) A red kite (d) Map of India - 29.Which of these does JavaScript do? (a) rounds box corners (b) makes a form box (c) lays out the page (d) counts down a timer
- 30.🎯 How many elements on a page should have the same id? (a) any number (b) 1 (c) 5 (d) 2
-
31.♿ Is this heading order correct (no level skipped)?
<h1> → <h3> → <h3> → <h3> (a) No (b) Yes - 32.🚀 Which file is best for the colours and fonts? (a) index.html (b) photo.jpg (c) style.css (d) script.js
- 33.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h4>
- 34.🎨 What does CSS stand for? (a) Creative Sheet System (b) Computer Style Sheets (c) Colourful Site Styles (d) Cascading Style Sheets
- 35.📊 Which tag makes a heading cell? (a) <caption> (b) <tr> (c) <table> (d) <th>
- 36.🌗 Is red on green easy or hard to read? (a) hard to read (b) easy to read
- 37.🎨 A CSS file usually ends with which extension? (a) .js (b) .css (c) .html (d) .png
- 38.🔁 What does i++ do? (a) prints i (b) adds 1 to i (c) takes 1 from i (d) doubles i
-
39.📊 How many cells are in each row?
<table>
<tr><td>Jamun</td><td>Grapes</td></tr>
<tr><td>Papaya</td><td>Litchi</td></tr>
<tr><td>Mango</td><td>Guava</td></tr>
</table> - 40.♿ Does this help everyone, or make the page harder to use: use big enough text? (a) makes it harder (b) helps everyone
Answer key
- False
- 2
- 300px
- 2
- in the head
- a solid or dotted edge
- rounds box corners
- False
- False
- 3
- True
- makes letters bigger
- <h1>
- /about.html
- <input>
- <ul>
- password
- 212
- True
- opens it in a new tab
- 100
- The full moon
- False
- riya2014
- puts a picture on a page
- blue
- 74
- A red kite
- counts down a timer
- 1
- No
- style.css
- <h2>
- Cascading Style Sheets
- <th>
- hard to read
- .css
- adds 1 to i
- 2
- helps everyone
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids