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 headings are in this code?
<h1>Good morning!</h1>
<h3>Good morning!</h3>
<h4>The red kite</h4>
<p>I love mangoes.</p>
<h3>I love mangoes.</h3> - 2.💬 How does an HTML comment start? (a) /* (b) <!-- (c) # (d) //
-
3.🔍 Which line is missing its closing tag?
line 1: <h1>Fun facts</h1>
line 2: <small>Our school trip
line 3: <u>Hello, world!</u> (a) line 3 (b) line 1 (c) line 2 - 4.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
-
5.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="350"> -
6.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 600px) {
p {
font-size: 22px;
}
} - 7.📝 Which input type is for one line of words? (a) number (b) checkbox (c) date (d) text
-
8.⚖️ What colour is the text of this element?
<h1 class="big" id="end">Hi</h1>
CSS:
#end { color: purple; }
h1 { color: green; } (a) purple (b) orange (c) red (d) green - 9.🛡️ Online: is it safe to check for https first? (a) not safe (b) safe
- 10.Which of these goes in the head? (a) <img> (b) <table> (c) <ul> (d) <style>
-
11.🔗 Which words do you click on?
<a href="https://example.com">Maths fun</a> (a) href (b) Maths fun (c) Art corner (d) https://example.com - 12.True or false: HTML on its own can run a game loop. (a) True (b) False
- 13.🖼️ Which attribute of <img> is read by screen readers? (a) src (b) alt (c) height (d) width
- 14.🔢 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
- 15.Which of these is an opening tag? (a) </li> (b) </body> (c) <b> (d) </h1>
- 16.What does color do? (a) colours behind the text (b) centres a heading (c) makes letters bigger (d) sets the letter colour
-
17.🔍 One closing tag is missing. Which one?
<b>Hello, world!
<i>I love mangoes.</i>
<h3>Cricket is fun.</h3> (a) </h3> (b) </b> (c) </i> (d) </h2> - 18.🧩 Which language sets colours and fonts? (a) JavaScript (b) HTML (c) CSS
- 19.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h6> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
- 20.📊 Which tag makes one data cell? (a) <tr> (b) <th> (c) <td> (d) <caption>
- 21.Which of these is a weak password? (a) Blue@Tiger_74 (b) S0lar!Pen#8 (c) Chai$Cup_19x (d) 111111
-
22.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
p {
font-size: 12px;
}
@media (max-width: 480px) {
p {
font-size: 8px;
}
} -
23.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 400px;
justify-content: center;
}
Inside are 4 boxes, each 80px wide (no margins). - 24.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
-
25.🖌️ Where does the text sit on its line?
p {
background-color: orange;
font-size: 36px;
color: white;
text-align: left;
} (a) on the right (b) in the middle (c) on the left - 26.True or false: in <img>, src names the picture file. (a) True (b) False
-
27.⚖️ What colour is the text of this element?
<h2 class="big" id="hero">Hi</h2>
CSS:
h2 { color: red; }
.big { color: blue; } (a) blue (b) orange (c) red (d) yellow - 28.🌈 In #008800 the green part is the hex number 88. What is it as a normal number?
- 29.Which of these is true of a web server? (a) shows pages from the web (b) opens web pages for us (c) answers page requests (d) shows line numbers
- 30.🔗 What does target="_blank" do to a link? (a) hides the link (b) opens it in a new tab (c) makes it blank (d) makes it bold
-
31.🔗 Which address opens when you click this link?
<a href="maths.html">Take the quiz</a> (a) art.html (b) news.html (c) Take the quiz (d) maths.html - 32.📝 Which tag holds a whole form? (a) <table> (b) <input> (c) <ol> (d) <form>
- 33.💪 Which flexbox property picks row or column? (a) gap (b) justify-content (c) flex-direction (d) align-items
- 34.🎨 Which attribute adds CSS inside one tag? (a) src (b) alt (c) href (d) style
- 35.Which of these is an opening tag? (a) <title> (b) </h1> (c) </b> (d) </body>
- 36.🛡️ Before typing a password on a site, check the address starts with ___. (a) www (b) https (c) ftp (d) http
- 37.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to describe the image (c) to load it faster (d) to colour it
- 38.🖌️ Which CSS property sets the letter colour? (a) font-weight (b) text-align (c) background-color (d) color
- 39.🎯 Which element does the selector p style? (a) <h1> (b) <li id="hero"> (c) <h2 class="red"> (d) <p class="red">
-
40.📋 Does this list show bullets or numbers?
<ul>
<li>Banana</li>
<li>Orange</li>
<li>Papaya</li>
</ul> (a) bullets (b) numbers
Answer key
- 4
- <!--
- line 2
- a web browser
- 350
- 20
- text
- purple
- safe
- <style>
- Maths fun
- False
- alt
- test in a browser
- <b>
- sets the letter colour
- </b>
- CSS
- <h6>
- <td>
- 111111
- 12
- 40
- False
- on the left
- True
- blue
- 136
- answers page requests
- opens it in a new tab
- maths.html
- <form>
- flex-direction
- style
- <title>
- https
- to describe the image
- color
- <p class="red">
- bullets
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids