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.📊 How many cells does this table have in all?
<table>
<tr><td>Orange</td><td>Guava</td><td>Papaya</td><td>Grapes</td></tr>
<tr><td>Orange</td><td>Mango</td><td>Litchi</td><td>Litchi</td></tr>
<tr><td>Grapes</td><td>Guava</td><td>Grapes</td><td>Orange</td></tr>
</table> - 2.True or false: to meet an online stranger is not safe. (a) True (b) False
- 3.Which of these is an empty tag? (a) <h1> (b) <title> (c) <hr> (d) <ul>
- 4.⚡ Which JavaScript word repeats code? (a) if (b) let (c) for (d) console.log()
- 5.🛡️ Online: is it safe to type a password on http? (a) safe (b) not safe
-
6.✍️ Which property is set to 10px in this rule?
p {
margin: 10px;
background-color: yellow;
width: 300px;
} (a) 10px (b) font-weight (c) padding (d) margin - 7.🎯 Which element does the selector li style? (a) <p id="hero"> (b) <li class="red"> (c) <span class="red"> (d) <div>
- 8.🖌️ Which CSS property picks the font style? (a) background-color (b) font-size (c) font-family (d) text-align
-
9.🌍 What is the path in this URL?
https://school.example.in/about.html (a) /maths/tables.html (b) school.example.in (c) /about.html (d) https - 10.Which of these is a weak password? (a) S0lar!Pen#8 (b) riya2014 (c) Blue@Tiger_74 (d) Kite_Fl1es@Dawn
- 11.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h2> or <h1>? (a) <h2> (b) <h6> (c) <h1> (d) <h4>
- 12.True or false: <img> goes in the head. (a) False (b) True
-
13.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>The red kite</p>
<p>Cricket is fun.</p> (a) Our school trip (b) Cricket is fun. (c) The red kite -
14.🔍 One closing tag is missing. Which one?
<h2>Our school trip</h2>
<u>Cricket is fun.</u>
<i>Hello, world! (a) </strong> (b) </u> (c) </h2> (d) </i> - 15.📋 Which list tag is an ordered list? (a) <ul> (b) <li> (c) <ol>
-
16.🔍 One closing tag is missing. Which one?
<small>The red kite</small>
<strong>My pets
<i>Good morning!</i> (a) </b> (b) </i> (c) </small> (d) </strong> -
17.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 240px;
justify-content: flex-end;
}
Inside are 3 boxes, each 60px wide (no margins). -
18.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Jamun</li>
<li>Mango</li>
</ol> (a) bullets (b) numbers - 19.True or false: <li> goes inside ul or ol. (a) False (b) True
- 20.Which of these has a closing tag? (a) <br> (b) <hr> (c) <title> (d) <img>
- 21.🌈 Which hex code is blue? (a) #ff0000 (b) #00ffff (c) #0000ff (d) #00ff00
- 22.🔁 Which word runs code only when something is true? (a) log (b) if (c) let (d) for
- 23.True or false: HTML on its own can pick a random number. (a) True (b) False
-
24.🖌️ What colour are the letters?
h1 {
color: white;
background-color: orange;
text-align: center;
font-size: 24px;
} (a) orange (b) red (c) white - 25.🖌️ Which CSS property colours behind the text? (a) font-weight (b) font-size (c) font-family (d) background-color
- 26.🛡️ Should you share your password with your best friend? (a) Yes (b) No
-
27.🎯 Which CSS selector matches this element?
<h1 class="box" id="top">Hello</h1> (a) #intro (b) #box (c) h2 (d) h1 - 28.📦 In the box model, which part is the line round the box? (a) margin (b) content (c) border (d) padding
-
29.🔒 Is the connection to this address scrambled (encrypted)?
http://www.example.net/index.html (a) Yes (b) No -
30.🔗 Which address opens when you click this link?
<a href="art.html">School news</a> (a) news.html (b) School news (c) quiz.html (d) art.html - 31.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) hides the link (c) makes it blank (d) makes it bold
- 32.🛡️ Online: is it safe to share your password? (a) safe (b) not safe
-
33.✍️ Which property is set to center in this rule?
#top {
color: red;
font-weight: bold;
text-align: center;
} (a) background-color (b) center (c) text-align (d) margin - 34.🌈 In #0000a6 the blue part is the hex number a6. What is it as a normal number?
- 35.🌈 In #rrggbb, which colour do the last two digits give? (a) blue (b) white (c) green (d) red
-
36.🔗 Which words do you click on?
<a href="contact.html">About us</a> (a) Contact us (b) About us (c) href (d) contact.html -
37.📊 How many cells does this table have in all?
<table>
<tr><td>Grapes</td><td>Guava</td><td>Litchi</td><td>Grapes</td></tr>
<tr><td>Jamun</td><td>Grapes</td><td>Jamun</td><td>Papaya</td></tr>
</table> - 38.♿ What does good colour contrast mean? (a) many bright colours (b) text stands out clearly (c) only red text (d) no colours at all
- 39.True or false: CSS changes the text size. (a) True (b) False
-
40.📱 The screen is 540px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 600px) {
p {
font-size: 22px;
}
}
Answer key
- 12
- True
- <hr>
- for
- not safe
- margin
- <li class="red">
- font-family
- /about.html
- riya2014
- <h6>
- False
- Our school trip
- </i>
- <ol>
- </strong>
- 60
- numbers
- True
- <title>
- #0000ff
- if
- False
- white
- background-color
- No
- h1
- border
- No
- art.html
- opens it in a new tab
- not safe
- text-align
- 166
- blue
- About us
- 8
- text stands out clearly
- True
- 22
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids