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 BIGGEST text: <h2>, <h1>, <h6> or <h5>? (a) <h6> (b) <h1> (c) <h2> (d) <h5>
- 2.True or false: #end is an id selector. (a) True (b) False
- 3.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h1> or <h4>? (a) <h1> (b) <h5> (c) <h2> (d) <h4>
-
4.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 110px;
justify-content: space-between;
}
Inside are 2 boxes, each 50px wide (no margins). -
5.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 600px) {
p {
font-size: 22px;
}
} - 6.True or false: in <img>, src names the picture file. (a) False (b) True
-
7.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 310px;
justify-content: flex-start;
}
Inside are 3 boxes, each 100px wide (no margins). - 8.Which of these is a weak password? (a) S0lar!Pen#8 (b) abcd1234 (c) Rain#Drop_42! (d) Kite_Fl1es@Dawn
- 9.True or false: padding is the text or picture. (a) False (b) True
- 10.🎯 Which element does the selector #hero style? (a) <h1 class="hero"> (b) <h2 class="menu"> (c) <h1 id="top"> (d) <h1 id="hero">
- 11.📄 Can HTML on its own run a game loop? (a) No (b) Yes
- 12.True or false: <input type="checkbox"> lets you tick many. (a) True (b) False
-
13.💬 Which text will NOT show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>My pets</p>
<p>Hello, world!</p> (a) My pets (b) Cricket is fun. (c) Hello, world! -
14.🖌️ What colour is behind the letters?
h2 {
text-align: left;
background-color: red;
font-size: 24px;
color: green;
} (a) red (b) blue (c) green - 15.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 16.True or false: HTML on its own can keep a high score. (a) False (b) True
-
17.🔠 How many headings are in this code?
<h1>My best friend</h1>
<p>The red kite</p>
<p>Our school trip</p>
<h2>I love mangoes.</h2>
<h3>Rain today</h3> - 18.🧭 Which semantic tag holds the main content? (a) <footer> (b) <main> (c) <header> (d) <nav>
-
19.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) index.html (b) My drawings (c) Riya’s Recipes (d) I like to read. -
20.✍️ What value is given to width in this rule?
.note {
border: 2px solid;
width: 300px;
text-align: center;
font-weight: bold;
} (a) 300px (b) red (c) width (d) italic -
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="50"> (a) A red kite (b) A tiger asleep (c) width (d) tiger.jpg -
22.✍️ What value is given to font-style in this rule?
h1 {
width: 300px;
font-style: italic;
font-size: 20px;
color: red;
} (a) italic (b) red (c) font-style (d) 20px - 23.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h2>? (a) <h6> (b) <h1> (c) <h2> (d) <h5>
- 24.True or false: <tr> gives the table a title. (a) True (b) False
-
25.✍️ Which property is set to red in this rule?
h2 {
color: red;
text-align: center;
} (a) color (b) font-size (c) red (d) text-align - 26.True or false: HTTPS scrambles data on its way. (a) True (b) False
- 27.♿ Who uses a screen reader? (a) people who are blind (b) only coders (c) only robots (d) only teachers
- 28.True or false: <ul> is an empty tag. (a) False (b) True
-
29.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 320px;
justify-content: center;
}
Inside are 3 boxes, each 80px wide (no margins). -
30.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="150"> (a) map.png (b) width (c) Birthday cake (d) Map of India - 31.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
- 32.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
-
33.🖌️ How big is the text, in px?
h1 {
color: red;
background-color: purple;
text-align: center;
font-size: 20px;
} -
34.📱 The screen is 375px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (min-width: 480px) {
p {
font-size: 18px;
}
} (a) Yes (b) No - 35.✍️ Which sign goes between a property and its value? (a) ; (b) - (c) : (d) =
- 36.📊 Where do <td> cells go? (a) inside a <p> (b) inside a <li> (c) inside the <head> (d) inside a <tr>
-
37.🔗 Which address opens when you click this link?
<a href="contact.html">Contact us</a> (a) https://example.com (b) Contact us (c) maths.html (d) contact.html - 38.📝 Does <meta> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 39.🔢 To build and share your first web page, which comes first: “publish it online” or “plan what to show”? (a) publish it online (b) plan what to show
-
40.✍️ How many declarations (property: value pairs) are in this rule?
#top {
width: 300px;
}
Answer key
- <h1>
- True
- <h5>
- 10
- 22
- True
- 10
- abcd1234
- False
- <h1 id="hero">
- No
- True
- Cricket is fun.
- red
- a closing tag
- False
- 3
- <main>
- Riya’s Recipes
- 300px
- A tiger asleep
- italic
- <h1>
- False
- color
- True
- people who are blind
- False
- 40
- Map of India
- in the body
- <ul>
- 20
- No
- :
- inside a <tr>
- contact.html
- an empty tag
- plan what to show
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids