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.📄 Can HTML on its own make a form? (a) No (b) Yes
-
2.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>Try this poha.</p>
</body>
</html> (a) Try this poha. (b) Class 7 Blog (c) index.html (d) All about me - 3.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h3> or <h4>? (a) <h1> (b) <h3> (c) <h2> (d) <h4>
-
4.⚖️ What colour is the text of this element?
<h2 class="menu" id="intro">Hi</h2>
CSS:
h2 { color: white; }
h2 { color: yellow; } (a) green (b) white (c) yellow (d) blue -
5.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th></tr>
<tr><td>Papaya</td><td>Banana</td></tr>
</table> - 6.🌈 Which colour of light is strongest in rgb(77, 78, 185)? (a) green (b) blue (c) red
- 7.💪 Which flexbox property turns on flexbox? (a) flex-direction (b) display: flex (c) align-items (d) gap
-
8.⚖️ What colour is the text of this element?
<h2 class="red" id="intro">Hi</h2>
CSS:
.red { color: yellow; }
.red { color: blue; } (a) blue (b) red (c) yellow (d) white -
9.🔗 Which address opens when you click this link?
<a href="https://example.com">Play games</a> (a) Play games (b) maths.html (c) art.html (d) https://example.com - 10.🔠 How many heading levels does HTML have? (a) 4 (b) 3 (c) 6 (d) 10
-
11.🔗 Which address opens when you click this link?
<a href="news.html">About us</a> (a) news.html (b) About us (c) quiz.html (d) games.html -
12.⚖️ What colour is the text of this element?
<h1 class="big" id="main">Hi</h1>
CSS:
#main { color: red; }
#main { color: white; } (a) orange (b) red (c) purple (d) white - 13.True or false: the server asks for a web page. (a) False (b) True
-
14.🎯 Which CSS selector matches this element?
<span class="note" id="hero">Hello</span> (a) #top (b) #hero (c) .big (d) .hero -
15.💬 How many paragraphs show on the page?
<p>My pets</p>
<!-- <p>Cricket is fun.</p> -->
<p>Rain today</p>
<p>Hello, world!</p> - 16.🔍 Which is the odd one out? (a) opens web pages for us (b) turns HTML into a page (c) has an address bar (d) sends pages over the net
- 17.📊 Which tag holds the whole table? (a) <table> (b) <tr> (c) <th> (d) <td>
- 18.What does justify-content: flex-start do? (a) equal gaps, none at ends (b) packs boxes at the start (c) puts boxes in the middle (d) packs boxes at the end
-
19.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="100"> -
20.⚖️ What colour is the text of this element?
<h1 class="box" id="intro">Hi</h1>
CSS:
.box { color: orange; }
#intro { color: white; }
h1 { color: black; } (a) orange (b) red (c) white (d) black - 21.🎨 What does CSS stand for? (a) Creative Sheet System (b) Cascading Style Sheets (c) Colourful Site Styles (d) Computer Style Sheets
-
22.🔁 How many numbers does this code print?
for (let i = 0; i < 14; i = i + 4) {
console.log(i);
} - 23.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
-
24.✍️ Which property is set to center in this rule?
#top {
text-align: center;
width: 300px;
} (a) text-align (b) background-color (c) center (d) margin -
25.⚡ What does this code print? (Look at the quotes!)
let x = "8";
let y = 2;
console.log(x + y); (a) 10 (b) Error (c) 82 -
26.✍️ How many declarations (property: value pairs) are in this rule?
h2 {
background-color: yellow;
padding: 8px;
font-weight: bold;
text-align: center;
} - 27.🧩 Which language rounds box corners? (a) JavaScript (b) CSS (c) HTML
- 28.True or false: <input type="password"> picks a day. (a) False (b) True
- 29.🔍 Which is the odd one out? (a) sets colours and fonts (b) changes the text size (c) changes the page live (d) adds space around boxes
- 30.What does justify-content: space-between do? (a) packs boxes at the end (b) packs boxes at the start (c) puts boxes in the middle (d) equal gaps, none at ends
- 31.True or false: JavaScript adds space around boxes. (a) True (b) False
- 32.🌈 Which colour is rgb(255, 0, 0)? (a) cyan (b) white (c) bright green (d) red
- 33.True or false: to type a password on http is not safe. (a) False (b) True
-
34.📊 How many cells does this table have in all?
<table>
<tr><td>Litchi</td><td>Mango</td></tr>
<tr><td>Guava</td><td>Guava</td></tr>
<tr><td>Orange</td><td>Banana</td></tr>
</table> - 35.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 36.True or false: .menu is a class selector. (a) False (b) True
- 37.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
- 38.♿ Does this help everyone, or make the page harder to use: add alt text to images? (a) helps everyone (b) makes it harder
- 39.🌐 Which one sends pages over the net? (a) a web browser (b) a code editor (c) a web server
- 40.Which of these is a closing tag? (a) <body> (b) </p> (c) <title> (d) <li>
Answer key
- Yes
- Class 7 Blog
- <h4>
- yellow
- 2
- blue
- display: flex
- blue
- https://example.com
- 6
- news.html
- white
- False
- #hero
- 3
- sends pages over the net
- <table>
- packs boxes at the start
- 100
- white
- Cascading Style Sheets
- 4
- in the head
- text-align
- 82
- 4
- CSS
- False
- changes the page live
- equal gaps, none at ends
- False
- red
- True
- 6
- Yes
- True
- an element selector
- helps everyone
- a web server
- </p>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids