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.📊 How many cells does this table have in all?
<table>
<tr><td>Banana</td><td>Banana</td></tr>
<tr><td>Papaya</td><td>Grapes</td></tr>
<tr><td>Banana</td><td>Orange</td></tr>
</table> - 2.🚀 What is the home page file of a website usually called? (a) home.css (b) main.png (c) start.js (d) index.html
- 3.True or false: .big is a class selector. (a) True (b) False
- 4.What is <input type="email"> for? (a) lets you tick many (b) picks a day (c) is for an email address (d) lets you pick only one
- 5.📋 Which list tag is one item of a list? (a) <ol> (b) <ul> (c) <li>
-
6.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 240px;
justify-content: center;
}
Inside are 4 boxes, each 40px wide (no margins). -
7.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 260px;
padding: 15px;
border: 4px solid black;
margin: 20px;
} -
8.🎯 Which CSS selector matches this element?
<h2 class="note" id="top">Hello</h2> (a) h2 (b) #intro (c) li (d) .top - 9.🖼️ Why do we add alt text to an image? (a) to colour it (b) to describe the image (c) to load it faster (d) to make it bigger
- 10.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
- 11.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) space-between (c) center (d) flex-start
- 12.⚖️ Which selector is the strongest? (a) an element selector (b) a class selector (c) an id selector
- 13.🔢 On a typical page, from top to bottom, what comes right after “<header>”? (a) <footer> (b) <nav> (c) <main>
-
14.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Papaya</li>
</ul> (a) bullets (b) numbers - 15.True or false: a web server colours code to help us. (a) True (b) False
- 16.🔢 To build and share your first web page, which comes FIRST? (a) add CSS styles (b) plan what to show (c) test in a browser (d) write the HTML
- 17.🌈 Which colour is #00ff00? (a) yellow (b) cyan (c) bright green (d) black
-
18.⚖️ What colour is the text of this element?
<h1 class="menu" id="hero">Hi</h1>
CSS:
h1 { color: red; }
h1 { color: green; } (a) orange (b) green (c) red (d) black - 19.✍️ Which sign ends each CSS declaration? (a) , (b) . (c) : (d) ;
- 20.🧩 Which language checks a quiz answer? (a) CSS (b) HTML (c) JavaScript
-
21.📋 How many items does this list show?
<ul>
<li>Litchi</li>
<li>Guava</li>
<li>Grapes</li>
<li>Banana</li>
</ul> -
22.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<h4>I love mangoes.</h4>
<p>My best friend</p>
<h3>Hello, world!</h3>
<h4>Fun facts</h4> - 23.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 24.📝 Which tag makes a big box for many lines of text? (a) <input> (b) <textarea> (c) <p> (d) <br>
- 25.🔁 When does the else part run? (a) when if is false (b) never (c) always (d) when if is true
- 26.♿ A part of the page is under a <h4> heading. Which tag should its sub-heading use? (a) <h5> (b) <h2> (c) <h1> (d) <h3>
-
27.📋 What number does the browser show next to “Jamun”?
<ol start="2">
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
</ol> - 28.🎯 Can many elements share the same class? (a) Yes (b) No
- 29.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
-
30.🔗 Where does this link open?
<a href="maths.html" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab - 31.🧩 Which language counts down a timer? (a) HTML (b) JavaScript (c) CSS
- 32.True or false: to share your password is not safe. (a) False (b) True
-
33.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Banana</li>
</ul> - 34.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
-
35.🔁 How many times does this code print “Hello”?
for (let i = 1; i <= 8; i++) {
console.log("Hello");
} -
36.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Planets</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) Planets (c) Art Gallery (d) body - 37.🔐 Is 111111 a strong or a weak password? (a) strong (b) weak
- 38.⚡ A JavaScript file usually ends with which extension? (a) .html (b) .css (c) .jpg (d) .js
- 39.🌈 Which colour of light is strongest in rgb(73, 42, 227)? (a) green (b) red (c) blue
- 40.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
Answer key
- 6
- index.html
- True
- is for an email address
- <li>
- 40
- 298
- h2
- to describe the image
- <ul>
- center
- an id selector
- <nav>
- bullets
- False
- plan what to show
- bright green
- green
- ;
- JavaScript
- 4
- 4
- has a closing tag
- <textarea>
- when if is false
- <h5>
- 4
- Yes
- the body
- in a new tab
- JavaScript
- True
- 2
- hard to read
- 8
- Planets
- weak
- .js
- blue
- in the body
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids