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 list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
- 2.What does font-weight do? (a) centres a heading (b) makes the text bold (c) colours behind the text (d) makes letters bigger
- 3.🔤 In “HTML”, what does the M stand for? (a) Markup (b) Machine (c) Modern (d) Mouse
- 4.📝 What does <br> do? (a) makes a list (b) starts a new line (c) makes text bold (d) adds a picture
- 5.💬 Does the browser show comments on the page? (a) Yes (b) No
-
6.🌍 What is the domain name in this URL?
http://kids.example.org/art/gallery.html (a) school.example.in (b) /art/gallery.html (c) http (d) kids.example.org - 7.True or false: <nav> holds the logo and title. (a) True (b) False
-
8.🔁 What does this code print?
let temp = 40;
if (temp >= 41) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Hot (b) Cool - 9.🧩 Which language checks a quiz answer? (a) CSS (b) JavaScript (c) HTML
- 10.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h2> or <h5>? (a) <h2> (b) <h1> (c) <h3> (d) <h5>
- 11.🎯 What kind of selector is .card? (a) an element selector (b) a class selector (c) an id selector
-
12.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 150px;
justify-content: flex-end;
}
Inside are 2 boxes, each 60px wide (no margins). -
13.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 240px;
padding: 15px;
border: 5px solid black;
margin: 5px;
} -
14.⚖️ What colour is the text of this element?
<h2 class="red" id="intro">Hi</h2>
CSS:
h2 { color: blue; }
#intro { color: yellow; } (a) blue (b) yellow (c) white (d) red -
15.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>I love mangoes.</p> -->
<!-- <p>The red kite</p> -->
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Hello, world!</p> --> - 16.True or false: .menu is an id selector. (a) False (b) True
- 17.✍️ In color: blue; which part is the property? (a) : (b) ; (c) color (d) blue
- 18.🌈 Which colour of light is strongest in rgb(71, 162, 9)? (a) green (b) blue (c) red
-
19.🔗 Which address opens when you click this link?
<a href="maths.html">Maths fun</a> (a) Maths fun (b) maths.html (c) news.html (d) art.html -
20.🔍 One closing tag is missing. Which one?
<strong>Rain today</strong>
<u>Hello, world!
<em>Fun facts</em> (a) </em> (b) </h3> (c) </strong> (d) </u> -
21.🖌️ What colour is behind the letters?
p {
color: purple;
text-align: left;
font-size: 20px;
background-color: green;
} (a) green (b) purple (c) red - 22.🌈 Which colour is #00ff00? (a) blue (b) bright green (c) red (d) white
- 23.🌈 Which hex code is magenta? (a) #ff0000 (b) #00ff00 (c) #000000 (d) #ff00ff
- 24.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
-
25.🔁 What does this code print?
let age = 16;
if (age >= 26) {
console.log("teen");
} else {
console.log("child");
} (a) teen (b) child - 26.🎯 Which element does the selector .note style? (a) <span class="note"> (b) <p class="red"> (c) <span class="big"> (d) <span id="note">
-
27.🔗 Where does this link open?
<a href="games.html" target="_blank">Visit the site</a> (a) in the same tab (b) in a new tab - 28.📄 Where does the text of <title> appear? (a) nowhere (b) at the bottom (c) in a big heading (d) on the browser tab
- 29.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
30.🔒 Is the connection to this address scrambled (encrypted)?
https://school.example.in/art/gallery.html (a) No (b) Yes -
31.🔗 Which address opens when you click this link?
<a href="art.html">About us</a> (a) art.html (b) About us (c) news.html (d) quiz.html - 32.⚡ Which JavaScript word makes a new variable? (a) if (b) console.log() (c) alert() (d) let
- 33.🎯 Which element does the selector #main style? (a) <span class="main"> (b) <span id="logo"> (c) <p class="big"> (d) <span id="main">
-
34.🖌️ How big is the text, in px?
p {
text-align: left;
color: orange;
background-color: red;
font-size: 20px;
} - 35.Which of these has a closing tag? (a) <br> (b) <img> (c) <li> (d) <hr>
- 36.Which colour pair is easy to read? (a) red on green (b) pink on red (c) black on white (d) yellow on white
- 37.🔐 Is iloveyou a strong or a weak password? (a) weak (b) strong
- 38.🌈 What is the biggest number one colour can have in rgb()? (a) 1000 (b) 100 (c) 255 (d) 99
- 39.📱 What does a media query check? (a) the page title (b) the time of day (c) the battery level (d) the screen width
- 40.🎯 How many elements on a page should have the same id? (a) 5 (b) 2 (c) any number (d) 1
Answer key
- <ul>
- makes the text bold
- Markup
- starts a new line
- No
- kids.example.org
- False
- Cool
- JavaScript
- <h1>
- a class selector
- 30
- 290
- yellow
- 1
- False
- color
- green
- maths.html
- </u>
- green
- bright green
- #ff00ff
- <
- child
- <span class="note">
- in a new tab
- on the browser tab
- a closing tag
- Yes
- art.html
- let
- <span id="main">
- 20
- <li>
- black on white
- weak
- 255
- the screen width
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids