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 rows does this table have?
<table>
<tr><td>Guava</td><td>Litchi</td><td>Jamun</td></tr>
<tr><td>Grapes</td><td>Mango</td><td>Banana</td></tr>
</table> - 2.📝 Which input type is for an email address? (a) submit (b) radio (c) text (d) email
- 3.📄 Can HTML on its own add up two numbers? (a) Yes (b) No
- 4.🧩 Which language sets colours and fonts? (a) HTML (b) JavaScript (c) CSS
- 5.📦 In the box model, which part is the gap round content? (a) margin (b) border (c) content (d) padding
- 6.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) address (c) attribute (d) editor
- 7.🌐 Which one stores a website’s files? (a) a web server (b) a web browser (c) a code editor
- 8.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
-
9.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 120px;
justify-content: flex-start;
}
Inside are 2 boxes, each 50px wide (no margins). - 10.🌈 Which colour of light is strongest in rgb(218, 121, 79)? (a) red (b) blue (c) green
- 11.🎯 Which sign starts a class selector? (a) @ (b) . (c) # (d) &
- 12.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) <!DOCTYPE html> (b) </head>
- 13.🖌️ Which CSS property makes letters bigger? (a) font-size (b) color (c) font-family (d) background-color
-
14.💬 How many paragraphs show on the page?
<p>The red kite</p>
<p>My pets</p>
<p>Good morning!</p>
<!-- <p>Rain today</p> -->
<p>Fun facts</p> - 15.🚀 Where in index.html does the link to style.css go? (a) inside a <p> (b) in the footer (c) after </html> (d) in the head
-
16.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>My pets</p>
<p>My pets</p>
<h2>Fun facts</h2> - 17.📝 Which input type lets you tick many? (a) submit (b) radio (c) date (d) checkbox
- 18.True or false: .big is an id selector. (a) False (b) True
- 19.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 20.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
21.✍️ What is the selector in this CSS rule?
#top {
font-size: 20px;
background-color: yellow;
} (a) font-size (b) yellow (c) #top (d) li -
22.⚡ What does this code show?
let name = "Aman";
console.log("Welcome, " + name + "!"); (a) Welcome, Aman! (b) Welcome, name! (c) name (d) Aman - 23.✍️ In color: blue; which part is the value? (a) : (b) blue (c) color (d) ;
- 24.📝 Which tag makes a drop-down list? (a) <ul> (b) <select> (c) <ol> (d) <li>
- 25.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 26.True or false: <img> has a closing tag. (a) False (b) True
-
27.🔗 Which address opens when you click this link?
<a href="https://example.com">Take the quiz</a> (a) art.html (b) maths.html (c) Take the quiz (d) https://example.com - 28.🔗 What does HyperText mean? (a) very big text (b) text with links (c) text in colour (d) secret text
- 29.📝 What does <br> do? (a) makes a list (b) adds a picture (c) starts a new line (d) makes text bold
- 30.True or false: in <img>, alt sets how wide it is. (a) True (b) False
- 31.⚡ Which JavaScript word runs code when true? (a) let (b) if (c) console.log() (d) alert()
-
32.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Match report</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Match report (b) Art Gallery (c) Here is my best one. (d) body -
33.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>The red kite</p>
<p>I love mangoes.</p>
<h4>My pets</h4> -
34.🌍 What is the domain name in this URL?
http://learn.example.com/games/chess.html (a) http (b) learn.example.com (c) www.example.com (d) /games/chess.html - 35.Which of these goes in the head? (a) <table> (b) <img> (c) <h1> (d) <title>
- 36.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h6> or <h2>? (a) <h4> (b) <h3> (c) <h2> (d) <h6>
- 37.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 4 (c) 3 (d) 2
-
38.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 450px;
justify-content: flex-start;
}
Inside are 4 boxes, each 100px wide (no margins). - 39.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) script.js (b) style.css (c) index.html
- 40.🌈 In #00c500 the green part is the hex number c5. What is it as a normal number?
Answer key
- 2
- No
- CSS
- padding
- element
- a web server
- <ol>
- 20
- red
- .
- <!DOCTYPE html>
- font-size
- 4
- in the head
- 2
- checkbox
- False
- an opening tag
- an empty tag
- #top
- Welcome, Aman!
- blue
- <select>
- No
- False
- https://example.com
- text with links
- starts a new line
- False
- if
- Match report
- 2
- learn.example.com
- <title>
- <h6>
- 3
- 50
- style.css
- 197
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids