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 justify-content value packs boxes at the end? (a) center (b) flex-start (c) space-between (d) flex-end
- 2.📊 Where do <td> cells go? (a) inside a <tr> (b) inside a <p> (c) inside a <li> (d) inside the <head>
- 3.True or false: <p> goes in the body. (a) True (b) False
-
4.🔗 Which words do you click on?
<a href="news.html">Visit the site</a> (a) Maths fun (b) Visit the site (c) href (d) news.html - 5.True or false: margin is the gap round content. (a) True (b) False
-
6.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (min-width: 480px) {
p {
font-size: 20px;
}
} -
7.🔗 Which address opens when you click this link?
<a href="maths.html">Art corner</a> (a) news.html (b) art.html (c) Art corner (d) maths.html - 8.🖌️ Which CSS property sets the letter colour? (a) color (b) text-align (c) font-size (d) background-color
- 9.🧩 Which language changes the text size? (a) CSS (b) HTML (c) JavaScript
- 10.💬 How does an HTML comment start? (a) # (b) <!-- (c) // (d) /*
- 11.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h4>
- 12.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
- 13.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) you type the URL (c) DNS finds the server (d) the browser shows it
-
14.🔗 Which words do you click on?
<a href="quiz.html">Play games</a> (a) quiz.html (b) href (c) Play games (d) About us - 15.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <body> (c) </html> (d) <html>
- 16.🌈 Which colour of light is strongest in rgb(157, 24, 31)? (a) red (b) blue (c) green
- 17.What does color do? (a) centres a heading (b) makes letters bigger (c) sets the letter colour (d) picks the font style
-
18.🔗 Which address opens when you click this link?
<a href="art.html">Contact us</a> (a) Contact us (b) art.html (c) news.html (d) quiz.html - 19.📊 Which tag gives the table a title? (a) <table> (b) <tr> (c) <caption> (d) <th>
- 20.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h3>? (a) <h3> (b) <h2> (c) <h1> (d) <h6>
-
21.🖌️ How big is the text, in px?
h1 {
color: white;
background-color: blue;
text-align: center;
font-size: 40px;
} -
22.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<h2>The red kite</h2>
<p>Fun facts</p>
<h2>Fun facts</h2> - 23.True or false: <h1>My Site</h1> goes in index.html. (a) False (b) True
- 24.🚀 Which file is best for code that reacts to clicks? (a) style.css (b) index.html (c) script.js (d) notes.txt
-
25.📝 How many <input> tags are in this form?
<form>
<input type="password">
<input type="text">
<input type="email">
<input type="date">
<input type="submit" value="Send">
</form> - 26.True or false: <th> makes a heading cell. (a) True (b) False
-
27.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (max-width: 1024px) {
p {
font-size: 10px;
}
} - 28.📄 Can HTML on its own run a game loop? (a) No (b) Yes
- 29.🧭 Is <footer> semantic or not semantic? (a) semantic (b) not semantic
- 30.True or false: HTML on its own can make bullet lists. (a) True (b) False
- 31.Which of these is a closing tag? (a) <b> (b) <li> (c) <body> (d) </h1>
- 32.♿ A part of the page is under a <h5> heading. Which tag should its sub-heading use? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
- 33.True or false: HTML on its own cannot make headings. (a) False (b) True
-
34.⚡ What number does this code print?
let score = 7;
score = score + 20;
score = score - 21;
console.log(score); -
35.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Rivers flow</p> - 36.🖼️ Which tag puts a picture on a page? (a) <img> (b) <p> (c) <a> (d) <pic>
- 37.🧭 Who is helped most by semantic tags? (a) only the printer (b) only the server (c) screen-reader users (d) nobody
- 38.🖌️ Which CSS property colours behind the text? (a) font-size (b) color (c) font-weight (d) background-color
- 39.🔢 When you open a web page, which comes first: “the server sends files” or “the browser shows it”? (a) the browser shows it (b) the server sends files
- 40.🎯 Which element does the selector li style? (a) <div> (b) <span class="big"> (c) <p id="top"> (d) <li class="big">
Answer key
- flex-end
- inside a <tr>
- True
- Visit the site
- False
- 20
- maths.html
- color
- CSS
- <!--
- <h1>
- in the head
- you type the URL
- Play games
- </html>
- red
- sets the letter colour
- art.html
- <caption>
- <h1>
- 40
- 2
- True
- script.js
- 5
- True
- 12
- No
- semantic
- True
- </h1>
- <h6>
- False
- 6
- 2
- <img>
- screen-reader users
- background-color
- the server sends files
- <li class="big">
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids