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 helps phones show a page at the right size? (a) the title tag (b) the br tag (c) the hr tag (d) the viewport meta tag
- 2.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes text bold (d) makes a list
- 3.📊 Which tag holds the whole table? (a) <td> (b) <tr> (c) <caption> (d) <table>
-
4.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>Rain today</p>
<h4>Hello, world!</h4>
<h2>The red kite</h2> -
5.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="radio" name="fruit"> Litchi
<input type="radio" name="fruit"> Guava
<input type="radio" name="fruit"> Banana
</form> - 6.🌈 Which colour of light is strongest in rgb(130, 224, 119)? (a) blue (b) green (c) red
- 7.📝 What does <hr> draw? (a) a table (b) a link (c) a picture (d) a line across the page
- 8.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 9.True or false: a web browser opens web pages for us. (a) False (b) True
- 10.🎯 What kind of selector is h1? (a) an element selector (b) a class selector (c) an id selector
-
11.🌍 What is the path in this URL?
http://www.example.com/games/chess.html (a) /about.html (b) http (c) www.example.com (d) /games/chess.html -
12.🔗 Which words do you click on?
<a href="quiz.html">School news</a> (a) href (b) quiz.html (c) School news (d) Take the quiz -
13.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="250"> (a) A red kite (b) cake.jpg (c) map.png (d) kite.png - 14.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) space-between (c) center (d) flex-start
- 15.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) exactly 1000px (c) 600px or narrower (d) turned off
-
16.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Papaya</li>
<li>Jamun</li>
<li>Mango</li>
</ol> -
17.🎯 Which CSS selector matches this element?
<h1 class="big" id="intro">Hello</h1> (a) #main (b) .big (c) .intro (d) .red -
18.🔍 Which line is missing its closing tag?
line 1: <p>Fun facts
line 2: <h2>I love mangoes.</h2>
line 3: <small>Cricket is fun.</small> (a) line 3 (b) line 2 (c) line 1 - 19.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) id (d) src
- 20.Which of these is an empty tag? (a) <br> (b) <title> (c) <li> (d) <b>
- 21.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
- 22.🖌️ Which CSS property colours behind the text? (a) background-color (b) font-size (c) font-weight (d) text-align
-
23.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (max-width: 600px) {
p {
font-size: 10px;
}
} - 24.🔍 Which is the odd one out? (a) answers page requests (b) stores a website’s files (c) hosts websites online (d) shows line numbers
-
25.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Fun facts</h2>
<h2>Rain today</h2>
<h2>I love mangoes.</h2>
<h2>I love mangoes.</h2> - 26.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
-
27.📱 The screen is 540px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 600px) {
p {
font-size: 22px;
}
} - 28.💪 Which justify-content value packs boxes at the end? (a) center (b) flex-end (c) flex-start (d) space-between
- 29.🚀 Which file should this code go in: alert(score); (a) style.css (b) script.js (c) index.html
- 30.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h1> or <h4>? (a) <h4> (b) <h2> (c) <h1> (d) <h6>
- 31.True or false: <input type="number"> takes only numbers. (a) False (b) True
- 32.🔢 In a basic web page file, which comes FIRST? (a) </body> (b) </head> (c) <head> (d) <!DOCTYPE html>
-
33.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Planets</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) My Hobbies (b) body (c) Thanks for visiting. (d) Planets - 34.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
- 35.🌈 In #e60000 the red part is the hex number e6. What is it as a normal number?
- 36.True or false: to tell a trusted adult is not safe. (a) True (b) False
- 37.💬 How does an HTML comment end? (a) // (b) >> (c) --> (d) */
-
38.📝 How many <input> tags are in this form?
<form>
<input type="checkbox">
<input type="number">
<input type="text">
<input type="password">
<input type="date">
<input type="submit" value="Send">
</form> - 39.🖼️ Which attribute of <img> sets how tall it is? (a) height (b) alt (c) src (d) width
- 40.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
Answer key
- the viewport meta tag
- starts a new line
- <table>
- 3
- 1
- green
- a line across the page
- in the head
- True
- an element selector
- /games/chess.html
- School news
- kite.png
- center
- 600px or narrower
- 2
- .big
- line 1
- href
- <br>
- True
- background-color
- 10
- shows line numbers
- 1
- <ol>
- 20
- flex-end
- script.js
- <h6>
- True
- <!DOCTYPE html>
- Planets
- <li>
- 230
- False
- -->
- 6
- height
- in the body
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids