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 one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
- 2.🔐 Is 111111 a strong or a weak password? (a) strong (b) weak
- 3.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) red (c) green (d) black
- 4.🛡️ Before typing a password on a site, check the address starts with ___. (a) http (b) ftp (c) www (d) https
-
5.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>My pets</p>
<p>My best friend</p> - 6.True or false: <ul><li>Art</li></ul> goes in style.css. (a) False (b) True
-
7.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> (a) tiger.jpg (b) map.png (c) kite.png (d) A tiger asleep - 8.🔐 Is Blue@Tiger_74 a strong or a weak password? (a) strong (b) weak
- 9.Which of these is true of a web server? (a) colours code to help us (b) saves our .html files (c) has an address bar (d) stores a website’s files
- 10.🔗 Which attribute holds the address of a link? (a) src (b) href (c) alt (d) id
-
11.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 240px;
justify-content: flex-end;
}
Inside are 3 boxes, each 60px wide (no margins). -
12.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Rain today</p>
<h2>Rain today</h2>
<p>My pets</p> - 13.True or false: in <img>, src describes the picture. (a) False (b) True
-
14.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 300px;
justify-content: center;
}
Inside are 2 boxes, each 100px wide (no margins). - 15.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
16.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 150px;
padding: 20px;
border: 4px solid black;
margin: 5px;
} - 17.🔐 Is Rain#Drop_42! a strong or a weak password? (a) weak (b) strong
- 18.Which of these is safe to do online? (a) use a strong password (b) share your OTP (c) click prize links (d) type a password on http
- 19.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h4> or <h6>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
-
20.⚖️ What colour is the text of this element?
<p class="menu" id="hero">Hi</p>
CSS:
.menu { color: white; }
#hero { color: black; }
p { color: orange; } (a) purple (b) white (c) black (d) orange -
21.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>Our school trip</p>
<p>I love mangoes.</p>
<p>Rain today</p> - 22.True or false: HTML on its own cannot run a game loop. (a) False (b) True
-
23.🔁 What does this code print?
let age = 16;
if (age >= 6) {
console.log("teen");
} else {
console.log("child");
} (a) child (b) teen - 24.📝 Which input type picks a day? (a) email (b) submit (c) password (d) date
- 25.🔗 What does target="_blank" do to a link? (a) makes it blank (b) makes it bold (c) hides the link (d) opens it in a new tab
-
26.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Roses are red</p> - 27.True or false: in <img>, alt describes the picture. (a) True (b) False
- 28.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h3>? (a) <h5> (b) <h1> (c) <h3> (d) <h2>
- 29.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
- 30.True or false: <p> goes in the body. (a) True (b) False
-
31.🎯 Which CSS selector matches this element?
<h1 class="red" id="top">Hello</h1> (a) h2 (b) h1 (c) .top (d) .box -
32.📱 The screen is 1366px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (min-width: 768px) {
p {
font-size: 20px;
}
} - 33.🔢 When you open a web page, which comes first: “the server sends files” or “you type the URL”? (a) you type the URL (b) the server sends files
- 34.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
- 35.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <p> (d) <br>
-
36.📊 How many rows does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
<tr><td>Papaya</td><td>Jamun</td><td>Banana</td><td>Litchi</td></tr>
<tr><td>Guava</td><td>Guava</td><td>Mango</td><td>Papaya</td></tr>
</table> - 37.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 38.🧭 Who is helped most by semantic tags? (a) nobody (b) only the server (c) only the printer (d) screen-reader users
- 39.True or false: in <img>, width tells which image to load. (a) False (b) True
- 40.♿ Does this help everyone, or make the page harder to use: use big enough text? (a) helps everyone (b) makes it harder
Answer key
- a web browser
- weak
- red
- https
- 3
- False
- tiger.jpg
- strong
- stores a website’s files
- href
- 60
- 3
- False
- 50
- an empty tag
- 208
- strong
- use a strong password
- <h6>
- black
- 4
- True
- teen
- date
- opens it in a new tab
- 2
- True
- <h1>
- a web browser
- True
- h1
- 20
- you type the URL
- a slash /
- <h1>
- 3
- No
- screen-reader users
- False
- helps everyone
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids