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 is the selector in this CSS rule?
.note {
text-align: center;
width: 300px;
} (a) text-align (b) .note (c) #top (d) 300px -
2.📋 What number does the browser show next to “Litchi”?
<ol start="3">
<li>Guava</li>
<li>Banana</li>
<li>Orange</li>
<li>Litchi</li>
</ol> - 3.Which of these has a closing tag? (a) <ul> (b) <img> (c) <br> (d) <hr>
- 4.🔒 What does the lock (HTTPS) in the address bar mean? (a) the site is a game (b) the site is free (c) the site is fast (d) the data is scrambled
-
5.⚡ What number does this code print?
let coins = 8;
coins = coins + 18;
coins = coins - 3;
console.log(coins); - 6.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h2> or <h4>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
- 7.📦 In the box model, which part is the gap to other boxes? (a) border (b) margin (c) padding (d) content
- 8.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h4> or <h1>? (a) <h1> (b) <h6> (c) <h3> (d) <h4>
-
9.🖌️ How big is the text, in px?
li {
background-color: orange;
text-align: right;
font-size: 20px;
color: green;
} -
10.✍️ Which property is set to italic in this rule?
li {
font-style: italic;
border: 2px solid;
font-size: 20px;
} (a) font-style (b) italic (c) font-size (d) color - 11.True or false: <header> holds the menu of links. (a) True (b) False
- 12.🚀 What is the home page file of a website usually called? (a) main.png (b) home.css (c) start.js (d) index.html
-
13.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) Art Gallery (c) index.html (d) Welcome! - 14.🌈 Which colour is rgb(255, 0, 255)? (a) white (b) black (c) magenta (d) red
-
15.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 290px;
justify-content: space-between;
}
Inside are 4 boxes, each 50px wide (no margins). - 16.True or false: <ul><li>Art</li></ul> goes in index.html. (a) True (b) False
-
17.✍️ What value is given to font-style in this rule?
p {
font-style: italic;
padding: 8px;
color: red;
} (a) 20px (b) italic (c) font-style (d) red - 18.♿ Does this help everyone, or make the page harder to use: add alt text to images? (a) helps everyone (b) makes it harder
- 19.🔍 Which is the odd one out? (a) reacts to a button click (b) puts a picture on a page (c) changes the page live (d) counts down a timer
- 20.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 99 (c) 1000 (d) 255
- 21.Which of these is a strong password? (a) abcd1234 (b) qwerty (c) Chai$Cup_19x (d) password
-
22.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="250"> (a) map.png (b) cake.jpg (c) kite.png (d) A red kite -
23.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Fun facts</p> --> - 24.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
- 25.🎯 What kind of selector is h1? (a) a class selector (b) an element selector (c) an id selector
- 26.💪 Which justify-content value equal gaps, none at ends? (a) flex-end (b) center (c) flex-start (d) space-between
-
27.💬 Which text will NOT show on the page?
<!-- <p>My pets</p> -->
<p>I love mangoes.</p>
<p>Rain today</p>
<p>Fun facts</p> (a) My pets (b) Fun facts (c) I love mangoes. (d) Rain today - 28.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
-
29.📊 How many rows does this table have?
<table>
<tr><td>Grapes</td><td>Jamun</td><td>Orange</td><td>Papaya</td></tr>
<tr><td>Jamun</td><td>Grapes</td><td>Papaya</td><td>Mango</td></tr>
</table> - 30.🔢 On a typical page, from top to bottom, which comes LAST? (a) <main> (b) <footer> (c) <nav> (d) <header>
- 31.True or false: <input type="checkbox"> lets you tick many. (a) False (b) True
- 32.🔢 In a basic web page file, which comes first: “</body>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) </body>
-
33.🔁 How many times does this code print “Well done”?
for (let i = 1; i < 3; i++) {
console.log("Well done");
} -
34.📋 What number does the browser show next to “Guava”?
<ol start="8">
<li>Litchi</li>
<li>Guava</li>
<li>Jamun</li>
<li>Grapes</li>
</ol> -
35.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Orange</li>
</ul> (a) numbers (b) bullets - 36.Which of these does JavaScript do? (a) puts a picture on a page (b) makes a link (c) shows a pop-up message (d) gives the page structure
-
37.⚡ What number does this code print?
let a = 4;
let b = 4;
console.log(a * b); -
38.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
<li>Banana</li>
<li>Papaya</li>
<li>Litchi</li>
</ol> -
39.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th></tr>
<tr><td>Guava</td><td>Mango</td></tr>
</table> - 40.🌈 Which colour is rgb(255, 255, 255)? (a) cyan (b) white (c) yellow (d) red
Answer key
- .note
- 6
- <ul>
- the data is scrambled
- 23
- <h5>
- margin
- <h1>
- 20
- font-style
- False
- index.html
- Art Gallery
- magenta
- 30
- True
- italic
- helps everyone
- puts a picture on a page
- 255
- Chai$Cup_19x
- kite.png
- 1
- <ul>
- an element selector
- space-between
- My pets
- Yes
- 2
- <footer>
- True
- <!DOCTYPE html>
- 2
- 9
- bullets
- shows a pop-up message
- 16
- 6
- 2
- white
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids