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.📝 What does <br> do? (a) makes text bold (b) starts a new line (c) adds a picture (d) makes a list
- 2.🎯 Which sign starts an id selector? (a) @ (b) # (c) & (d) .
-
3.⚡ What number does this code print?
let a = 10;
let b = 10;
console.log(a * b); -
4.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Grapes</li>
<li>Papaya</li>
<li>Jamun</li>
<li>Banana</li>
<li>Guava</li>
</ol> -
5.📝 How many <input> tags are in this form?
<form>
<input type="checkbox">
<input type="text">
<input type="date">
<input type="submit" value="Send">
</form> - 6.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h5>? (a) <h3> (b) <h6> (c) <h1> (d) <h5>
- 7.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 1 (d) 6
-
8.✍️ How many declarations (property: value pairs) are in this rule?
li {
text-align: center;
background-color: yellow;
font-size: 20px;
} - 9.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
- 10.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 11.🛡️ Online: is it safe to type a password on http? (a) safe (b) not safe
- 12.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
- 13.🌈 Which colour is #ffffff? (a) blue (b) white (c) bright green (d) red
-
14.📱 The screen is 375px wide. Does the rule inside @media apply?
p {
font-size: 24px;
}
@media (min-width: 1024px) {
p {
font-size: 28px;
}
} (a) No (b) Yes - 15.🧩 An opening tag + content + a closing tag together make an ___. (a) editor (b) address (c) attribute (d) element
- 16.True or false: “use headings in order” makes the page harder to use. (a) False (b) True
-
17.🔗 Where does this link open?
<a href="quiz.html">School news</a> (a) in the same tab (b) in a new tab -
18.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 110px;
padding: 10px;
border: 1px solid black;
margin: 20px;
} - 19.🖼️ Why do we add alt text to an image? (a) to colour it (b) to make it bigger (c) to describe the image (d) to load it faster
-
20.🔗 Where does this link open?
<a href="maths.html">Maths fun</a> (a) in the same tab (b) in a new tab - 21.🧭 Is <div> semantic or not semantic? (a) not semantic (b) semantic
- 22.🌈 Which colour of light is strongest in rgb(227, 71, 70)? (a) blue (b) green (c) red
-
23.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 150px;
padding: 30px;
border: 5px solid black;
margin: 15px;
} -
24.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 90px;
padding: 25px;
border: 2px solid black;
margin: 10px;
} - 25.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
-
26.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="colour"> Blue
<input type="radio" name="colour"> Green
<input type="radio" name="colour"> Pink
<input type="radio" name="colour"> Red
<input type="radio" name="colour"> Orange
</form> - 27.🛡️ Should you share your password with your best friend? (a) Yes (b) No
- 28.🖼️ Which attribute of <img> sets how wide it is? (a) width (b) src (c) height (d) alt
-
29.🖌️ Where does the text sit on its line?
p {
color: blue;
font-size: 36px;
text-align: center;
background-color: yellow;
} (a) on the left (b) in the middle (c) on the right - 30.♿ Who uses a screen reader? (a) only teachers (b) only robots (c) people who are blind (d) only coders
-
31.🎯 Which CSS selector matches this element?
<h1 class="menu" id="logo">Hello</h1> (a) .note (b) #menu (c) h1 (d) #end - 32.True or false: <th> makes one table row. (a) True (b) False
- 33.🔐 Is Blue@Tiger_74 a strong or a weak password? (a) strong (b) weak
- 34.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <hr> (d) <ul>
-
35.⚖️ What colour is the text of this element?
<h1 class="star" id="top">Hi</h1>
CSS:
#top { color: red; }
#top { color: blue; } (a) blue (b) black (c) yellow (d) red - 36.📊 Where do <td> cells go? (a) inside a <tr> (b) inside the <head> (c) inside a <li> (d) inside a <p>
- 37.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
- 38.Which colour pair is hard to read? (a) yellow on black (b) yellow on white (c) black on white (d) white on dark blue
- 39.🌗 Is pink on red easy or hard to read? (a) easy to read (b) hard to read
-
40.⚖️ What colour is the text of this element?
<p class="star" id="top">Hi</p>
CSS:
p { color: white; }
#top { color: yellow; }
.star { color: red; } (a) yellow (b) white (c) orange (d) red
Answer key
- starts a new line
- #
- 100
- 3
- 4
- <h6>
- 1
- 3
- <a>
- No
- not safe
- <li>
- white
- No
- element
- False
- in the same tab
- 172
- to describe the image
- in the same tab
- not semantic
- red
- 250
- 144
- Yes
- 1
- No
- width
- in the middle
- people who are blind
- h1
- False
- strong
- <ol>
- blue
- inside a <tr>
- in the body
- yellow on white
- hard to read
- yellow
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids