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.📄 Can HTML on its own make links to pages? (a) No (b) Yes
- 2.📦 In the box model, which part is the line round the box? (a) content (b) border (c) padding (d) margin
- 3.🧭 Who is helped most by semantic tags? (a) only the server (b) only the printer (c) nobody (d) screen-reader users
-
4.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Cricket is fun.</p>
<p>My best friend</p> - 5.🌈 Which hex code is blue? (a) #ffffff (b) #0000ff (c) #ffff00 (d) #00ff00
-
6.🔍 One closing tag is missing. Which one?
<b>Fun facts</b>
<h1>Rain today
<i>My best friend</i> (a) </b> (b) </h1> (c) </i> (d) </strong> - 7.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) at the bottom (d) on the browser tab
- 8.🧭 Why use <nav> instead of <div> for a menu? (a) it makes text red (b) it loads faster (c) it tells its meaning (d) it adds pictures
- 9.🌈 Which colour is rgb(0, 255, 0)? (a) cyan (b) magenta (c) white (d) bright green
- 10.🔢 On a typical page, from top to bottom, what comes right after “<main>”? (a) <footer> (b) <nav> (c) <header>
- 11.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) red (d) blue
- 12.📊 Where do <td> cells go? (a) inside a <p> (b) inside the <head> (c) inside a <tr> (d) inside a <li>
-
13.📱 The screen is 1100px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (min-width: 600px) {
p {
font-size: 14px;
}
} (a) Yes (b) No -
14.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Guava</li>
</ol> -
15.🔗 Which words do you click on?
<a href="https://example.com">Art corner</a> (a) https://example.com (b) School news (c) href (d) Art corner - 16.📊 In a table, which tag is a row? (a) <tb> (b) <th> (c) <tr> (d) <td>
- 17.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <br> (d) <hr>
-
18.🖌️ What colour is behind the letters?
h1 {
color: black;
background-color: blue;
text-align: left;
font-size: 24px;
} (a) blue (b) red (c) black -
19.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 320px;
justify-content: flex-start;
}
Inside are 4 boxes, each 60px wide (no margins). - 20.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 21.True or false: in <img>, src is read by screen readers. (a) False (b) True
- 22.🌗 Is white on dark blue easy or hard to read? (a) hard to read (b) easy to read
- 23.⚡ Which JavaScript word writes in the console? (a) alert() (b) if (c) console.log() (d) for
- 24.🖌️ Which CSS property centres a heading? (a) font-weight (b) background-color (c) color (d) text-align
-
25.📝 How many <input> tags are in this form?
<form>
<input type="number">
<input type="password">
<input type="email">
<input type="text">
<input type="checkbox">
<input type="submit" value="Send">
</form> - 26.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) add CSS styles (b) test in a browser (c) write the HTML (d) publish it online
-
27.⚡ What does this code show?
let name = "Zoya";
alert("Well done, " + name + "!"); (a) name (b) Zoya (c) Well done, name! (d) Well done, Zoya! -
28.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="100"> (a) kite.png (b) map.png (c) A red kite (d) cake.jpg - 29.True or false: <li> is an empty tag. (a) True (b) False
- 30.🌈 Which colour of light is strongest in rgb(119, 38, 240)? (a) red (b) green (c) blue
- 31.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <nav> (b) <main> (c) <header> (d) <footer>
- 32.🛡️ A pop-up says you won a prize and asks for your password. What do you do? (a) type the password (b) close it, tell an adult (c) share it with friends (d) click it twice
-
33.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>My pets</p>
<!-- <p>Cricket is fun.</p> --> - 34.🌐 Which one hosts websites online? (a) a web browser (b) a web server (c) a code editor
-
35.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>The red kite</p> -->
<p>Our school trip</p>
<!-- <p>Fun facts</p> --> - 36.Which of these is true of <aside>? (a) holds a news story (b) holds copyright notes (c) helps you move around (d) holds a side box of tips
- 37.🌈 Which colour is rgb(255, 255, 0)? (a) cyan (b) bright green (c) yellow (d) black
- 38.🎯 Which sign starts an id selector? (a) @ (b) . (c) & (d) #
- 39.⚖️ Which selector is the weakest? (a) a class selector (b) an id selector (c) an element selector
- 40.True or false: to keep passwords secret is safe. (a) True (b) False
Answer key
- Yes
- border
- screen-reader users
- 1
- #0000ff
- </h1>
- on the browser tab
- it tells its meaning
- bright green
- <footer>
- blue
- inside a <tr>
- Yes
- 2
- Art corner
- <tr>
- <ol>
- blue
- 80
- Yes
- False
- easy to read
- console.log()
- text-align
- 6
- write the HTML
- Well done, Zoya!
- kite.png
- False
- blue
- <header>
- close it, tell an adult
- 1
- a web server
- 2
- holds a side box of tips
- yellow
- #
- an element selector
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids