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.📝 What does <br> do? (a) makes text bold (b) starts a new line (c) adds a picture (d) makes a list
- 2.🔢 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
- 3.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h6> or <h3>? (a) <h6> (b) <h2> (c) <h3> (d) <h4>
- 4.🌈 Which hex code is cyan? (a) #00ffff (b) #ff0000 (c) #00ff00 (d) #ffffff
-
5.🔍 One closing tag is missing. Which one?
<i>The red kite</i>
<h3>Hello, world!
<p>My best friend</p> (a) </u> (b) </h3> (c) </i> (d) </p> -
6.⚡ What number does this code print?
let score = 6;
score = score + 2;
score = score - 1;
console.log(score); - 7.✍️ CSS declarations go inside which brackets? (a) [ ] (b) ( ) (c) < > (d) { }
- 8.🚀 Which file should this code go in: score = score + 1; (a) style.css (b) script.js (c) index.html
- 9.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
- 10.True or false: <input type="checkbox"> picks a day. (a) False (b) True
- 11.🧭 Why use <nav> instead of <div> for a menu? (a) it tells its meaning (b) it makes text red (c) it loads faster (d) it adds pictures
-
12.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 160px;
padding: 30px;
border: 3px solid black;
margin: 5px;
} - 13.True or false: <br> has a closing tag. (a) False (b) True
- 14.🔁 When does the else part run? (a) never (b) always (c) when if is true (d) when if is false
- 15.📋 Which tag goes around each item of a list? (a) <ol> (b) <p> (c) <li> (d) <ul>
- 16.Which of these is a strong password? (a) abcd1234 (b) Mango#Kite29! (c) password (d) 123456
-
17.🔗 Which address opens when you click this link?
<a href="news.html">About us</a> (a) quiz.html (b) news.html (c) About us (d) games.html - 18.🔢 To build and share your first web page, which comes LAST? (a) add CSS styles (b) write the HTML (c) plan what to show (d) publish it online
- 19.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 20.True or false: <input> has a closing tag. (a) True (b) False
-
21.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 8; i++) {
total = total + 6;
}
console.log(total); - 22.⚡ Where does console.log() show its output? (a) on the printer (b) on the title bar (c) in the console (d) in the address bar
- 23.True or false: margin is a solid or dotted edge. (a) False (b) True
- 24.🧭 Which semantic tag holds the menu of links? (a) <aside> (b) <nav> (c) <header> (d) <main>
- 25.🌈 Which colour is rgb(255, 255, 255)? (a) white (b) magenta (c) cyan (d) yellow
-
26.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 4; i++) {
total = total + 7;
}
console.log(total); - 27.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) <!DOCTYPE html> (c) </html> (d) </head>
- 28.⚡ Which tag holds JavaScript in a page? (a) <js> (b) <style> (c) <code> (d) <script>
- 29.What does font-weight do? (a) makes the text bold (b) centres a heading (c) sets the letter colour (d) makes letters bigger
- 30.✍️ Which sign goes between a property and its value? (a) ; (b) : (c) = (d) -
- 31.⚡ Which word makes a new variable? (a) make (b) give (c) let (d) put
-
32.⚖️ What colour is the text of this element?
<h2 class="big" id="main">Hi</h2>
CSS:
h2 { color: red; }
h2 { color: green; } (a) green (b) orange (c) red (d) blue -
33.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Mars is red.</p>
</body>
</html> (a) My Hobbies (b) body (c) Mars is red. (d) Welcome! - 34.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) at the bottom (d) on the browser tab
-
35.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="50"> (a) fort.jpg (b) Our school bus (c) tiger.jpg (d) bus.jpg - 36.📝 Which tag holds a whole form? (a) <form> (b) <input> (c) <table> (d) <ol>
- 37.🎨 Which attribute adds CSS inside one tag? (a) href (b) src (c) alt (d) style
- 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dot . (d) a dollar $
- 39.🔢 To build and share your first web page, which comes first: “plan what to show” or “test in a browser”? (a) test in a browser (b) plan what to show
-
40.🔒 Is the connection to this address scrambled (encrypted)?
https://school.example.in/games/chess.html (a) Yes (b) No
Answer key
- starts a new line
- plan what to show
- <h2>
- #00ffff
- </h3>
- 7
- { }
- script.js
- <ul>
- False
- it tells its meaning
- 236
- False
- when if is false
- <li>
- Mango#Kite29!
- news.html
- publish it online
- Yes
- False
- 48
- in the console
- False
- <nav>
- white
- 28
- <!DOCTYPE html>
- <script>
- makes the text bold
- :
- let
- green
- Welcome!
- on the browser tab
- bus.jpg
- <form>
- style
- a slash /
- plan what to show
- Yes
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids