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 heading shows the SMALLEST text: <h2>, <h3>, <h6> or <h1>? (a) <h3> (b) <h2> (c) <h6> (d) <h1>
- 2.Which of these is true of a code editor? (a) sends pages over the net (b) stores a website’s files (c) is where we type code (d) hosts websites online
-
3.📋 What number does the browser show next to “Jamun”?
<ol start="7">
<li>Papaya</li>
<li>Grapes</li>
<li>Jamun</li>
</ol> - 4.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h6> (d) <h4>
- 5.📱 What does a media query check? (a) the page title (b) the time of day (c) the screen width (d) the battery level
- 6.True or false: in <img>, width is read by screen readers. (a) True (b) False
- 7.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
-
8.⚖️ What colour is the text of this element?
<p class="menu" id="end">Hi</p>
CSS:
.menu { color: blue; }
.menu { color: red; } (a) blue (b) orange (c) purple (d) red -
9.🔗 Which address opens when you click this link?
<a href="about.html">Contact us</a> (a) Contact us (b) about.html (c) https://example.com (d) contact.html - 10.True or false: li is an id selector. (a) False (b) True
- 11.What is <input type="password"> for? (a) is for one line of words (b) takes only numbers (c) lets you tick many (d) hides what you type
-
12.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>My pets</h2>
<p>Rain today</p>
<h2>Cricket is fun.</h2>
<p>Our school trip</p>
<h2>Cricket is fun.</h2> - 13.True or false: <ul> is an unordered list. (a) False (b) True
- 14.📝 What does <p> make? (a) a picture (b) a link (c) a paragraph (d) a table
- 15.🖌️ Which CSS property colours behind the text? (a) text-align (b) color (c) background-color (d) font-size
-
16.🔍 Which line is missing its closing tag?
line 1: <b>Hello, world!</b>
line 2: <strong>I love mangoes.</strong>
line 3: <p>Cricket is fun. (a) line 1 (b) line 3 (c) line 2 -
17.🔍 Which line is missing its closing tag?
line 1: <b>Cricket is fun.</b>
line 2: <em>My pets</em>
line 3: <h1>Our school trip (a) line 3 (b) line 1 (c) line 2 - 18.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <h1> (c) <link rel="stylesheet"> (d) <style>
-
19.📋 What number does the browser show next to “Litchi”?
<ol start="7">
<li>Papaya</li>
<li>Litchi</li>
<li>Mango</li>
</ol> - 20.True or false: <input type="submit"> lets you pick only one. (a) True (b) False
- 21.🌈 Which colour is #00ffff? (a) cyan (b) bright green (c) red (d) yellow
- 22.Which of these is padding? (a) the gap round content (b) the text or picture (c) a solid or dotted edge (d) the line round the box
- 23.True or false: HTML on its own can make headings. (a) True (b) False
-
24.⚖️ What colour is the text of this element?
<h2 class="note" id="hero">Hi</h2>
CSS:
#hero { color: black; }
#hero { color: purple; } (a) black (b) green (c) orange (d) purple -
25.📱 The screen is 375px wide. Does the rule inside @media apply?
p {
font-size: 24px;
}
@media (max-width: 480px) {
p {
font-size: 22px;
}
} (a) Yes (b) No - 26.What does justify-content: center do? (a) packs boxes at the end (b) packs boxes at the start (c) equal gaps, none at ends (d) puts boxes in the middle
- 27.🔍 Which is the odd one out? (a) opens web pages for us (b) saves our .html files (c) shows pages from the web (d) has an address bar
-
28.📋 What number does the browser show next to “Grapes”?
<ol start="9">
<li>Litchi</li>
<li>Orange</li>
<li>Grapes</li>
</ol> - 29.✍️ In color: blue; which part is the value? (a) color (b) ; (c) : (d) blue
-
30.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Mango</li>
<li>Litchi</li>
</ul> (a) numbers (b) bullets -
31.📝 How many <input> tags are in this form?
<form>
<input type="number">
<input type="email">
<input type="submit" value="Send">
</form> - 32.True or false: the browser is the page’s address. (a) True (b) False
- 33.🔠 Which heading shows the SMALLEST text: <h3>, <h1>, <h5> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h3>
- 34.True or false: “use big enough text” helps everyone use the page. (a) False (b) True
- 35.True or false: the browser asks for a web page. (a) False (b) True
-
36.📱 The screen is 1366px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (min-width: 768px) {
p {
font-size: 30px;
}
} -
37.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h3>I love mangoes.</h3>
<h4>The red kite</h4>
<p>I love mangoes.</p>
<h2>The red kite</h2> - 38.💪 Which justify-content value puts boxes in the middle? (a) flex-start (b) flex-end (c) space-between (d) center
-
39.⚖️ What colour is the text of this element?
<h1 class="box" id="top">Hi</h1>
CSS:
#top { color: blue; }
#top { color: red; } (a) purple (b) blue (c) orange (d) red - 40.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
Answer key
- <h6>
- is where we type code
- 9
- <h6>
- the screen width
- False
- <li>
- red
- about.html
- False
- hides what you type
- 3
- True
- a paragraph
- background-color
- line 3
- line 3
- <h1>
- 8
- False
- cyan
- the gap round content
- True
- purple
- Yes
- puts boxes in the middle
- saves our .html files
- 11
- blue
- bullets
- 3
- False
- <h6>
- True
- True
- 30
- 4
- center
- red
- in the body
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids