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.🛡️ Is it safe to use the same password on every site? (a) Yes (b) No
- 2.True or false: <td> holds the whole table. (a) False (b) True
- 3.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 4.🌈 In #rrggbb, which colour do the first two digits give? (a) green (b) black (c) red (d) blue
-
5.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="colour"> Orange
<input type="checkbox" name="colour"> Red
<input type="checkbox" name="colour"> Pink
<input type="checkbox" name="colour"> Blue
<input type="checkbox" name="colour"> Green
</form> - 6.🚀 Which program lets you see your web page while you build it? (a) a music player (b) a photo viewer (c) a calculator (d) a web browser
- 7.✍️ In color: blue; which part is the value? (a) : (b) color (c) blue (d) ;
- 8.True or false: <main> is the page’s key part. (a) False (b) True
-
9.⚡ What does this code print? (Look at the quotes!)
let x = "4";
let y = 7;
console.log(x + y); (a) Error (b) 47 (c) 11 - 10.⚡ Which word makes a new variable? (a) give (b) put (c) let (d) make
-
11.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Sky is blue<br>Roses are red</p> - 12.✍️ How does a CSS comment start? (a) # (b) // (c) <!-- (d) /*
-
13.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Orange</li>
<li>Banana</li>
<li>Mango</li>
</ol> - 14.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <ul> (d) <hr>
-
15.🔁 How many times does this code print “Hello”?
for (let i = 0; i < 6; i++) {
console.log("Hello");
} - 16.True or false: p is a class selector. (a) True (b) False
- 17.🌍 What does a web address (URL) tell the browser? (a) your password (b) how old you are (c) the page colour (d) where the page is
- 18.🌍 Which one shows the page to you? (a) HTTPS (b) the URL (c) the browser (d) the server
-
19.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>Rain today</p>
<p>Fun facts</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Good morning!</p> --> -
20.✍️ What value is given to font-weight in this rule?
.note {
font-style: italic;
font-weight: bold;
text-align: center;
background-color: yellow;
} (a) bold (b) font-weight (c) 2px solid (d) 300px -
21.📱 The screen is 1366px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (min-width: 600px) {
p {
font-size: 20px;
}
} (a) No (b) Yes -
22.📝 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"> Orange
<input type="radio" name="colour"> Pink
</form> - 23.🌈 Which colour is #ff00ff? (a) bright green (b) cyan (c) magenta (d) black
- 24.♿ Who uses a screen reader? (a) only teachers (b) only coders (c) only robots (d) people who are blind
-
25.🔒 Is the connection to this address scrambled (encrypted)?
https://kids.example.org/index.html (a) No (b) Yes -
26.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) body (b) My drawings (c) Art Gallery (d) I like to read. - 27.⚡ A JavaScript file usually ends with which extension? (a) .css (b) .js (c) .html (d) .jpg
- 28.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h1>? (a) <h4> (b) <h1> (c) <h6> (d) <h3>
- 29.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h2> or <h5>? (a) <h6> (b) <h3> (c) <h2> (d) <h5>
- 30.True or false: <main> holds the main content. (a) True (b) False
-
31.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 350px;
justify-content: flex-start;
}
Inside are 4 boxes, each 80px wide (no margins). -
32.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="100"> (a) kite.png (b) map.png (c) A red kite (d) cake.jpg - 33.🌍 What do we call the computer that stores a website? (a) a printer (b) a mouse (c) a server (d) a keyboard
- 34.What is <input type="email"> for? (a) is for one line of words (b) picks a day (c) is for an email address (d) lets you tick many
- 35.True or false: <h1>My Site</h1> goes in style.css. (a) False (b) True
- 36.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a new line (b) as one space (c) as a dot (d) as 5 spaces
-
37.🔍 One closing tag is missing. Which one?
<h1>Hello, world!
<i>Good morning!</i>
<h2>Cricket is fun.</h2> (a) </i> (b) </p> (c) </h1> (d) </h2> - 38.🖼️ Which attribute of <img> is read by screen readers? (a) src (b) height (c) width (d) alt
- 39.🎯 What kind of selector is .star? (a) a class selector (b) an id selector (c) an element selector
-
40.⚖️ What colour is the text of this element?
<p class="big" id="top">Hi</p>
CSS:
#top { color: black; }
.big { color: white; }
p { color: purple; } (a) orange (b) white (c) purple (d) black
Answer key
- No
- False
- an empty tag
- red
- 5
- a web browser
- blue
- True
- 47
- let
- 3
- /*
- 4
- <ol>
- 6
- False
- where the page is
- the browser
- 2
- bold
- Yes
- 1
- magenta
- people who are blind
- Yes
- My drawings
- .js
- <h1>
- <h6>
- True
- 30
- kite.png
- a server
- is for an email address
- False
- as one space
- </h1>
- alt
- a class selector
- black
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids