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 tag is the least important heading? (a) <h3> (b) <h1> (c) <h6> (d) <p>
-
2.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Guava</li>
<li>Papaya</li>
<li>Banana</li>
<li>Orange</li>
</ul> - 3.⚡ Where does console.log() show its output? (a) on the title bar (b) in the address bar (c) in the console (d) on the printer
-
4.🔗 Which words do you click on?
<a href="maths.html">About us</a> (a) Contact us (b) href (c) About us (d) maths.html - 5.💪 Which flexbox property picks row or column? (a) flex-direction (b) align-items (c) justify-content (d) gap
- 6.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
-
7.🔗 Where does this link open?
<a href="games.html" target="_blank">Maths fun</a> (a) in a new tab (b) in the same tab -
8.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 1024px) {
p {
font-size: 22px;
}
} - 9.✍️ Which sign ends each CSS declaration? (a) ; (b) . (c) , (d) :
-
10.⚖️ What colour is the text of this element?
<h2 class="big" id="end">Hi</h2>
CSS:
#end { color: green; }
h2 { color: purple; } (a) green (b) yellow (c) red (d) purple - 11.🛡️ Is it safe to use the same password on every site? (a) No (b) Yes
- 12.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h3>? (a) <h6> (b) <h3> (c) <h2> (d) <h4>
- 13.Which of these is safe to do online? (a) type a password on http (b) ask before downloading (c) share your OTP (d) put secrets in comments
-
14.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Orange</li>
</ol> (a) bullets (b) numbers - 15.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
-
16.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 3; i++) {
total = total + i;
}
console.log(total); -
17.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (min-width: 480px) {
p {
font-size: 26px;
}
} - 18.Which of these has a closing tag? (a) <br> (b) <input> (c) <li> (d) <img>
-
19.🔠 How many headings are in this code?
<h1>My best friend</h1>
<p>Cricket is fun.</p>
<p>My pets</p> - 20.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <html> (d) <body>
-
21.🔗 Which words do you click on?
<a href="games.html">School news</a> (a) games.html (b) href (c) Take the quiz (d) School news - 22.📝 Which tag holds a whole form? (a) <ol> (b) <form> (c) <input> (d) <table>
- 23.🧭 Is <article> semantic or not semantic? (a) not semantic (b) semantic
- 24.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
- 25.🛡️ A pop-up says you won a prize and asks for your password. What do you do? (a) type the password (b) share it with friends (c) close it, tell an adult (d) click it twice
- 26.🔢 In a basic web page file, which comes LAST? (a) <html> (b) </html> (c) <head> (d) </head>
-
27.🔁 How many times does this code print “Welcome”?
for (let i = 3; i < 6; i++) {
console.log("Welcome");
} - 28.📝 Which tag makes a big box for many lines of text? (a) <textarea> (b) <br> (c) <p> (d) <input>
- 29.💬 How does an HTML comment end? (a) >> (b) --> (c) */ (d) //
- 30.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <link> (d) <p>
-
31.⚖️ What colour is the text of this element?
<p class="note" id="logo">Hi</p>
CSS:
#logo { color: white; }
#logo { color: orange; } (a) white (b) blue (c) orange (d) purple - 32.True or false: <input type="number"> takes only numbers. (a) False (b) True
- 33.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <tr> (c) inside a <p> (d) inside the <head>
- 34.📱 What does a media query check? (a) the page title (b) the time of day (c) the screen width (d) the battery level
- 35.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 36.True or false: padding is the line round the box. (a) True (b) False
- 37.🎯 What kind of selector is #end? (a) a class selector (b) an element selector (c) an id selector
- 38.⚡ What does JavaScript add to a web page? (a) only colours (b) the page title (c) the domain name (d) actions and changes
- 39.🧭 Which semantic tag helps you move around? (a) <nav> (b) <main> (c) <article> (d) <header>
- 40.True or false: in <img>, alt is read by screen readers. (a) True (b) False
Answer key
- <h6>
- 5
- in the console
- About us
- flex-direction
- in the head
- in a new tab
- 20
- ;
- green
- No
- <h2>
- ask before downloading
- numbers
- <ul>
- 6
- 24
- <li>
- 1
- <!DOCTYPE html>
- School news
- <form>
- semantic
- <ul>
- close it, tell an adult
- </html>
- 3
- <textarea>
- -->
- <a>
- orange
- True
- inside a <tr>
- the screen width
- has a closing tag
- False
- an id selector
- actions and changes
- <nav>
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids