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 colour of light is strongest in rgb(51, 249, 107)? (a) green (b) blue (c) red
-
2.🌍 What is the protocol in this URL?
http://school.example.in/art/gallery.html (a) school.example.in (b) https (c) /art/gallery.html (d) http - 3.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) add CSS styles (b) publish it online (c) write the HTML (d) test in a browser
-
4.📱 The screen is 320px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (max-width: 600px) {
p {
font-size: 14px;
}
} (a) No (b) Yes - 5.🎯 Which element does the selector .star style? (a) <li class="star"> (b) <div class="note"> (c) <li class="menu"> (d) <li id="star">
-
6.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="250"> - 7.📝 Which input type picks a day? (a) radio (b) email (c) text (d) date
- 8.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
- 9.🔢 On a typical page, from top to bottom, which comes first: “<main>” or “<footer>”? (a) <footer> (b) <main>
- 10.🌗 Is white on black easy or hard to read? (a) easy to read (b) hard to read
-
11.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 260px;
justify-content: space-between;
}
Inside are 3 boxes, each 80px wide (no margins). - 12.📝 Which tag holds a whole form? (a) <form> (b) <ol> (c) <table> (d) <input>
- 13.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the first one (b) neither (c) the later one (d) the shorter one
- 14.🖌️ Which CSS property makes the text bold? (a) font-size (b) background-color (c) font-family (d) font-weight
-
15.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Rivers flow</p> - 16.🧭 Who is helped most by semantic tags? (a) only the server (b) nobody (c) screen-reader users (d) only the printer
- 17.🌍 Which one sends the page back? (a) the server (b) the browser (c) HTTPS (d) the URL
-
18.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 260px;
justify-content: space-between;
}
Inside are 4 boxes, each 50px wide (no margins). - 19.🖌️ Which CSS property sets the letter colour? (a) color (b) font-family (c) font-weight (d) text-align
- 20.📊 Which tag gives the table a title? (a) <td> (b) <th> (c) <tr> (d) <caption>
- 21.🔢 In a basic web page file, which comes first: “<head>” or “</head>”? (a) </head> (b) <head>
- 22.🌈 Which colour is rgb(0, 0, 255)? (a) bright green (b) white (c) red (d) blue
- 23.📄 Can HTML on its own pick a random number? (a) Yes (b) No
-
24.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 70px;
padding: 5px;
border: 4px solid black;
margin: 15px;
} - 25.📊 Which tag makes one table row? (a) <table> (b) <tr> (c) <td> (d) <caption>
-
26.🎯 Which CSS selector matches this element?
<h1 class="box" id="main">Hello</h1> (a) h2 (b) h1 (c) .main (d) #logo -
27.✍️ How many declarations (property: value pairs) are in this rule?
#top {
background-color: yellow;
} -
28.♿ Is this heading order correct (no level skipped)?
<h1> → <h3> → <h2> → <h2> (a) Yes (b) No - 29.True or false: in <img>, alt describes the picture. (a) True (b) False
- 30.🎯 Which sign starts an id selector? (a) @ (b) # (c) & (d) .
- 31.🔍 Which is the odd one out? (a) rounds box corners (b) changes the text size (c) lays out the page (d) checks a quiz answer
- 32.🔢 To build and share your first web page, which comes LAST? (a) write the HTML (b) publish it online (c) test in a browser (d) add CSS styles
- 33.🔐 Is password a strong or a weak password? (a) strong (b) weak
- 34.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 35.🔗 Which attribute holds the address of a link? (a) id (b) alt (c) href (d) src
- 36.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <a href="about.html">
- 37.🔠 How many heading levels does HTML have? (a) 10 (b) 6 (c) 4 (d) 3
-
38.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Mango</td><td>Papaya</td><td>Grapes</td></tr>
</table> - 39.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) Z (c) F (d) J
-
40.🖌️ How big is the text, in px?
li {
font-size: 20px;
color: purple;
text-align: left;
background-color: black;
}
Answer key
- green
- http
- write the HTML
- Yes
- <li class="star">
- 250
- date
- <ol>
- <main>
- easy to read
- 10
- <form>
- the later one
- font-weight
- 2
- screen-reader users
- the server
- 20
- color
- <caption>
- <head>
- blue
- No
- 118
- <tr>
- h1
- 1
- No
- True
- #
- checks a quiz answer
- publish it online
- weak
- Yes
- href
- <a href="about.html">
- 6
- 3
- F
- 20
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids