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 is <input type="email"> for? (a) takes only numbers (b) sends the form (c) is for an email address (d) hides what you type
- 2.True or false: HTTPS scrambles data on its way. (a) True (b) False
-
3.🌍 What is the domain name in this URL?
https://kids.example.org/art/gallery.html (a) /art/gallery.html (b) school.example.in (c) kids.example.org (d) https - 4.Which of these goes in the head? (a) <a> (b) <link rel="stylesheet"> (c) <p> (d) <ul>
- 5.Which of these is margin? (a) the gap round content (b) the gap to other boxes (c) space inside the border (d) a solid or dotted edge
-
6.🖼️ Which picture file does the browser load?
<img src="map.png" alt="Map of India" width="300"> (a) Map of India (b) cake.jpg (c) map.png (d) dog.jpg -
7.📋 Does this list show bullets or numbers?
<ul>
<li>Banana</li>
<li>Guava</li>
</ul> (a) numbers (b) bullets - 8.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
- 9.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
- 10.🏷️ Is </body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
11.🌍 What is the protocol in this URL?
http://school.example.in/games/chess.html (a) school.example.in (b) http (c) https (d) /games/chess.html - 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) J (c) Z (d) G
- 13.Which of these is true of <header>? (a) sits at the very top (b) holds the main content (c) holds one blog post (d) helps you move around
- 14.🎯 How many elements on a page should have the same id? (a) 5 (b) 1 (c) 2 (d) any number
- 15.What does font-size do? (a) picks the font style (b) sets the letter colour (c) makes letters bigger (d) centres a heading
- 16.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
- 17.📝 What does <hr> draw? (a) a line across the page (b) a picture (c) a link (d) a table
-
18.🔗 Which address opens when you click this link?
<a href="contact.html">Visit the site</a> (a) https://example.com (b) Visit the site (c) maths.html (d) contact.html -
19.⚖️ What colour is the text of this element?
<h2 class="box" id="main">Hi</h2>
CSS:
h2 { color: blue; }
.box { color: black; } (a) yellow (b) blue (c) red (d) black - 20.Which of these has a closing tag? (a) <hr> (b) <img> (c) <h1> (d) <meta>
- 21.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) the browser shows it (c) you type the URL (d) the server sends files
-
22.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<!-- <p>Good morning!</p> -->
<!-- <p>Our school trip</p> -->
<!-- <p>Hello, world!</p> -->
<p>Cricket is fun.</p> -
23.🔁 What does this code print?
let score = 29;
if (score < 5) {
console.log("You win");
} else {
console.log("Play again");
} (a) Play again (b) You win - 24.What is <input type="radio"> for? (a) sends the form (b) lets you tick many (c) is for an email address (d) lets you pick only one
-
25.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Mango</li>
<li>Guava</li>
</ul> (a) bullets (b) numbers -
26.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="50"> - 27.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the later one (b) neither (c) the shorter one (d) the first one
- 28.🏷️ Which is the closing tag for <p>? (a) <p> (b) <p/> (c) <\p> (d) </p>
- 29.🛡️ Online: is it safe to check for https first? (a) not safe (b) safe
- 30.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
- 31.📝 Which tag holds a whole form? (a) <table> (b) <input> (c) <form> (d) <ol>
- 32.🔗 Which attribute holds the address of a link? (a) alt (b) src (c) href (d) id
-
33.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 4; i++) {
total = total + i;
}
console.log(total); - 34.💬 Does the browser show comments on the page? (a) No (b) Yes
- 35.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h2> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h2>
- 36.📄 Can HTML on its own run a game loop? (a) Yes (b) No
-
37.📝 How many <input> tags are in this form?
<form>
<input type="checkbox">
<input type="text">
<input type="submit" value="Send">
</form> - 38.True or false: <ul> is an empty tag. (a) True (b) False
-
39.♿ Is this heading order correct (no level skipped)?
<h1> → <h1> → <h3> → <h3> (a) No (b) Yes -
40.📊 How many cells are in each row?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
<tr><td>Papaya</td><td>Papaya</td><td>Jamun</td><td>Guava</td></tr>
</table>
Answer key
- is for an email address
- True
- kids.example.org
- <link rel="stylesheet">
- the gap to other boxes
- map.png
- bullets
- <a href="about.html">
- a web browser
- a closing tag
- http
- F
- sits at the very top
- 1
- makes letters bigger
- <ol>
- a line across the page
- contact.html
- black
- <h1>
- you type the URL
- 1
- Play again
- lets you pick only one
- bullets
- 50
- the later one
- </p>
- safe
- <ul>
- <form>
- href
- 10
- No
- <h4>
- No
- 3
- False
- No
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids