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 heading shows the SMALLEST text: <h6>, <h2>, <h5> or <h1>? (a) <h1> (b) <h2> (c) <h5> (d) <h6>
- 2.True or false: in <img>, width tells which image to load. (a) True (b) False
-
3.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (min-width: 480px) {
p {
font-size: 16px;
}
} - 4.Which of these is a closing tag? (a) <p> (b) <b> (c) <body> (d) </title>
-
5.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p> - 6.🔁 What does i++ do? (a) takes 1 from i (b) adds 1 to i (c) prints i (d) doubles i
- 7.📦 In the box model, which part is a solid or dotted edge? (a) padding (b) content (c) border (d) margin
- 8.True or false: <td> holds the whole table. (a) False (b) True
- 9.♿ Does this help everyone, or make the page harder to use: link text “click here”? (a) helps everyone (b) makes it harder
-
10.🖌️ What colour are the letters?
li {
background-color: yellow;
font-size: 32px;
text-align: right;
color: green;
} (a) orange (b) yellow (c) green - 11.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) yellow (c) white (d) blue
- 12.What is <input type="checkbox"> for? (a) lets you tick many (b) picks a day (c) is for an email address (d) is for one line of words
-
13.🌍 What is the protocol in this URL?
http://learn.example.com/index.html (a) learn.example.com (b) http (c) https (d) /index.html - 14.True or false: JavaScript lays out the page. (a) True (b) False
- 15.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <style> (d) <img>
- 16.🔤 In “HTML”, what does the L stand for? (a) Link (b) Line (c) Language (d) Laptop
- 17.🌈 In #002800 the green part is the hex number 28. What is it as a normal number?
- 18.🛡️ Online: is it safe to click prize links? (a) safe (b) not safe
- 19.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 20.True or false: <ol> is an ordered list. (a) True (b) False
-
21.⚡ What number does this code print?
let score = 19;
score = score + 11;
score = score - 15;
console.log(score); -
22.✍️ How many declarations (property: value pairs) are in this rule?
#top {
font-size: 20px;
background-color: yellow;
color: red;
} -
23.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th></tr>
<tr><td>Guava</td><td>Jamun</td></tr>
<tr><td>Grapes</td><td>Papaya</td></tr>
<tr><td>Banana</td><td>Papaya</td></tr>
</table> - 24.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes a list (d) makes text bold
- 25.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) [ (d) <
- 26.🔒 What does the lock (HTTPS) in the address bar mean? (a) the data is scrambled (b) the site is fast (c) the site is a game (d) the site is free
- 27.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) flex-start (c) space-between (d) center
- 28.🔢 On a typical page, from top to bottom, which comes LAST? (a) <footer> (b) <nav> (c) <header> (d) <main>
- 29.What does font-size do? (a) sets the letter colour (b) makes the text bold (c) centres a heading (d) makes letters bigger
- 30.Which of these goes in the head? (a) <style> (b) <p> (c) <img> (d) <h1>
- 31.💪 Which justify-content value packs boxes at the end? (a) flex-start (b) space-between (c) center (d) flex-end
-
32.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Litchi</td><td>Litchi</td><td>Grapes</td></tr>
<tr><td>Banana</td><td>Grapes</td><td>Mango</td></tr>
</table> - 33.📝 Which input type sends the form? (a) date (b) radio (c) number (d) submit
- 34.💪 Which justify-content value equal gaps, none at ends? (a) center (b) flex-end (c) space-between (d) flex-start
- 35.Which of these is a closing tag? (a) </h1> (b) <li> (c) <p> (d) <body>
- 36.♿ What does good colour contrast mean? (a) text stands out clearly (b) only red text (c) no colours at all (d) many bright colours
-
37.📊 How many cells are in each row?
<table>
<tr><td>Mango</td><td>Mango</td><td>Jamun</td><td>Papaya</td></tr>
<tr><td>Grapes</td><td>Guava</td><td>Grapes</td><td>Mango</td></tr>
<tr><td>Papaya</td><td>Banana</td><td>Banana</td><td>Jamun</td></tr>
</table> -
38.🖌️ What colour are the letters?
h2 {
font-size: 32px;
color: orange;
background-color: blue;
text-align: right;
} (a) purple (b) blue (c) orange - 39.✍️ In color: blue; which part is the value? (a) color (b) ; (c) blue (d) :
- 40.🎯 Which sign starts a class selector? (a) # (b) & (c) . (d) @
Answer key
- <h6>
- False
- 12
- </title>
- 1
- adds 1 to i
- border
- False
- makes it harder
- green
- yellow
- lets you tick many
- http
- False
- <img>
- Language
- 40
- not safe
- Yes
- True
- 15
- 3
- 2
- starts a new line
- <
- the data is scrambled
- center
- <footer>
- makes letters bigger
- <style>
- flex-end
- 3
- submit
- space-between
- </h1>
- text stands out clearly
- 4
- orange
- blue
- .
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids