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.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers -
2.✍️ What value is given to color in this rule?
.box {
color: red;
padding: 8px;
font-weight: bold;
} (a) color (b) center (c) red (d) 20px - 3.📱 Responsive design means a page ___. (a) fits every screen (b) never changes (c) has no pictures (d) is only for laptops
-
4.⚡ What number does this code print?
let apples = 29;
apples = apples + 5;
apples = apples - 5;
console.log(apples); - 5.Which of these is a closing tag? (a) <h1> (b) <li> (c) </p> (d) <p>
- 6.True or false: “use headings in order” helps everyone use the page. (a) True (b) False
- 7.📝 Which input type picks a day? (a) password (b) date (c) email (d) submit
-
8.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="350"> - 9.🔢 To build and share your first web page, which comes FIRST? (a) publish it online (b) plan what to show (c) test in a browser (d) add CSS styles
-
10.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> (a) A tiger asleep (b) kite.png (c) map.png (d) tiger.jpg - 11.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) </h2> (c) <h2> (d) <\h2>
- 12.True or false: <table> makes one table row. (a) True (b) False
-
13.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 320px;
justify-content: space-between;
}
Inside are 4 boxes, each 50px wide (no margins). -
14.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 200px;
justify-content: flex-start;
}
Inside are 2 boxes, each 60px wide (no margins). -
15.⚖️ What colour is the text of this element?
<p class="note" id="main">Hi</p>
CSS:
p { color: yellow; }
p { color: blue; } (a) green (b) yellow (c) red (d) blue - 16.🎯 Which sign starts a class selector? (a) @ (b) & (c) # (d) .
- 17.True or false: .card is a class selector. (a) True (b) False
- 18.🔗 Which tag makes a clickable link? (a) <p> (b) <a> (c) <img> (d) <link>
- 19.🌈 Which hex code is bright green? (a) #0000ff (b) #ff0000 (c) #ffffff (d) #00ff00
- 20.Which of these is true of <header>? (a) holds the main content (b) holds the menu of links (c) is the page’s key part (d) sits at the very top
- 21.🔠 How many heading levels does HTML have? (a) 3 (b) 6 (c) 4 (d) 10
- 22.📝 What do we need to write HTML? (a) a plain text editor (b) a printer (c) a microphone (d) a paintbrush
- 23.🎯 What kind of selector is #top? (a) an element selector (b) an id selector (c) a class selector
- 24.📛 In <a href="x.html">, what is href? (a) a closing tag (b) a comment (c) an attribute (d) an element name
-
25.🔗 Which words do you click on?
<a href="art.html">Play games</a> (a) href (b) art.html (c) Play games (d) About us - 26.💪 Which flexbox property spaces boxes along a row? (a) gap (b) justify-content (c) flex-direction (d) display: flex
-
27.📱 The screen is 375px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (min-width: 480px) {
p {
font-size: 14px;
}
} (a) No (b) Yes - 28.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 29.True or false: CSS adds space around boxes. (a) True (b) False
-
30.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>Our school trip</p>
<p>Hello, world!</p>
<!-- <p>The red kite</p> --> (a) Our school trip (b) Hello, world! (c) The red kite (d) Fun facts - 31.🔗 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
- 32.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 33.🌈 In #560000 the red part is the hex number 56. What is it as a normal number?
- 34.🌈 Which colour is rgb(255, 0, 0)? (a) bright green (b) yellow (c) cyan (d) red
- 35.✍️ In color: blue; which part is the property? (a) blue (b) : (c) ; (d) color
-
36.🎯 Which CSS selector matches this element?
<span class="menu" id="hero">Hello</span> (a) #menu (b) .note (c) p (d) span -
37.🔍 One closing tag is missing. Which one?
<h1>Hello, world!</h1>
<i>Cricket is fun.
<h2>Rain today</h2> (a) </h2> (b) </h1> (c) </em> (d) </i> -
38.📊 How many rows does this table have?
<table>
<tr><td>Mango</td><td>Litchi</td><td>Grapes</td></tr>
<tr><td>Litchi</td><td>Jamun</td><td>Mango</td></tr>
<tr><td>Jamun</td><td>Guava</td><td>Banana</td></tr>
<tr><td>Mango</td><td>Papaya</td><td>Orange</td></tr>
</table> -
39.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 9; i++) {
total = total + i;
}
console.log(total); - 40.🧭 Which semantic tag holds one blog post? (a) <header> (b) <nav> (c) <article> (d) <main>
Answer key
- bullets
- red
- fits every screen
- 29
- </p>
- True
- date
- 350
- plan what to show
- tiger.jpg
- </h2>
- False
- 40
- 80
- blue
- .
- True
- <a>
- #00ff00
- sits at the very top
- 6
- a plain text editor
- an id selector
- an attribute
- Play games
- justify-content
- No
- No
- True
- The red kite
- opens it in a new tab
- a closing tag
- 86
- red
- color
- span
- </i>
- 4
- 45
- <article>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids