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 colour is #ff00ff? (a) white (b) bright green (c) magenta (d) black
- 2.📱 Which tag helps phones show a page at the right size? (a) the br tag (b) the title tag (c) the hr tag (d) the viewport meta tag
-
3.🖌️ How big is the text, in px?
h1 {
text-align: left;
font-size: 28px;
background-color: purple;
color: blue;
} - 4.📝 Which tag makes a drop-down list? (a) <ol> (b) <li> (c) <ul> (d) <select>
- 5.🖌️ Which CSS property makes letters bigger? (a) text-align (b) font-size (c) font-weight (d) color
- 6.🔐 Is iloveyou a strong or a weak password? (a) strong (b) weak
- 7.🔢 To build and share your first web page, which comes LAST? (a) write the HTML (b) publish it online (c) add CSS styles (d) plan what to show
-
8.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>Mars is red.</p>
</body>
</html> (a) Class 7 Blog (b) All about me (c) index.html (d) Mars is red. -
9.✍️ Which property is set to bold in this rule?
p {
color: red;
padding: 8px;
font-weight: bold;
} (a) font-weight (b) width (c) bold (d) border - 10.True or false: in <img>, alt names the picture file. (a) False (b) True
-
11.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 140px;
justify-content: flex-end;
}
Inside are 2 boxes, each 60px wide (no margins). -
12.🔁 What does this code print?
let age = 8;
if (age < 21) {
console.log("teen");
} else {
console.log("child");
} (a) child (b) teen - 13.True or false: <table> holds the whole table. (a) True (b) False
-
14.🔗 Which words do you click on?
<a href="quiz.html">Play games</a> (a) About us (b) href (c) Play games (d) quiz.html - 15.What does font-weight do? (a) sets the letter colour (b) centres a heading (c) makes letters bigger (d) makes the text bold
- 16.Which of these is a weak password? (a) Blue@Tiger_74 (b) password (c) Mango#Kite29! (d) S0lar!Pen#8
-
17.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="250"> -
18.🌍 What is the path in this URL?
http://www.example.net/art/gallery.html (a) http (b) /art/gallery.html (c) /news/today.html (d) www.example.net - 19.🔍 Which is the odd one out? (a) makes a form box (b) makes headings and lists (c) puts a picture on a page (d) rounds box corners
-
20.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Birds sing<br>Stars shine<br>Kites fly high<br>Roses are red</p> - 21.🎯 Which sign starts an id selector? (a) # (b) . (c) & (d) @
- 22.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h5> (d) <h4>
-
23.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 170px;
justify-content: space-between;
}
Inside are 2 boxes, each 80px wide (no margins). - 24.🌗 Is yellow on white easy or hard to read? (a) easy to read (b) hard to read
-
25.🔁 What does this code print?
let temp = 3;
if (temp >= 20) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Hot (b) Cool - 26.🖌️ Which CSS property picks the font style? (a) color (b) text-align (c) font-weight (d) font-family
- 27.🖼️ Which tag puts a picture on a page? (a) <p> (b) <img> (c) <pic> (d) <a>
- 28.🌈 Which colour of light is strongest in rgb(65, 241, 138)? (a) blue (b) green (c) red
- 29.Which of these is true of a code editor? (a) turns HTML into a page (b) has an address bar (c) is where we type code (d) answers page requests
- 30.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3/> (c) <h3> (d) <\h3>
- 31.⚡ Where does console.log() show its output? (a) on the printer (b) on the title bar (c) in the address bar (d) in the console
-
32.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Kites fly high<br>Roses are red<br>Rivers flow</p> -
33.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 50px;
padding: 10px;
border: 4px solid black;
margin: 0px;
} - 34.♿ Who uses a screen reader? (a) only robots (b) people who are blind (c) only coders (d) only teachers
- 35.♿ Does this help everyone, or make the page harder to use: use big enough text? (a) helps everyone (b) makes it harder
- 36.📦 In the box model, which part is space inside the border? (a) border (b) padding (c) margin (d) content
-
37.🔍 Which line is missing its closing tag?
line 1: <small>I love mangoes.
line 2: <h1>The red kite</h1>
line 3: <h2>Cricket is fun.</h2> (a) line 1 (b) line 2 (c) line 3 - 38.Which of these is an empty tag? (a) <img> (b) <p> (c) <ul> (d) <h1>
- 39.🌐 Which one shows line numbers? (a) a web server (b) a web browser (c) a code editor
- 40.🧩 Which language changes the text size? (a) JavaScript (b) CSS (c) HTML
Answer key
- magenta
- the viewport meta tag
- 28
- <select>
- font-size
- weak
- publish it online
- Class 7 Blog
- font-weight
- False
- 20
- teen
- True
- Play games
- makes the text bold
- password
- 250
- /art/gallery.html
- rounds box corners
- 5
- #
- <h5>
- 10
- hard to read
- Cool
- font-family
- <img>
- green
- is where we type code
- </h3>
- in the console
- 4
- 78
- people who are blind
- helps everyone
- padding
- line 1
- <img>
- a code editor
- CSS
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids