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 colour is behind the letters?
h1 {
background-color: green;
text-align: left;
color: yellow;
font-size: 24px;
} (a) blue (b) green (c) yellow - 2.📊 In a table, which tag is a row? (a) <td> (b) <tb> (c) <tr> (d) <th>
- 3.⚖️ Which selector is the strongest? (a) an id selector (b) a class selector (c) an element selector
- 4.♿ A part of the page is under a <h1> heading. Which tag should its sub-heading use? (a) <h6> (b) <h3> (c) <h5> (d) <h2>
- 5.True or false: the server sends the page back. (a) True (b) False
-
6.🌍 What is the protocol in this URL?
http://www.example.net/news/today.html (a) /news/today.html (b) www.example.net (c) https (d) http - 7.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 4 (b) 3 (c) 6 (d) 2
- 8.Which of these is a closing tag? (a) <body> (b) <h1> (c) </p> (d) <p>
- 9.🔍 Which is the odd one out? (a) hosts websites online (b) sends pages over the net (c) answers page requests (d) shows pages from the web
- 10.True or false: CSS makes a form box. (a) False (b) True
- 11.🔗 Which attribute holds the address of a link? (a) id (b) src (c) alt (d) href
- 12.True or false: <caption> holds the whole table. (a) True (b) False
- 13.What does justify-content: flex-end do? (a) packs boxes at the end (b) equal gaps, none at ends (c) puts boxes in the middle (d) packs boxes at the start
-
14.📝 How many <input> tags are in this form?
<form>
<input type="text">
<input type="email">
<input type="submit" value="Send">
</form> - 15.🎯 What kind of selector is #end? (a) an element selector (b) an id selector (c) a class selector
- 16.Which colour pair is easy to read? (a) pink on red (b) yellow on white (c) black on white (d) light grey on white
- 17.🔍 Which is the odd one out? (a) reacts to a button click (b) counts down a timer (c) lays out the page (d) shows a pop-up message
- 18.True or false: “tiny grey text” helps everyone use the page. (a) False (b) True
- 19.🌈 Which colour is #ff0000? (a) magenta (b) bright green (c) red (d) yellow
- 20.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h3> or <h6>? (a) <h3> (b) <h5> (c) <h1> (d) <h6>
- 21.Which of these is true of a code editor? (a) stores a website’s files (b) shows pages from the web (c) turns HTML into a page (d) colours code to help us
-
22.📊 How many rows does this table have?
<table>
<tr><th>Name</th><th>Fruit</th></tr>
<tr><td>Orange</td><td>Litchi</td></tr>
</table> - 23.🔍 Which is the odd one out? (a) sends pages over the net (b) shows pages from the web (c) has an address bar (d) turns HTML into a page
-
24.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Mango</li>
<li>Litchi</li>
</ol> - 25.🧭 Is <footer> semantic or not semantic? (a) not semantic (b) semantic
- 26.What does font-size do? (a) makes letters bigger (b) makes the text bold (c) centres a heading (d) colours behind the text
- 27.🛡️ Online: is it safe to share your OTP? (a) safe (b) not safe
-
28.🔁 What does this code print?
let marks = 30;
if (marks >= 41) {
console.log("Pass");
} else {
console.log("Try again");
} (a) Pass (b) Try again - 29.🔢 On a typical page, from top to bottom, what comes right after “<header>”? (a) <main> (b) <footer> (c) <nav>
- 30.True or false: to think before you post is not safe. (a) True (b) False
-
31.🔍 Which line is missing its closing tag?
line 1: <small>Cricket is fun.
line 2: <p>My best friend</p>
line 3: <h1>My pets</h1> (a) line 1 (b) line 2 (c) line 3 - 32.⚡ Which JavaScript word repeats code? (a) console.log() (b) let (c) for (d) if
- 33.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
- 34.🖌️ Which CSS property sets the letter colour? (a) background-color (b) font-size (c) text-align (d) color
-
35.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 160px;
justify-content: space-between;
}
Inside are 2 boxes, each 50px wide (no margins). - 36.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h1> or <h4>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
- 37.💪 Which justify-content value packs boxes at the start? (a) center (b) space-between (c) flex-start (d) flex-end
-
38.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>My pets</p> -->
<!-- <p>Hello, world!</p> -->
<p>Fun facts</p> - 39.🔢 To build and share your first web page, which comes LAST? (a) publish it online (b) write the HTML (c) add CSS styles (d) plan what to show
-
40.⚖️ What colour is the text of this element?
<p class="note" id="end">Hi</p>
CSS:
#end { color: yellow; }
#end { color: blue; } (a) green (b) red (c) yellow (d) blue
Answer key
- green
- <tr>
- an id selector
- <h2>
- True
- http
- 3
- </p>
- shows pages from the web
- False
- href
- False
- packs boxes at the end
- 3
- an id selector
- black on white
- lays out the page
- False
- red
- <h1>
- colours code to help us
- 2
- sends pages over the net
- 3
- semantic
- makes letters bigger
- not safe
- Try again
- <nav>
- False
- line 1
- for
- <ol>
- color
- 60
- <h6>
- flex-start
- 1
- publish it online
- blue
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids