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 address opens when you click this link?
<a href="maths.html">Contact us</a> (a) art.html (b) Contact us (c) news.html (d) maths.html - 2.🌈 Which colour is #ff0000? (a) magenta (b) red (c) blue (d) black
- 3.📊 Which tag holds the whole table? (a) <tr> (b) <td> (c) <table> (d) <th>
- 4.💪 Which justify-content value packs boxes at the start? (a) space-between (b) flex-start (c) flex-end (d) center
-
5.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h4>Rain today</h4>
<p>Rain today</p>
<h3>Rain today</h3> -
6.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 9; i++) {
total = total + 5;
}
console.log(total); - 7.⚡ Which word makes a new variable? (a) let (b) give (c) put (d) make
- 8.⚡ Which tag holds JavaScript in a page? (a) <style> (b) <script> (c) <code> (d) <js>
- 9.True or false: CSS gives the page structure. (a) False (b) True
- 10.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
-
11.🔗 Which words do you click on?
<a href="quiz.html">Art corner</a> (a) href (b) School news (c) quiz.html (d) Art corner -
12.📝 How many <input> tags are in this form?
<form>
<input type="email">
<input type="password">
<input type="submit" value="Send">
</form> - 13.🔐 Is 111111 a strong or a weak password? (a) strong (b) weak
-
14.⚖️ What colour is the text of this element?
<p class="red" id="end">Hi</p>
CSS:
.red { color: red; }
p { color: blue; } (a) blue (b) white (c) orange (d) red -
15.🔍 One closing tag is missing. Which one?
<strong>I love mangoes.</strong>
<small>Cricket is fun.</small>
<h3>Good morning! (a) </strong> (b) </b> (c) </h3> (d) </small> -
16.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="sport"> Hockey
<input type="checkbox" name="sport"> Kabaddi
<input type="checkbox" name="sport"> Football
</form> - 17.🚀 Which file should this code go in: p { color: red; } (a) style.css (b) index.html (c) script.js
- 18.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>
- 19.True or false: the server sends the page back. (a) True (b) False
-
20.📱 The screen is 700px wide. Does the rule inside @media apply?
p {
font-size: 24px;
}
@media (min-width: 1024px) {
p {
font-size: 32px;
}
} (a) No (b) Yes -
21.🎯 Which CSS selector matches this element?
<span class="menu" id="logo">Hello</span> (a) #end (b) .logo (c) #menu (d) #logo -
22.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 260px;
justify-content: center;
}
Inside are 2 boxes, each 50px wide (no margins). - 23.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <hr> (d) <ul>
-
24.🎯 Which CSS selector matches this element?
<h1 class="big" id="intro">Hello</h1> (a) .red (b) .big (c) #big (d) .intro - 25.⚖️ Which selector is the strongest? (a) an id selector (b) an element selector (c) a class selector
-
26.📊 How many cells are in each row?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Banana</td><td>Guava</td><td>Grapes</td></tr>
<tr><td>Mango</td><td>Litchi</td><td>Mango</td></tr>
<tr><td>Guava</td><td>Jamun</td><td>Litchi</td></tr>
</table> -
27.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>My pets</p> -->
<p>Fun facts</p>
<p>Cricket is fun.</p> (a) My pets (b) Fun facts (c) Cricket is fun. (d) I love mangoes. - 28.True or false: <ul> lists steps in order. (a) False (b) True
- 29.📦 In the box model, which part is the text or picture? (a) padding (b) border (c) margin (d) content
- 30.What does font-family do? (a) picks the font style (b) centres a heading (c) colours behind the text (d) makes letters bigger
- 31.🖌️ Which CSS property centres a heading? (a) font-weight (b) text-align (c) font-family (d) background-color
- 32.🚀 Which tag loads script.js into a page? (a) <a href="script.js"> (b) <link script.js> (c) <js src="script.js"> (d) <script src="script.js">
-
33.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="50"> - 34.Which of these is true of a web browser? (a) stores a website’s files (b) colours code to help us (c) is where we type code (d) turns HTML into a page
-
35.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (min-width: 768px) {
p {
font-size: 20px;
}
} -
36.⚖️ What colour is the text of this element?
<h2 class="box" id="main">Hi</h2>
CSS:
h2 { color: blue; }
h2 { color: black; } (a) red (b) blue (c) white (d) black -
37.⚖️ What colour is the text of this element?
<h1 class="box" id="main">Hi</h1>
CSS:
.box { color: green; }
.box { color: yellow; } (a) yellow (b) blue (c) green (d) black - 38.📊 Where do <td> cells go? (a) inside the <head> (b) inside a <li> (c) inside a <p> (d) inside a <tr>
- 39.Which of these is true of a web server? (a) opens web pages for us (b) shows pages from the web (c) sends pages over the net (d) shows line numbers
- 40.🌗 Is red on green easy or hard to read? (a) easy to read (b) hard to read
Answer key
- maths.html
- red
- <table>
- flex-start
- 3
- 45
- let
- <script>
- False
- opens it in a new tab
- Art corner
- 3
- weak
- red
- </h3>
- 3
- style.css
- <ol>
- True
- No
- #logo
- 80
- <ol>
- .big
- an id selector
- 3
- My pets
- False
- content
- picks the font style
- text-align
- <script src="script.js">
- 50
- turns HTML into a page
- 16
- black
- yellow
- inside a <tr>
- sends pages over the net
- hard to read
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids