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.True or false: <li> is one item of a list. (a) True (b) False
- 2.🛡️ Online: is it safe to meet an online stranger? (a) not safe (b) safe
- 3.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 4 (b) 3 (c) 6 (d) 2
- 4.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “<html>”? (a) <!DOCTYPE html> (b) <html>
-
5.⚖️ What colour is the text of this element?
<h1 class="menu" id="top">Hi</h1>
CSS:
#top { color: black; }
#top { color: yellow; } (a) black (b) white (c) purple (d) yellow - 6.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</html>”? (a) </html> (b) <!DOCTYPE html>
- 7.🌗 Is white on dark blue easy or hard to read? (a) easy to read (b) hard to read
- 8.Which of these is safe to do online? (a) type a password on http (b) put secrets in comments (c) meet an online stranger (d) use a nickname in games
- 9.💪 Which flexbox property picks row or column? (a) align-items (b) gap (c) flex-direction (d) justify-content
-
10.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Rain today</p>
<p>My pets</p>
<h4>Cricket is fun.</h4>
<p>Hello, world!</p> - 11.📄 Where does the text of <title> appear? (a) on the browser tab (b) in a big heading (c) nowhere (d) at the bottom
- 12.True or false: <tr> makes one table row. (a) False (b) True
- 13.True or false: to share your OTP is safe. (a) False (b) True
- 14.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h1> (d) <h4>
-
15.⚖️ What colour is the text of this element?
<p class="box" id="end">Hi</p>
CSS:
p { color: blue; }
.box { color: yellow; } (a) black (b) yellow (c) green (d) blue - 16.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <main> (b) <footer> (c) <nav> (d) <header>
- 17.True or false: <ul> is an empty tag. (a) False (b) True
- 18.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <hr> (d) <br>
- 19.True or false: <input> is an empty tag. (a) False (b) True
- 20.🔢 To build and share your first web page, what comes right after “add CSS styles”? (a) publish it online (b) plan what to show (c) test in a browser (d) write the HTML
- 21.True or false: in <img>, height sets how tall it is. (a) False (b) True
-
22.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<p>My pets</p>
<!-- <p>Fun facts</p> -->
<p>The red kite</p>
<p>My best friend</p> - 23.🌈 Which colour is #00ffff? (a) bright green (b) cyan (c) magenta (d) white
- 24.Which of these is a closing tag? (a) </title> (b) <li> (c) <title> (d) <p>
- 25.True or false: a web browser turns HTML into a page. (a) False (b) True
- 26.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
-
27.🖌️ Where does the text sit on its line?
h1 {
font-size: 36px;
color: green;
background-color: yellow;
text-align: center;
} (a) on the right (b) in the middle (c) on the left - 28.True or false: <main> holds one blog post. (a) False (b) True
-
29.🌍 What is the path in this URL?
https://www.example.com/index.html (a) /art/gallery.html (b) /index.html (c) https (d) www.example.com -
30.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 10; i++) {
total = total + i;
}
console.log(total); - 31.True or false: <input type="number"> takes only numbers. (a) False (b) True
-
32.🔁 How many numbers does this code print?
for (let i = 0; i < 11; i = i + 3) {
console.log(i);
} - 33.🚀 Which file should this code go in: #top { color: blue; } (a) style.css (b) index.html (c) script.js
-
34.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>My best friend</p>
<p>Cricket is fun.</p> (a) Rain today (b) My best friend (c) Cricket is fun. -
35.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Jamun</li>
<li>Banana</li>
</ol> - 36.Which of these is margin? (a) the line round the box (b) a solid or dotted edge (c) the gap to other boxes (d) space inside the border
- 37.True or false: <h1> is an empty tag. (a) True (b) False
- 38.True or false: a code editor saves our .html files. (a) True (b) False
-
39.🔗 Where does this link open?
<a href="maths.html">About us</a> (a) in a new tab (b) in the same tab - 40.True or false: <input type="password"> hides what you type. (a) True (b) False
Answer key
- True
- not safe
- 3
- <!DOCTYPE html>
- yellow
- <!DOCTYPE html>
- easy to read
- use a nickname in games
- flex-direction
- 2
- on the browser tab
- True
- False
- <h6>
- yellow
- <header>
- False
- <ol>
- True
- test in a browser
- True
- 4
- cyan
- </title>
- True
- <ol>
- in the middle
- False
- /index.html
- 55
- True
- 4
- style.css
- Rain today
- 3
- the gap to other boxes
- False
- True
- in the same tab
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids