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 items does this list show?
<ol>
<li>Papaya</li>
<li>Litchi</li>
<li>Guava</li>
<li>Grapes</li>
<li>Jamun</li>
</ol> - 2.Which of these is safe to do online? (a) check for https first (b) meet an online stranger (c) share your password (d) post your home address
-
3.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>My pets</p>
<p>Rain today</p>
<!-- <p>Fun facts</p> --> (a) The red kite (b) Rain today (c) My pets (d) Fun facts - 4.True or false: HTML gives the page structure. (a) False (b) True
- 5.True or false: “images with no alt” helps everyone use the page. (a) True (b) False
- 6.🌈 In #003500 the green part is the hex number 35. What is it as a normal number?
- 7.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <link about.html>
- 8.🔍 Which is the odd one out? (a) saves our .html files (b) has an address bar (c) shows pages from the web (d) opens web pages for us
- 9.💪 Which flexbox property turns on flexbox? (a) align-items (b) gap (c) justify-content (d) display: flex
- 10.📝 Which input type takes only numbers? (a) email (b) submit (c) number (d) checkbox
- 11.True or false: <input type="email"> is for an email address. (a) True (b) False
-
12.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 170px;
justify-content: space-between;
}
Inside are 2 boxes, each 60px wide (no margins). - 13.Which of these goes in the head? (a) <h1> (b) <style> (c) <p> (d) <a>
- 14.🧭 Is <span> semantic or not semantic? (a) not semantic (b) semantic
- 15.🔁 Which word runs code only when something is true? (a) for (b) let (c) log (d) if
-
16.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="300"> (a) bus.jpg (b) width (c) Our school bus (d) An old fort - 17.True or false: a web server saves our .html files. (a) True (b) False
-
18.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 480px) {
p {
font-size: 22px;
}
} - 19.🧭 Is <aside> semantic or not semantic? (a) not semantic (b) semantic
- 20.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <ol> (d) <hr>
- 21.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) red (d) blue
- 22.🛡️ Is it safe to use the same password on every site? (a) No (b) Yes
-
23.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 220px;
justify-content: space-between;
}
Inside are 4 boxes, each 40px wide (no margins). - 24.True or false: .box { padding: 8px; } goes in style.css. (a) False (b) True
- 25.True or false: the border is the line round the box. (a) True (b) False
-
26.🖌️ What colour is behind the letters?
li {
color: red;
text-align: left;
background-color: blue;
font-size: 28px;
} (a) blue (b) red (c) white - 27.True or false: “tiny grey text” makes the page harder to use. (a) False (b) True
-
28.💬 Which text will NOT show on the page?
<p>My best friend</p>
<!-- <p>The red kite</p> -->
<p>Rain today</p>
<p>Cricket is fun.</p> (a) Cricket is fun. (b) Rain today (c) My best friend (d) The red kite - 29.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as 5 spaces (c) as a new line (d) as a dot
-
30.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="350"> - 31.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
- 32.📋 Which tag goes around each item of a list? (a) <ul> (b) <p> (c) <ol> (d) <li>
- 33.📊 Which tag holds the whole table? (a) <caption> (b) <th> (c) <table> (d) <td>
-
34.✍️ What value is given to color in this rule?
h1 {
color: red;
font-size: 20px;
} (a) color (b) 20px (c) red (d) center -
35.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>I love mangoes.</p>
<!-- <p>Rain today</p> --> (a) Good morning! (b) I love mangoes. (c) Rain today - 36.🚀 Which file should this code go in: <h1>My Site</h1> (a) index.html (b) script.js (c) style.css
- 37.🔢 On a typical page, from top to bottom, which comes first: “<header>” or “<nav>”? (a) <header> (b) <nav>
- 38.🚀 Which file should this code go in: alert(score); (a) style.css (b) index.html (c) script.js
- 39.🎯 What kind of selector is #logo? (a) an id selector (b) a class selector (c) an element selector
- 40.📊 Are <th> cells shown bold and centred by default? (a) Yes (b) No
Answer key
- 5
- check for https first
- Fun facts
- True
- False
- 53
- <a href="about.html">
- saves our .html files
- display: flex
- number
- True
- 50
- <style>
- not semantic
- if
- Our school bus
- False
- 20
- semantic
- <ol>
- blue
- No
- 20
- True
- True
- blue
- True
- The red kite
- as one space
- 350
- on the browser tab
- <li>
- <table>
- red
- Rain today
- index.html
- <header>
- script.js
- an id selector
- Yes
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids