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.🎨 One CSS file can style how many pages? (a) many pages (b) only one image (c) only one word (d) no pages
- 2.📦 In the box model, which part is a solid or dotted edge? (a) content (b) border (c) margin (d) padding
- 3.True or false: HTML on its own cannot make tables. (a) False (b) True
-
4.🖌️ Where does the text sit on its line?
h2 {
text-align: left;
font-size: 16px;
color: black;
background-color: blue;
} (a) on the left (b) on the right (c) in the middle - 5.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) DNS finds the server (c) the server sends files (d) you type the URL
- 6.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 7.Which of these goes in the head? (a) <table> (b) <h1> (c) <link rel="stylesheet"> (d) <img>
- 8.♿ Does this help everyone, or make the page harder to use: skipping heading levels? (a) helps everyone (b) makes it harder
-
9.✍️ What is the selector in this CSS rule?
#top {
background-color: yellow;
text-align: center;
margin: 10px;
color: red;
} (a) li (b) center (c) #top (d) background-color - 10.⚡ Which JavaScript word repeats code? (a) let (b) for (c) alert() (d) console.log()
- 11.💾 A web page file usually ends with which extension? (a) .html (b) .png (c) .mp3 (d) .txt
- 12.True or false: <input type="email"> takes only numbers. (a) True (b) False
- 13.💪 Which justify-content value packs boxes at the start? (a) flex-start (b) flex-end (c) space-between (d) center
- 14.🔢 To build and share your first web page, which comes first: “add CSS styles” or “test in a browser”? (a) test in a browser (b) add CSS styles
- 15.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) red (d) blue
- 16.🌈 Which colour is #00ff00? (a) white (b) black (c) blue (d) bright green
-
17.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> (a) A red kite (b) width (c) A tiger asleep (d) tiger.jpg - 18.💪 Which flexbox property sets space between boxes? (a) align-items (b) display: flex (c) gap (d) flex-direction
-
19.🔗 Which words do you click on?
<a href="news.html">Play games</a> (a) About us (b) news.html (c) href (d) Play games - 20.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) </h1> (c) <h1> (d) <h1/>
- 21.Which of these is true of <main>? (a) holds the menu of links (b) holds copyright notes (c) is the page’s key part (d) helps you move around
- 22.⚡ A JavaScript file usually ends with which extension? (a) .html (b) .css (c) .jpg (d) .js
-
23.✍️ How many declarations (property: value pairs) are in this rule?
li {
text-align: center;
font-style: italic;
width: 300px;
} - 24.✍️ How does a CSS comment start? (a) <!-- (b) # (c) // (d) /*
- 25.🌈 Which hex code is bright green? (a) #0000ff (b) #000000 (c) #ff00ff (d) #00ff00
- 26.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
-
27.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Rain today</p>
<h4>Hello, world!</h4> -
28.✍️ How many declarations (property: value pairs) are in this rule?
h1 {
width: 300px;
} - 29.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) secret text (d) text with links
- 30.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 31.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Link (c) Language (d) Line
- 32.🎯 What kind of selector is li? (a) a class selector (b) an id selector (c) an element selector
-
33.📝 How many paragraphs does this code make?
<p>My pets</p>
<h2>I love mangoes.</h2>
<p>Fun facts</p>
<p>Cricket is fun.</p>
<h2>The red kite</h2> -
34.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>Hello, world!</p>
<!-- <p>My best friend</p> --> -
35.🔗 Where does this link open?
<a href="maths.html">Contact us</a> (a) in the same tab (b) in a new tab -
36.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h2>My best friend</h2>
<h2>Fun facts</h2>
<p>Rain today</p> - 37.True or false: <footer> sits at the bottom. (a) False (b) True
-
38.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="250"> (a) dog.jpg (b) Birthday cake (c) cake.jpg (d) moon.png - 39.🌗 Is blue on purple easy or hard to read? (a) hard to read (b) easy to read
- 40.True or false: <table> makes one data cell. (a) False (b) True
Answer key
- many pages
- border
- False
- on the left
- you type the URL
- has a closing tag
- <link rel="stylesheet">
- makes it harder
- #top
- for
- .html
- False
- flex-start
- add CSS styles
- blue
- bright green
- A tiger asleep
- gap
- Play games
- </h1>
- is the page’s key part
- .js
- 3
- /*
- #00ff00
- in the body
- 2
- 1
- text with links
- an opening tag
- Language
- an element selector
- 3
- 2
- in the same tab
- 3
- True
- cake.jpg
- hard to read
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids