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.🛡️ Online: is it safe to download from pop-ups? (a) safe (b) not safe
- 2.What does font-size do? (a) colours behind the text (b) makes letters bigger (c) centres a heading (d) makes the text bold
-
3.🌍 What is the path in this URL?
https://kids.example.org/news/today.html (a) https (b) /games/chess.html (c) kids.example.org (d) /news/today.html - 4.🌍 Which one sends the page back? (a) the URL (b) HTTPS (c) the server (d) the browser
-
5.📝 How many <input> tags are in this form?
<form>
<input type="date">
<input type="number">
<input type="checkbox">
<input type="text">
<input type="password">
<input type="submit" value="Send">
</form> - 6.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 7.True or false: in <img>, alt names the picture file. (a) False (b) True
-
8.🎯 Which CSS selector matches this element?
<li class="box" id="top">Hello</li> (a) div (b) li (c) #box (d) .star -
9.🔁 What is the LAST number this code prints?
for (let i = 0; i < 10; i = i + 2) {
console.log(i);
} - 10.🔁 What does i++ do? (a) adds 1 to i (b) prints i (c) doubles i (d) takes 1 from i
- 11.True or false: in <img>, alt describes the picture. (a) True (b) False
- 12.Which of these is not safe to do online? (a) ask before downloading (b) share your password (c) check for https first (d) think before you post
-
13.🔗 Which words do you click on?
<a href="news.html">About us</a> (a) About us (b) news.html (c) Contact us (d) href -
14.🖌️ Where does the text sit on its line?
h1 {
text-align: right;
font-size: 32px;
background-color: yellow;
color: orange;
} (a) on the left (b) in the middle (c) on the right - 15.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <header> (b) <main> (c) <nav> (d) <footer>
- 16.🧩 Which language reacts to a button click? (a) HTML (b) CSS (c) JavaScript
-
17.🔗 Where does this link open?
<a href="maths.html">Play games</a> (a) in the same tab (b) in a new tab - 18.🚀 Which file should this code go in: alert(score); (a) script.js (b) style.css (c) index.html
- 19.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <tr> (c) inside the <head> (d) inside a <p>
- 20.🔢 When you open a web page, which comes FIRST? (a) the browser shows it (b) DNS finds the server (c) the browser asks it (d) you type the URL
- 21.🧭 Is <article> semantic or not semantic? (a) not semantic (b) semantic
-
22.⚡ What number does this code print?
let score = 30;
score = score + 6;
score = score - 33;
console.log(score); - 23.Which of these is a strong password? (a) qwerty (b) Rain#Drop_42! (c) abcd1234 (d) password
- 24.💪 Which flexbox property turns on flexbox? (a) display: flex (b) flex-direction (c) justify-content (d) align-items
-
25.⚖️ What colour is the text of this element?
<h1 class="star" id="intro">Hi</h1>
CSS:
#intro { color: purple; }
.star { color: green; } (a) blue (b) green (c) red (d) purple -
26.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets - 27.Which of these goes in the head? (a) <p> (b) <a> (c) <title> (d) <ul>
- 28.⚡ What does alert() show? (a) a new tab (b) a table (c) a pop-up box (d) a picture
- 29.True or false: a web browser answers page requests. (a) False (b) True
- 30.✍️ In color: blue; which part is the value? (a) color (b) : (c) ; (d) blue
- 31.💬 Does the browser show comments on the page? (a) Yes (b) No
- 32.📝 Which input type takes only numbers? (a) email (b) checkbox (c) text (d) number
- 33.True or false: the content is the gap round content. (a) False (b) True
- 34.📱 Which tag helps phones show a page at the right size? (a) the viewport meta tag (b) the title tag (c) the hr tag (d) the br tag
- 35.🧩 Which language changes the page live? (a) CSS (b) JavaScript (c) HTML
-
36.🔍 Which line is missing its closing tag?
line 1: <p>I love mangoes.
line 2: <h1>Fun facts</h1>
line 3: <em>Cricket is fun.</em> (a) line 1 (b) line 3 (c) line 2 - 37.🔗 What does target="_blank" do to a link? (a) makes it bold (b) makes it blank (c) opens it in a new tab (d) hides the link
- 38.Which of these goes in the head? (a) <p> (b) <a> (c) <img> (d) <link rel="stylesheet">
- 39.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) src (c) height (d) alt
- 40.Which of these is true of a web server? (a) has an address bar (b) shows line numbers (c) shows pages from the web (d) stores a website’s files
Answer key
- not safe
- makes letters bigger
- /news/today.html
- the server
- 6
- an empty tag
- False
- li
- 8
- adds 1 to i
- True
- share your password
- About us
- on the right
- <header>
- JavaScript
- in the same tab
- script.js
- inside a <tr>
- you type the URL
- semantic
- 3
- Rain#Drop_42!
- display: flex
- purple
- bullets
- <title>
- a pop-up box
- False
- blue
- No
- number
- False
- the viewport meta tag
- JavaScript
- line 1
- opens it in a new tab
- <link rel="stylesheet">
- alt
- stores a website’s files
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids