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 semantic tag helps you move around? (a) <footer> (b) <article> (c) <nav> (d) <aside>
-
2.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<h2>My pets</h2>
<h2>My best friend</h2> - 3.🧭 Is <section> semantic or not semantic? (a) not semantic (b) semantic
-
4.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 80px;
padding: 30px;
border: 2px solid black;
margin: 0px;
} - 5.🖌️ Which CSS property sets the letter colour? (a) font-family (b) text-align (c) color (d) background-color
- 6.True or false: <p> is an empty tag. (a) False (b) True
- 7.Which of these goes in the head? (a) <table> (b) <h1> (c) <ul> (d) <link rel="stylesheet">
- 8.🔢 In a basic web page file, which comes first: “</head>” or “</html>”? (a) </html> (b) </head>
-
9.✍️ Which property is set to 20px in this rule?
.box {
margin: 10px;
border: 2px solid;
font-size: 20px;
} (a) font-size (b) background-color (c) text-align (d) 20px - 10.⚡ What does JavaScript add to a web page? (a) actions and changes (b) only colours (c) the page title (d) the domain name
- 11.True or false: <style> goes in the head. (a) True (b) False
- 12.⚡ Which JavaScript word writes in the console? (a) for (b) alert() (c) console.log() (d) let
-
13.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>Rain today</p>
<p>Hello, world!</p>
<h2>Our school trip</h2>
<h2>Fun facts</h2> - 14.True or false: <td> makes one data cell. (a) False (b) True
-
15.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
<tr><td>Jamun</td><td>Grapes</td><td>Orange</td><td>Jamun</td></tr>
<tr><td>Papaya</td><td>Guava</td><td>Litchi</td><td>Litchi</td></tr>
<tr><td>Grapes</td><td>Mango</td><td>Guava</td><td>Papaya</td></tr>
</table> -
16.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Orange</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets - 17.📦 In the box model, which part is the line round the box? (a) margin (b) padding (c) content (d) border
- 18.🚀 Which file should this code go in: <img src="cat.png"> (a) script.js (b) style.css (c) index.html
-
19.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 210px;
justify-content: flex-end;
}
Inside are 2 boxes, each 80px wide (no margins). - 20.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h1> (d) <h3>
-
21.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="350"> (a) fort.jpg (b) bus.jpg (c) The full moon (d) moon.png -
22.🖌️ What colour is behind the letters?
p {
text-align: center;
font-size: 32px;
background-color: orange;
color: green;
} (a) blue (b) orange (c) green - 23.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) center (c) space-between (d) flex-start
-
24.♿ Is this heading order correct (no level skipped)?
<h1> → <h2> → <h2> → <h4> (a) Yes (b) No - 25.📱 What does a media query check? (a) the time of day (b) the battery level (c) the page title (d) the screen width
- 26.📦 In the box model, which part is space outside the border? (a) padding (b) content (c) margin (d) border
- 27.What is <input type="email"> for? (a) lets you pick only one (b) takes only numbers (c) is for one line of words (d) is for an email address
- 28.🛡️ Online: is it safe to keep passwords secret? (a) safe (b) not safe
- 29.True or false: in <img>, alt describes the picture. (a) True (b) False
- 30.True or false: to put secrets in comments is not safe. (a) False (b) True
- 31.♿ Does this help everyone, or make the page harder to use: write clear link text? (a) makes it harder (b) helps everyone
- 32.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 33.📄 Where does the text of <title> appear? (a) nowhere (b) on the browser tab (c) in a big heading (d) at the bottom
-
34.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="50"> (a) kite.png (b) width (c) Map of India (d) A red kite -
35.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Guava</li>
<li>Orange</li>
<li>Grapes</li>
<li>Litchi</li>
</ol> -
36.⚡ What does this code show?
let name = "Zoya";
console.log("Hello, " + name + "!"); (a) Hello, Zoya! (b) Hello, name! (c) name (d) Zoya -
37.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="300"> (a) tiger.jpg (b) kite.png (c) An old fort (d) fort.jpg - 38.♿ Does this help everyone, or make the page harder to use: skipping heading levels? (a) helps everyone (b) makes it harder
- 39.🧭 Which semantic tag sits at the bottom? (a) <nav> (b) <footer> (c) <aside> (d) <article>
-
40.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="fruit"> Guava
<input type="checkbox" name="fruit"> Banana
<input type="checkbox" name="fruit"> Mango
<input type="checkbox" name="fruit"> Litchi
</form>
Answer key
- <nav>
- 1
- semantic
- 144
- color
- False
- <link rel="stylesheet">
- </head>
- font-size
- actions and changes
- True
- console.log()
- 3
- True
- 4
- bullets
- border
- index.html
- 50
- <h6>
- moon.png
- orange
- center
- No
- the screen width
- margin
- is for an email address
- safe
- True
- True
- helps everyone
- Yes
- on the browser tab
- A red kite
- 6
- Hello, Zoya!
- fort.jpg
- makes it harder
- <footer>
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids