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 rows does this table have?
<table>
<tr><td>Papaya</td><td>Litchi</td><td>Guava</td><td>Papaya</td></tr>
<tr><td>Papaya</td><td>Mango</td><td>Mango</td><td>Guava</td></tr>
<tr><td>Banana</td><td>Guava</td><td>Orange</td><td>Litchi</td></tr>
</table> - 2.🧭 Which semantic tag sits at the bottom? (a) <header> (b) <footer> (c) <aside> (d) <nav>
- 3.🔗 Which tag makes a clickable link? (a) <link> (b) <img> (c) <a> (d) <p>
-
4.📝 How many paragraphs does this code make?
<p>The red kite</p>
<p>Cricket is fun.</p>
<h2>My pets</h2> - 5.⚡ Which JavaScript word writes in the console? (a) let (b) console.log() (c) alert() (d) if
-
6.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>My best friend</p> -->
<!-- <p>My pets</p> --> - 7.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h5>? (a) <h1> (b) <h2> (c) <h5> (d) <h6>
-
8.💬 Which text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>Hello, world!</p>
<p>Rain today</p>
<p>Our school trip</p> (a) Our school trip (b) The red kite (c) Rain today (d) Hello, world! - 9.True or false: <li> shows 1, 2, 3 numbers. (a) False (b) True
- 10.🚀 Should file names have spaces, like my page.html? (a) No (b) Yes
- 11.📦 In the box model, which part is space inside the border? (a) border (b) content (c) margin (d) padding
- 12.Which of these has a closing tag? (a) <hr> (b) <img> (c) <li> (d) <meta>
- 13.🚀 Which file should this code go in: <h1>My Site</h1> (a) script.js (b) style.css (c) index.html
- 14.🧩 Which language changes the text size? (a) HTML (b) CSS (c) JavaScript
- 15.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
- 16.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
- 17.🌐 Which one shows line numbers? (a) a web browser (b) a code editor (c) a web server
-
18.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 190px;
padding: 25px;
border: 3px solid black;
margin: 15px;
} -
19.📊 How many rows does this table have?
<table>
<tr><td>Mango</td><td>Orange</td></tr>
<tr><td>Grapes</td><td>Litchi</td></tr>
<tr><td>Banana</td><td>Orange</td></tr>
<tr><td>Banana</td><td>Mango</td></tr>
</table> - 20.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 21.🧭 Is <span> semantic or not semantic? (a) semantic (b) not semantic
- 22.♿ Who uses a screen reader? (a) only teachers (b) only coders (c) people who are blind (d) only robots
-
23.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h3>Rain today</h3>
<p>My pets</p>
<p>Fun facts</p> - 24.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 25.🌗 Is pink on red easy or hard to read? (a) hard to read (b) easy to read
-
26.⚖️ What colour is the text of this element?
<h1 class="big" id="hero">Hi</h1>
CSS:
.big { color: white; }
.big { color: red; } (a) purple (b) blue (c) red (d) white - 27.True or false: a web server sends pages over the net. (a) False (b) True
-
28.🖌️ What colour is behind the letters?
p {
font-size: 16px;
background-color: black;
text-align: left;
color: blue;
} (a) black (b) blue (c) purple - 29.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the body (d) the head
-
30.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 210px;
justify-content: flex-start;
}
Inside are 2 boxes, each 100px wide (no margins). - 31.🌍 Which one scrambles data on its way? (a) the browser (b) the URL (c) the server (d) HTTPS
- 32.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h6> or <h2>? (a) <h6> (b) <h3> (c) <h2> (d) <h4>
- 33.True or false: <ul> lists things in any order. (a) True (b) False
- 34.✍️ Which sign ends each CSS declaration? (a) ; (b) : (c) . (d) ,
- 35.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h3> or <h6>? (a) <h2> (b) <h5> (c) <h3> (d) <h6>
-
36.⚖️ What colour is the text of this element?
<h2 class="menu" id="top">Hi</h2>
CSS:
h2 { color: blue; }
.menu { color: orange; } (a) blue (b) green (c) orange (d) white - 37.True or false: #hero is a class selector. (a) True (b) False
- 38.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h5>? (a) <h6> (b) <h1> (c) <h3> (d) <h5>
-
39.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="300"> - 40.🎯 Which sign starts an id selector? (a) . (b) & (c) # (d) @
Answer key
- 3
- <footer>
- <a>
- 2
- console.log()
- 1
- <h1>
- The red kite
- False
- No
- padding
- <li>
- index.html
- CSS
- Yes
- <ol>
- a code editor
- 276
- 4
- No
- not semantic
- people who are blind
- 2
- a closing tag
- hard to read
- red
- True
- black
- the body
- 10
- HTTPS
- <h2>
- True
- ;
- <h2>
- orange
- False
- <h1>
- 300
- #
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids