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.📊 How many heading cells (<th>) does this table have?
<table>
<tr><th>Name</th><th>Fruit</th></tr>
<tr><td>Orange</td><td>Jamun</td></tr>
</table> -
2.💬 Which text will NOT show on the page?
<!-- <p>My pets</p> -->
<p>Good morning!</p>
<p>Rain today</p> (a) Good morning! (b) Rain today (c) My pets -
3.📋 What number does the browser show next to “Papaya”?
<ol start="7">
<li>Jamun</li>
<li>Orange</li>
<li>Papaya</li>
<li>Mango</li>
<li>Grapes</li>
</ol> - 4.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h4>? (a) <h6> (b) <h1> (c) <h5> (d) <h4>
-
5.📋 What number does the browser show next to “Guava”?
<ol start="6">
<li>Jamun</li>
<li>Grapes</li>
<li>Guava</li>
</ol> - 6.True or false: CSS makes a form box. (a) False (b) True
- 7.🧭 Is <footer> semantic or not semantic? (a) not semantic (b) semantic
- 8.🔐 Is riya2014 a strong or a weak password? (a) weak (b) strong
- 9.True or false: img is an id selector. (a) False (b) True
- 10.True or false: in <img>, src is read by screen readers. (a) True (b) False
- 11.True or false: <input type="email"> is for an email address. (a) True (b) False
-
12.🖌️ What colour are the letters?
h2 {
background-color: red;
font-size: 12px;
color: blue;
text-align: left;
} (a) blue (b) red (c) green -
13.🔗 Which address opens when you click this link?
<a href="maths.html">Take the quiz</a> (a) news.html (b) art.html (c) maths.html (d) Take the quiz - 14.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h4>? (a) <h2> (b) <h6> (c) <h4> (d) <h1>
-
15.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (max-width: 1024px) {
p {
font-size: 10px;
}
} -
16.🔒 Is the connection to this address scrambled (encrypted)?
http://www.example.com/about.html (a) No (b) Yes - 17.🧭 Is <aside> semantic or not semantic? (a) semantic (b) not semantic
- 18.🔁 When does the else part run? (a) always (b) when if is true (c) never (d) when if is false
-
19.🔍 One closing tag is missing. Which one?
<em>My best friend</em>
<h1>I love mangoes.</h1>
<h2>The red kite (a) </em> (b) </h1> (c) </strong> (d) </h2> - 20.⚖️ Which selector is the strongest? (a) an element selector (b) a class selector (c) an id selector
- 21.True or false: <li> has a closing tag. (a) True (b) False
- 22.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <p> (c) <h6> (d) <br>
-
23.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>The red kite</p>
<h4>The red kite</h4> - 24.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 6 (d) 4
- 25.🔤 In “HTML”, what does the L stand for? (a) Language (b) Link (c) Line (d) Laptop
-
26.🔁 What does this code print?
let score = 3;
if (score < 12) {
console.log("You win");
} else {
console.log("Play again");
} (a) Play again (b) You win -
27.🔗 Where does this link open?
<a href="https://example.com">About us</a> (a) in a new tab (b) in the same tab - 28.📱 Which tag helps phones show a page at the right size? (a) the br tag (b) the viewport meta tag (c) the title tag (d) the hr tag
- 29.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2/> (c) <h2> (d) </h2>
-
30.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Fun facts</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>Cricket is fun.</p> --> - 31.📝 Does <img> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 32.Which of these is true of <nav>? (a) holds one blog post (b) holds the menu of links (c) sits at the bottom (d) holds a news story
- 33.✍️ Which sign ends each CSS declaration? (a) , (b) : (c) ; (d) .
- 34.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 35.True or false: <br> has a closing tag. (a) True (b) False
- 36.💬 Why do coders write comments? (a) to leave notes (b) to make links (c) to show pictures (d) to add colour
- 37.🌐 Which one sends pages over the net? (a) a web server (b) a web browser (c) a code editor
-
38.🔁 How many times does this code print “Well done”?
for (let i = 1; i < 3; i++) {
console.log("Well done");
} - 39.🔢 In a basic web page file, which comes first: “<head>” or “</head>”? (a) </head> (b) <head>
- 40.🔐 Is qwerty a strong or a weak password? (a) strong (b) weak
Answer key
- 2
- My pets
- 9
- <h1>
- 8
- False
- semantic
- weak
- False
- False
- True
- blue
- maths.html
- <h1>
- 10
- No
- semantic
- when if is false
- </h2>
- an id selector
- True
- <h1>
- 2
- 6
- Language
- You win
- in the same tab
- the viewport meta tag
- </h2>
- 1
- an empty tag
- holds the menu of links
- ;
- a closing tag
- False
- to leave notes
- a web server
- 2
- <head>
- weak
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids