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.🛡️ Online: is it safe to log out on shared PCs? (a) safe (b) not safe
- 2.🌈 Which colour of light is strongest in rgb(109, 215, 58)? (a) blue (b) red (c) green
- 3.What does color do? (a) centres a heading (b) makes the text bold (c) colours behind the text (d) sets the letter colour
-
4.🔗 Which address opens when you click this link?
<a href="https://example.com">School news</a> (a) art.html (b) https://example.com (c) School news (d) maths.html -
5.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="fruit"> Mango
<input type="radio" name="fruit"> Guava
<input type="radio" name="fruit"> Papaya
<input type="radio" name="fruit"> Banana
<input type="radio" name="fruit"> Litchi
</form> - 6.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) G (c) Z (d) F
- 7.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
- 8.⚖️ Which selector is the weakest? (a) an id selector (b) a class selector (c) an element selector
- 9.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) at the bottom (d) on the browser tab
- 10.True or false: a web browser has an address bar. (a) True (b) False
-
11.🌍 What is the protocol in this URL?
http://school.example.in/index.html (a) http (b) /index.html (c) school.example.in (d) https - 12.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p/> (c) <p> (d) </p>
- 13.⚡ Which JavaScript word writes in the console? (a) for (b) if (c) console.log() (d) let
-
14.⚖️ What colour is the text of this element?
<h1 class="red" id="end">Hi</h1>
CSS:
#end { color: red; }
.red { color: purple; }
h1 { color: white; } (a) black (b) purple (c) red (d) white -
15.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="250"> - 16.📄 Can HTML on its own make links to pages? (a) Yes (b) No
- 17.♿ Does this help everyone, or make the page harder to use: images with no alt? (a) helps everyone (b) makes it harder
-
18.🔁 What is the LAST number this code prints?
for (let i = 0; i < 20; i = i + 4) {
console.log(i);
} - 19.True or false: img is an element selector. (a) False (b) True
-
20.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 150px;
padding: 15px;
border: 1px solid black;
margin: 10px;
} - 21.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h3> (d) <h1>
- 22.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
23.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 80px;
padding: 30px;
border: 4px solid black;
margin: 0px;
} -
24.⚖️ What colour is the text of this element?
<p class="red" id="intro">Hi</p>
CSS:
.red { color: orange; }
#intro { color: red; } (a) red (b) green (c) orange (d) yellow -
25.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>My pets</p>
<!-- <p>Good morning!</p> -->
<p>Our school trip</p>
<p>Hello, world!</p> - 26.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <hr> (c) <ul> (d) <br>
- 27.🛡️ Online: is it safe to check for https first? (a) safe (b) not safe
- 28.True or false: to check for https first is not safe. (a) True (b) False
- 29.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 30.📱 max-width: 600px applies when the screen is ___. (a) turned off (b) 600px or wider (c) exactly 1000px (d) 600px or narrower
- 31.True or false: <ol> lists things in any order. (a) True (b) False
- 32.🎯 Which element does the selector p style? (a) <li id="main"> (b) <p class="red"> (c) <h1> (d) <h2 class="red">
-
33.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (min-width: 600px) {
p {
font-size: 24px;
}
} -
34.📋 Does this list show bullets or numbers?
<ol>
<li>Banana</li>
<li>Jamun</li>
</ol> (a) numbers (b) bullets -
35.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<!-- <p>My pets</p> -->
<p>Our school trip</p> - 36.Which of these goes in the body? (a) <ul> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <title>
- 37.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 38.🖌️ Which CSS property colours behind the text? (a) font-weight (b) font-size (c) background-color (d) text-align
- 39.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
40.⚖️ What colour is the text of this element?
<h2 class="star" id="top">Hi</h2>
CSS:
.star { color: black; }
.star { color: green; } (a) red (b) black (c) green (d) yellow
Answer key
- safe
- green
- sets the letter colour
- https://example.com
- 1
- F
- <a>
- an element selector
- on the browser tab
- True
- http
- </p>
- console.log()
- red
- 250
- Yes
- makes it harder
- 16
- True
- 202
- <h6>
- an opening tag
- 148
- red
- 3
- <ol>
- safe
- False
- has a closing tag
- 600px or narrower
- False
- <p class="red">
- 24
- numbers
- 2
- <ul>
- an opening tag
- background-color
- an opening tag
- green
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids