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.True or false: HTML lays out the page. (a) False (b) True
- 2.🌈 Which colour is #00ffff? (a) red (b) cyan (c) white (d) black
-
3.🔗 Where does this link open?
<a href="quiz.html">Contact us</a> (a) in a new tab (b) in the same tab -
4.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (min-width: 1024px) {
p {
font-size: 20px;
}
} -
5.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="50"> - 6.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 6 (d) 3
- 7.Which of these is not safe to do online? (a) post your home address (b) keep passwords secret (c) use a nickname in games (d) log out on shared PCs
-
8.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Try this poha.</p>
</body>
</html> (a) Try this poha. (b) body (c) Welcome! (d) Art Gallery - 9.True or false: a code editor is where we type code. (a) True (b) False
-
10.⚖️ What colour is the text of this element?
<p class="big" id="logo">Hi</p>
CSS:
.big { color: red; }
.big { color: yellow; } (a) purple (b) red (c) orange (d) yellow - 11.True or false: <td> holds the whole table. (a) False (b) True
- 12.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
-
13.⚡ What does this code show?
let name = "Arjun";
alert("Well done, " + name + "!"); (a) Arjun (b) Well done, Arjun! (c) name (d) Well done, name! - 14.🔐 Is Rain#Drop_42! a strong or a weak password? (a) strong (b) weak
- 15.🔍 Which is the odd one out? (a) puts a picture on a page (b) makes a link (c) makes headings and lists (d) checks a quiz answer
- 16.🔗 What does HyperText mean? (a) secret text (b) very big text (c) text with links (d) text in colour
-
17.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Planets</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Thanks for visiting. (b) Cricket Club (c) body (d) Planets -
18.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>My best friend</p> --> -
19.🔗 Which address opens when you click this link?
<a href="maths.html">About us</a> (a) art.html (b) maths.html (c) news.html (d) About us -
20.🎯 Which CSS selector matches this element?
<span class="big" id="main">Hello</span> (a) #big (b) span (c) .main (d) p - 21.Which colour pair is hard to read? (a) white on dark blue (b) pink on red (c) dark grey on white (d) black on white
- 22.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 23.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
-
24.✍️ Which property is set to center in this rule?
p {
text-align: center;
color: red;
} (a) text-align (b) margin (c) background-color (d) center -
25.📱 The screen is 375px wide. Does the rule inside @media apply?
p {
font-size: 20px;
}
@media (max-width: 480px) {
p {
font-size: 18px;
}
} (a) No (b) Yes - 26.Which of these is an opening tag? (a) </title> (b) </p> (c) <title> (d) </body>
- 27.🌍 What do we call the computer that stores a website? (a) a keyboard (b) a server (c) a mouse (d) a printer
- 28.🔢 On a typical page, from top to bottom, which comes LAST? (a) <header> (b) <footer> (c) <main> (d) <nav>
- 29.True or false: <li> shows 1, 2, 3 numbers. (a) True (b) False
- 30.True or false: <ul> is an empty tag. (a) False (b) True
-
31.🌍 What is the domain name in this URL?
https://kids.example.org/news/today.html (a) kids.example.org (b) /news/today.html (c) school.example.in (d) https - 32.True or false: <ul> shows bullet points. (a) False (b) True
- 33.🔢 When you open a web page, which comes first: “you type the URL” or “DNS finds the server”? (a) you type the URL (b) DNS finds the server
-
34.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p> (a) Cricket is fun. (b) Rain today (c) Good morning! - 35.📦 In the box model, which part is space inside the border? (a) margin (b) border (c) padding (d) content
- 36.🚀 What is the home page file of a website usually called? (a) main.png (b) index.html (c) home.css (d) start.js
-
37.📱 The screen is 540px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (max-width: 1024px) {
p {
font-size: 10px;
}
} (a) No (b) Yes -
38.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 60px;
padding: 20px;
border: 3px solid black;
margin: 15px;
} - 39.🔐 Is qwerty a strong or a weak password? (a) strong (b) weak
-
40.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) index.html (c) Welcome! (d) Cricket Club
Answer key
- False
- cyan
- in the same tab
- 12
- 50
- 6
- post your home address
- Welcome!
- True
- yellow
- False
- in the body
- Well done, Arjun!
- strong
- checks a quiz answer
- text with links
- Planets
- 1
- maths.html
- span
- pink on red
- No
- to describe the image
- text-align
- Yes
- <title>
- a server
- <footer>
- False
- False
- kids.example.org
- True
- you type the URL
- Rain today
- padding
- index.html
- Yes
- 136
- weak
- Cricket Club
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids