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 of these is a closing tag? (a) </p> (b) <li> (c) <title> (d) <h1>
- 2.True or false: to log out on shared PCs is not safe. (a) False (b) True
- 3.🌈 Which colour is rgb(255, 0, 0)? (a) yellow (b) cyan (c) red (d) black
-
4.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Roses are red</p> - 5.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
- 6.🧭 Is <article> semantic or not semantic? (a) semantic (b) not semantic
-
7.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 3; i++) {
total = total + 3;
}
console.log(total); - 8.🎯 How many elements on a page should have the same id? (a) any number (b) 5 (c) 2 (d) 1
- 9.📊 Which tag makes one table row? (a) <td> (b) <tr> (c) <th> (d) <table>
- 10.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 11.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h1> (d) <h3>
- 12.Which of these is an empty tag? (a) <li> (b) <h1> (c) <img> (d) <p>
- 13.True or false: <table> holds the whole table. (a) True (b) False
- 14.🛡️ Before typing a password on a site, check the address starts with ___. (a) http (b) ftp (c) www (d) https
- 15.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
- 16.🌍 Which one asks for a web page? (a) HTTPS (b) the URL (c) the browser (d) the server
- 17.🚀 Which file should this code go in: let score = 0; (a) style.css (b) index.html (c) script.js
-
18.📊 How many rows does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Jamun</td><td>Jamun</td><td>Orange</td></tr>
</table> - 19.Which of these is the content? (a) the line round the box (b) space outside the border (c) a solid or dotted edge (d) the text or picture
- 20.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 21.🔢 In a basic web page file, which comes FIRST? (a) </body> (b) <body> (c) </head> (d) <!DOCTYPE html>
-
22.📊 How many cells are in each row?
<table>
<tr><td>Mango</td><td>Guava</td><td>Mango</td></tr>
<tr><td>Banana</td><td>Guava</td><td>Papaya</td></tr>
</table> - 23.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <a> (d) <img>
- 24.Which of these does HTML do? (a) rounds box corners (b) reacts to a button click (c) makes headings and lists (d) changes the text size
-
25.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="400"> (a) Map of India (b) kite.png (c) width (d) A red kite - 26.✍️ Which sign ends each CSS declaration? (a) . (b) : (c) ; (d) ,
-
27.🔁 What does this code print?
let temp = 15;
if (temp >= 39) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Hot (b) Cool -
28.🔍 One closing tag is missing. Which one?
<h1>Fun facts</h1>
<h2>Our school trip
<small>The red kite</small> (a) </h1> (b) </small> (c) </p> (d) </h2> -
29.🖌️ How big is the text, in px?
li {
background-color: white;
color: green;
text-align: center;
font-size: 24px;
} - 30.True or false: CSS reacts to a button click. (a) False (b) True
-
31.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 160px;
padding: 5px;
border: 5px solid black;
margin: 5px;
} - 32.📦 In the box model, which part is a solid or dotted edge? (a) margin (b) padding (c) content (d) border
-
33.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="sport"> Chess
<input type="radio" name="sport"> Hockey
<input type="radio" name="sport"> Cricket
</form> - 34.True or false: HTML on its own can count button clicks. (a) False (b) True
- 35.Which of these has a closing tag? (a) <p> (b) <input> (c) <meta> (d) <hr>
- 36.True or false: in <img>, alt sets how tall it is. (a) False (b) True
-
37.🔒 Is the connection to this address scrambled (encrypted)?
https://www.example.com/index.html (a) Yes (b) No - 38.True or false: <li> has a closing tag. (a) False (b) True
- 39.♿ Does this help everyone, or make the page harder to use: write clear link text? (a) helps everyone (b) makes it harder
- 40.🌈 Which colour is #ffff00? (a) bright green (b) yellow (c) cyan (d) magenta
Answer key
- </p>
- False
- red
- 2
- <a>
- semantic
- 9
- 1
- <tr>
- an opening tag
- <h6>
- <img>
- True
- https
- a web server
- the browser
- script.js
- 2
- the text or picture
- an empty tag
- <!DOCTYPE html>
- 3
- <img>
- makes headings and lists
- A red kite
- ;
- Cool
- </h2>
- 24
- False
- 190
- border
- 1
- False
- <p>
- False
- Yes
- True
- helps everyone
- yellow
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids