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: <header> sits at the very top. (a) False (b) True
-
2.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<p>Rain today</p> (a) Our school trip (b) The red kite (c) Rain today (d) Hello, world! - 3.⚡ What does JavaScript add to a web page? (a) the domain name (b) only colours (c) actions and changes (d) the page title
-
4.⚡ What does this code print? (Look at the quotes!)
let x = "1";
let y = 2;
console.log(x + y); (a) Error (b) 3 (c) 12 -
5.🔒 Is the connection to this address scrambled (encrypted)?
https://kids.example.org/games/chess.html (a) No (b) Yes -
6.📋 Does this list show bullets or numbers?
<ol>
<li>Papaya</li>
<li>Jamun</li>
<li>Litchi</li>
</ol> (a) numbers (b) bullets -
7.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>Cricket is fun.</p>
<p>Fun facts</p>
<!-- <p>Rain today</p> --> (a) Rain today (b) Good morning! (c) Cricket is fun. (d) Fun facts - 8.📝 Which input type is for one line of words? (a) date (b) number (c) password (d) text
- 9.🎯 Which element does the selector .red style? (a) <li class="box"> (b) <div class="star"> (c) <li id="red"> (d) <li class="red">
- 10.✍️ How does a CSS comment start? (a) // (b) <!-- (c) # (d) /*
- 11.📋 Which tag goes around each item of a list? (a) <p> (b) <ul> (c) <ol> (d) <li>
-
12.🔗 Which words do you click on?
<a href="about.html">Visit the site</a> (a) Maths fun (b) about.html (c) href (d) Visit the site - 13.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h4> or <h2>? (a) <h2> (b) <h6> (c) <h3> (d) <h4>
- 14.📝 Which tag holds a whole form? (a) <table> (b) <form> (c) <input> (d) <ol>
-
15.🔍 One closing tag is missing. Which one?
<h1>Our school trip
<em>Fun facts</em>
<h3>I love mangoes.</h3> (a) </h3> (b) </em> (c) </h1> (d) </i> -
16.⚖️ What colour is the text of this element?
<h2 class="box" id="hero">Hi</h2>
CSS:
.box { color: black; }
h2 { color: green; }
#hero { color: white; } (a) black (b) purple (c) green (d) white - 17.🔢 When you open a web page, which comes FIRST? (a) you type the URL (b) the browser shows it (c) the browser asks it (d) DNS finds the server
-
18.✍️ What value is given to color in this rule?
.box {
border: 2px solid;
padding: 8px;
color: red;
} (a) center (b) color (c) red (d) 20px - 19.True or false: HTML on its own cannot count button clicks. (a) False (b) True
- 20.Which of these is a closing tag? (a) <li> (b) </body> (c) <b> (d) <h1>
-
21.📱 The screen is 540px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (min-width: 600px) {
p {
font-size: 24px;
}
} (a) No (b) Yes -
22.🌍 What is the protocol in this URL?
http://learn.example.com/games/chess.html (a) learn.example.com (b) https (c) http (d) /games/chess.html - 23.🌍 Which one scrambles data on its way? (a) the URL (b) HTTPS (c) the browser (d) the server
-
24.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Papaya</li>
</ul> (a) numbers (b) bullets - 25.True or false: <img> goes in the body. (a) False (b) True
- 26.What does text-align do? (a) makes letters bigger (b) sets the letter colour (c) makes the text bold (d) centres a heading
- 27.💪 Which justify-content value puts boxes in the middle? (a) flex-start (b) space-between (c) center (d) flex-end
- 28.Which of these does CSS do? (a) gives the page structure (b) puts a picture on a page (c) adds space around boxes (d) reacts to a button click
- 29.🧩 Which language changes the page live? (a) JavaScript (b) HTML (c) CSS
-
30.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<h2>My pets</h2>
<p>My best friend</p>
<p>Rain today</p>
<p>Good morning!</p>
<p>Good morning!</p> - 31.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
-
32.🔗 Which address opens when you click this link?
<a href="games.html">Take the quiz</a> (a) about.html (b) games.html (c) contact.html (d) Take the quiz -
33.♿ Is this heading order correct (no level skipped)?
<h1> → <h1> → <h3> → <h2> (a) No (b) Yes -
34.✍️ How many declarations (property: value pairs) are in this rule?
.box {
padding: 8px;
margin: 10px;
border: 2px solid;
} - 35.What does justify-content: flex-start do? (a) puts boxes in the middle (b) equal gaps, none at ends (c) packs boxes at the start (d) packs boxes at the end
- 36.🚀 Which file should this code go in: <h1>My Site</h1> (a) index.html (b) style.css (c) script.js
- 37.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
-
38.⚡ What number does this code print?
let apples = 8;
apples = apples + 8;
apples = apples - 2;
console.log(apples); -
39.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="sport"> Hockey
<input type="checkbox" name="sport"> Cricket
<input type="checkbox" name="sport"> Kabaddi
</form> -
40.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (min-width: 600px) {
p {
font-size: 16px;
}
}
Answer key
- True
- Hello, world!
- actions and changes
- 12
- Yes
- numbers
- Rain today
- text
- <li class="red">
- /*
- <li>
- Visit the site
- <h6>
- <form>
- </h1>
- white
- you type the URL
- red
- True
- </body>
- No
- http
- HTTPS
- bullets
- True
- centres a heading
- center
- adds space around boxes
- JavaScript
- 5
- <ol>
- games.html
- No
- 3
- packs boxes at the start
- index.html
- a web browser
- 14
- 3
- 12
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids