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: to download from pop-ups is not safe. (a) False (b) True
- 2.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) <!DOCTYPE html> (c) </head> (d) </body>
- 3.📄 Can HTML on its own count button clicks? (a) Yes (b) No
-
4.✍️ How many declarations (property: value pairs) are in this rule?
#top {
width: 300px;
padding: 8px;
font-size: 20px;
} -
5.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 270px;
padding: 25px;
border: 1px solid black;
margin: 0px;
} -
6.🌍 What is the path in this URL?
https://www.example.com/news/today.html (a) www.example.com (b) /games/chess.html (c) https (d) /news/today.html -
7.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (max-width: 600px) {
p {
font-size: 10px;
}
} - 8.True or false: the server stores the site’s files. (a) True (b) False
- 9.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <ul> (d) <hr>
- 10.Which of these goes in the body? (a) <style> (b) <h1> (c) <title> (d) <link rel="stylesheet">
- 11.True or false: <h1> goes in the head. (a) False (b) True
- 12.🎯 Which sign starts a class selector? (a) & (b) # (c) . (d) @
-
13.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 360px;
justify-content: space-between;
}
Inside are 3 boxes, each 100px wide (no margins). - 14.✍️ Which sign goes between a property and its value? (a) ; (b) = (c) : (d) -
- 15.🌍 Which one is the page’s address? (a) the server (b) HTTPS (c) the URL (d) the browser
- 16.True or false: <td> makes a heading cell. (a) False (b) True
- 17.📄 Can HTML on its own pick a random number? (a) Yes (b) No
- 18.📝 What does <br> do? (a) makes a list (b) makes text bold (c) starts a new line (d) adds a picture
- 19.🌈 In #006700 the green part is the hex number 67. What is it as a normal number?
-
20.🔗 Where does this link open?
<a href="games.html">Contact us</a> (a) in the same tab (b) in a new tab - 21.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h2> or <h5>? (a) <h2> (b) <h1> (c) <h5> (d) <h6>
-
22.📱 The screen is 820px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (max-width: 600px) {
p {
font-size: 12px;
}
} (a) No (b) Yes -
23.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Jamun</li>
<li>Banana</li>
</ul> (a) bullets (b) numbers - 24.True or false: <ul> is one item of a list. (a) True (b) False
- 25.🎯 Which element does the selector .red style? (a) <p id="red"> (b) <p class="box"> (c) <h1 class="star"> (d) <p class="red">
-
26.🔁 How many times does this code print “Hello”?
for (let i = 0; i < 5; i++) {
console.log("Hello");
} - 27.What does font-weight do? (a) makes the text bold (b) picks the font style (c) colours behind the text (d) makes letters bigger
-
28.⚖️ What colour is the text of this element?
<p class="big" id="main">Hi</p>
CSS:
p { color: white; }
p { color: black; } (a) white (b) blue (c) black (d) purple - 29.True or false: in <img>, src names the picture file. (a) False (b) True
- 30.🔍 Which is the odd one out? (a) adds space around boxes (b) sets colours and fonts (c) changes the text size (d) changes the page live
- 31.🎯 Which element does the selector .red style? (a) <div class="box"> (b) <div id="red"> (c) <span class="star"> (d) <div class="red">
- 32.🏷️ HTML marks up text using ___. (a) tags (b) wires (c) keys (d) pixels
-
33.📋 What number does the browser show next to “Jamun”?
<ol start="2">
<li>Banana</li>
<li>Orange</li>
<li>Mango</li>
<li>Guava</li>
<li>Jamun</li>
</ol> - 34.True or false: <input> has a closing tag. (a) True (b) False
-
35.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>My pets</p> -->
<!-- <p>Hello, world!</p> -->
<!-- <p>My best friend</p> --> - 36.True or false: JavaScript rounds box corners. (a) True (b) False
- 37.True or false: <ol> is an unordered list. (a) False (b) True
-
38.⚖️ What colour is the text of this element?
<h2 class="big" id="end">Hi</h2>
CSS:
#end { color: black; }
h2 { color: orange; } (a) orange (b) yellow (c) black (d) green - 39.🏷️ Which is the closing tag for <em>? (a) <\em> (b) <em/> (c) </em> (d) <em>
-
40.⚡ What number does this code print?
let a = 4;
let b = 10;
console.log(a * b);
Answer key
- True
- <!DOCTYPE html>
- No
- 3
- 322
- /news/today.html
- 12
- True
- <ul>
- <h1>
- False
- .
- 30
- :
- the URL
- False
- No
- starts a new line
- 103
- in the same tab
- <h1>
- No
- bullets
- False
- <p class="red">
- 5
- makes the text bold
- black
- True
- changes the page live
- <div class="red">
- tags
- 6
- False
- 1
- False
- False
- black
- </em>
- 40
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids