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 attribute of <img> describes the picture? (a) height (b) src (c) alt (d) width
- 2.🌈 Which hex code is cyan? (a) #00ffff (b) #ff00ff (c) #000000 (d) #0000ff
-
3.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow</p> - 4.🌍 What do we call the computer that stores a website? (a) a mouse (b) a printer (c) a server (d) a keyboard
-
5.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 150px;
justify-content: space-between;
}
Inside are 2 boxes, each 50px wide (no margins). - 6.📝 What does <hr> draw? (a) a picture (b) a table (c) a line across the page (d) a link
- 7.What does font-size do? (a) centres a heading (b) sets the letter colour (c) makes letters bigger (d) colours behind the text
- 8.🌍 Which program shows a web page to us? (a) a paint program (b) a web browser (c) a music player (d) a calculator
- 9.🚀 Which file should this code go in: body { margin: 0; } (a) style.css (b) index.html (c) script.js
-
10.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 340px;
justify-content: space-between;
}
Inside are 3 boxes, each 60px wide (no margins). - 11.🌈 Which colour of light is strongest in rgb(96, 166, 67)? (a) red (b) blue (c) green
-
12.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>My pets</p>
<!-- <p>Cricket is fun.</p> --> - 13.⚖️ Which selector is the weakest? (a) a class selector (b) an id selector (c) an element selector
-
14.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 200px;
justify-content: flex-end;
}
Inside are 3 boxes, each 40px wide (no margins). -
15.💬 Which text will NOT show on the page?
<p>Rain today</p>
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p>
<p>Cricket is fun.</p> (a) Cricket is fun. (b) Our school trip (c) I love mangoes. (d) Rain today - 16.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <br> (d) <ol>
-
17.🖌️ What colour is behind the letters?
h2 {
background-color: yellow;
color: purple;
text-align: left;
font-size: 16px;
} (a) black (b) yellow (c) purple - 18.🔍 Which is the odd one out? (a) changes the page live (b) checks a quiz answer (c) changes the text size (d) counts down a timer
-
19.🔗 Which address opens when you click this link?
<a href="maths.html">Visit the site</a> (a) Visit the site (b) news.html (c) art.html (d) maths.html - 20.🌈 Which colour is rgb(255, 0, 255)? (a) black (b) magenta (c) yellow (d) red
- 21.True or false: <nav> holds the menu of links. (a) True (b) False
- 22.🌈 Which hex code is blue? (a) #ffffff (b) #ffff00 (c) #0000ff (d) #ff0000
-
23.📋 What number does the browser show next to “Banana”?
<ol start="2">
<li>Grapes</li>
<li>Jamun</li>
<li>Mango</li>
<li>Banana</li>
</ol> -
24.📱 The screen is 1366px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (max-width: 600px) {
p {
font-size: 12px;
}
} (a) Yes (b) No -
25.📱 The screen is 820px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (max-width: 480px) {
p {
font-size: 14px;
}
} - 26.True or false: <input> is an empty tag. (a) False (b) True
-
27.🔗 Where does this link open?
<a href="https://example.com" target="_blank">School news</a> (a) in a new tab (b) in the same tab - 28.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <br> (d) <ul>
-
29.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="50"> (a) The full moon (b) moon.png (c) bus.jpg (d) fort.jpg - 30.🌍 Which one scrambles data on its way? (a) the URL (b) the server (c) the browser (d) HTTPS
- 31.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <p> (c) <title> (d) <meta charset="utf-8">
- 32.Which of these is not safe to do online? (a) use a nickname in games (b) ask before downloading (c) share your password (d) use a strong password
- 33.⚡ Which JavaScript word repeats code? (a) let (b) console.log() (c) for (d) alert()
-
34.🖌️ What colour is behind the letters?
h1 {
font-size: 16px;
background-color: orange;
color: blue;
text-align: left;
} (a) green (b) blue (c) orange - 35.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it blank (c) makes it bold (d) opens it in a new tab
- 36.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
-
37.⚡ What does this code show?
let name = "Kabir";
alert("Hello, " + name + "!"); (a) name (b) Hello, Kabir! (c) Kabir (d) Hello, name! - 38.🔢 In a basic web page file, which comes first: “</body>” or “<html>”? (a) <html> (b) </body>
- 39.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
-
40.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Rain today</p> -->
Answer key
- alt
- #00ffff
- 2
- a server
- 50
- a line across the page
- makes letters bigger
- a web browser
- style.css
- 80
- green
- 1
- an element selector
- 80
- Our school trip
- <ol>
- yellow
- changes the text size
- maths.html
- magenta
- True
- #0000ff
- 5
- No
- 16
- True
- in a new tab
- <ul>
- moon.png
- HTTPS
- <p>
- share your password
- for
- orange
- opens it in a new tab
- </b>
- Hello, Kabir!
- <html>
- Yes
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids