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>Jamun</td><td>Guava</td></tr>
<tr><td>Grapes</td><td>Mango</td></tr>
</table> - 2.True or false: .menu is a class selector. (a) False (b) True
-
3.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 80px;
padding: 30px;
border: 1px solid black;
margin: 10px;
} - 4.📝 Which input type lets you pick only one? (a) submit (b) text (c) radio (d) email
-
5.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Roses are red<br>Rivers flow<br>Birds sing<br>Sky is blue</p> -
6.🔗 Which address opens when you click this link?
<a href="about.html">Art corner</a> (a) Art corner (b) https://example.com (c) about.html (d) contact.html - 7.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h3> or <h1>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
- 8.Which colour pair is easy to read? (a) light grey on white (b) white on dark blue (c) pink on red (d) yellow on white
- 9.🔢 To build and share your first web page, which comes first: “add CSS styles” or “publish it online”? (a) publish it online (b) add CSS styles
-
10.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Rain today</p>
<p>Fun facts</p>
<p>My pets</p> (a) I love mangoes. (b) Rain today (c) My pets (d) Fun facts - 11.Which of these is an empty tag? (a) <b> (b) <li> (c) <br> (d) <p>
-
12.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="200"> (a) A red kite (b) Map of India (c) width (d) kite.png - 13.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 14.🔁 When does the else part run? (a) never (b) when if is true (c) when if is false (d) always
- 15.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
- 16.Which of these is true of <aside>? (a) sits at the very top (b) holds the main content (c) holds extra side notes (d) holds the logo and title
- 17.True or false: .big is a class selector. (a) False (b) True
- 18.📦 In the box model, which part is the gap round content? (a) content (b) border (c) margin (d) padding
- 19.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 20.🚀 What is the home page file of a website usually called? (a) main.png (b) start.js (c) index.html (d) home.css
-
21.✍️ What is the selector in this CSS rule?
.note {
font-size: 20px;
background-color: yellow;
} (a) .note (b) #top (c) yellow (d) font-size - 22.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
- 23.True or false: a code editor answers page requests. (a) True (b) False
- 24.🌐 Which one has an address bar? (a) a web browser (b) a code editor (c) a web server
- 25.True or false: score = score + 1; goes in script.js. (a) False (b) True
- 26.Which of these does CSS do? (a) puts a picture on a page (b) counts down a timer (c) adds space around boxes (d) reacts to a button click
- 27.🛡️ Is it safe to use the same password on every site? (a) No (b) Yes
- 28.Which of these is a weak password? (a) Rain#Drop_42! (b) 111111 (c) Mango#Kite29! (d) Blue@Tiger_74
- 29.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) shows pages from the web (d) sends pages over the net
-
30.🔍 Which line is missing its closing tag?
line 1: <strong>The red kite</strong>
line 2: <small>Rain today</small>
line 3: <em>Fun facts (a) line 2 (b) line 3 (c) line 1 - 31.🌈 Which colour of light is strongest in rgb(26, 6, 252)? (a) blue (b) red (c) green
- 32.📊 In a table, which tag is a row? (a) <th> (b) <tb> (c) <tr> (d) <td>
- 33.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) red (d) green
-
34.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow</p> - 35.🌗 Is dark grey on white easy or hard to read? (a) easy to read (b) hard to read
- 36.🧩 Which language adds space around boxes? (a) JavaScript (b) CSS (c) HTML
- 37.Which of these has a closing tag? (a) <br> (b) <p> (c) <img> (d) <input>
- 38.True or false: HTML on its own cannot make links to pages. (a) True (b) False
- 39.🌈 Which colour is rgb(0, 255, 255)? (a) black (b) red (c) yellow (d) cyan
-
40.🔗 Which words do you click on?
<a href="contact.html">School news</a> (a) Take the quiz (b) href (c) School news (d) contact.html
Answer key
- 2
- True
- 162
- radio
- 5
- about.html
- <h5>
- white on dark blue
- add CSS styles
- I love mangoes.
- <br>
- A red kite
- Yes
- when if is false
- <
- holds extra side notes
- True
- padding
- No
- index.html
- .note
- a slash /
- False
- a web browser
- True
- adds space around boxes
- No
- 111111
- sends pages over the net
- line 3
- blue
- <tr>
- blue
- 2
- easy to read
- CSS
- <p>
- False
- cyan
- School news
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids