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 tag makes a big box for many lines of text? (a) <input> (b) <p> (c) <textarea> (d) <br>
-
2.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Easy snacks (b) Cricket Club (c) We won by 5 runs. (d) body - 3.Which of these has a closing tag? (a) <br> (b) <hr> (c) <img> (d) <title>
- 4.📦 In the box model, which part is space inside the border? (a) content (b) padding (c) border (d) margin
-
5.📊 How many rows does this table have?
<table>
<tr><td>Orange</td><td>Jamun</td><td>Jamun</td></tr>
<tr><td>Mango</td><td>Banana</td><td>Litchi</td></tr>
<tr><td>Banana</td><td>Litchi</td><td>Mango</td></tr>
</table> - 6.Which colour pair is hard to read? (a) black on white (b) pink on red (c) yellow on black (d) white on dark blue
- 7.🔍 Which is the odd one out? (a) colours code to help us (b) is where we type code (c) hosts websites online (d) shows line numbers
-
8.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<!-- <p>Fun facts</p> -->
<p>My best friend</p>
<p>I love mangoes.</p> (a) Good morning! (b) My best friend (c) Fun facts (d) I love mangoes. - 9.What does font-size do? (a) picks the font style (b) colours behind the text (c) centres a heading (d) makes letters bigger
-
10.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>Cricket is fun.</p>
<!-- <p>Hello, world!</p> -->
<p>Rain today</p> (a) Hello, world! (b) Cricket is fun. (c) The red kite (d) Rain today - 11.True or false: padding is the gap to other boxes. (a) True (b) False
- 12.Which of these is true of a web browser? (a) turns HTML into a page (b) answers page requests (c) stores a website’s files (d) saves our .html files
-
13.⚡ What number does this code print?
let a = 8;
let b = 9;
console.log(a * b); - 14.📱 Responsive design means a page ___. (a) has no pictures (b) is only for laptops (c) never changes (d) fits every screen
- 15.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <p> (d) <h1>
-
16.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 8; i++) {
total = total + i;
}
console.log(total); -
17.📱 The screen is 1100px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (min-width: 600px) {
p {
font-size: 18px;
}
} (a) No (b) Yes - 18.📊 Which tag gives the table a title? (a) <caption> (b) <td> (c) <th> (d) <tr>
- 19.True or false: in <img>, width shows if the image fails. (a) True (b) False
-
20.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>My best friend</p>
<!-- <p>Cricket is fun.</p> --> - 21.✍️ Which sign goes between a property and its value? (a) - (b) : (c) = (d) ;
- 22.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h6> or <h1>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
-
23.💬 Which text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>Our school trip</p>
<p>Good morning!</p> (a) Good morning! (b) Our school trip (c) The red kite - 24.True or false: <ol> is one item of a list. (a) False (b) True
-
25.📊 How many rows does this table have?
<table>
<tr><td>Guava</td><td>Banana</td><td>Orange</td></tr>
<tr><td>Mango</td><td>Grapes</td><td>Jamun</td></tr>
</table> - 26.Which of these is the content? (a) space inside the border (b) space outside the border (c) the gap to other boxes (d) the text or picture
-
27.🔍 One closing tag is missing. Which one?
<strong>The red kite
<em>Hello, world!</em>
<h1>Rain today</h1> (a) </u> (b) </em> (c) </strong> (d) </h1> - 28.True or false: to check for https first is safe. (a) True (b) False
- 29.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
- 30.What is <input type="password"> for? (a) picks a day (b) is for one line of words (c) hides what you type (d) lets you pick only one
-
31.🌍 What is the domain name in this URL?
https://www.example.net/maths/tables.html (a) www.example.net (b) /maths/tables.html (c) https (d) learn.example.com - 32.True or false: <input type="date"> picks a day. (a) False (b) True
-
33.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>I love mangoes.</p>
<h2>Cricket is fun.</h2> - 34.🖌️ Which CSS property sets the letter colour? (a) font-size (b) font-family (c) text-align (d) color
- 35.True or false: the browser is the page’s address. (a) False (b) True
- 36.Which of these is true of a code editor? (a) colours code to help us (b) stores a website’s files (c) shows pages from the web (d) has an address bar
- 37.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h6>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
- 38.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
39.🔗 Which words do you click on?
<a href="maths.html">Play games</a> (a) About us (b) maths.html (c) Play games (d) href - 40.True or false: HTTPS shows the page to you. (a) True (b) False
Answer key
- <textarea>
- Easy snacks
- <title>
- padding
- 3
- pink on red
- hosts websites online
- Fun facts
- makes letters bigger
- Hello, world!
- False
- turns HTML into a page
- 72
- fits every screen
- <h6>
- 36
- Yes
- <caption>
- False
- 1
- :
- <h1>
- The red kite
- False
- 2
- the text or picture
- </strong>
- True
- a web browser
- hides what you type
- www.example.net
- True
- 2
- color
- False
- colours code to help us
- <h6>
- has a closing tag
- Play games
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids