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.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
- 2.🏷️ Which is the closing tag for <h3>? (a) <h3/> (b) </h3> (c) <\h3> (d) <h3>
- 3.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
- 4.✍️ Which sign ends each CSS declaration? (a) , (b) : (c) . (d) ;
- 5.⚖️ Which selector is the strongest? (a) an element selector (b) an id selector (c) a class selector
- 6.🛡️ Online: is it safe to use a strong password? (a) safe (b) not safe
-
7.🔒 Is the connection to this address scrambled (encrypted)?
https://kids.example.org/maths/tables.html (a) No (b) Yes - 8.📱 Which tag helps phones show a page at the right size? (a) the br tag (b) the hr tag (c) the viewport meta tag (d) the title tag
-
9.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
<!-- <p>Rain today</p> --> -
10.📱 The screen is 820px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 480px) {
p {
font-size: 20px;
}
} - 11.💪 Which flexbox property sets space between boxes? (a) display: flex (b) flex-direction (c) gap (d) justify-content
- 12.True or false: the content is the gap round content. (a) True (b) False
- 13.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 14.🌈 Which colour is #00ff00? (a) red (b) blue (c) white (d) bright green
- 15.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h2> or <h3>? (a) <h2> (b) <h6> (c) <h3> (d) <h4>
-
16.🔍 Which line is missing its closing tag?
line 1: <small>Cricket is fun.</small>
line 2: <h1>My pets
line 3: <strong>Our school trip</strong> (a) line 1 (b) line 3 (c) line 2 - 17.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the head (d) the doctype
- 18.🖌️ Which CSS property colours behind the text? (a) font-size (b) background-color (c) text-align (d) color
- 19.True or false: a web browser hosts websites online. (a) False (b) True
-
20.✍️ How many declarations (property: value pairs) are in this rule?
.box {
font-size: 20px;
width: 300px;
background-color: yellow;
color: red;
} -
21.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Mango</li>
<li>Banana</li>
<li>Grapes</li>
<li>Papaya</li>
</ul> -
22.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 300px;
padding: 20px;
border: 1px solid black;
margin: 0px;
} - 23.🌈 Which colour is rgb(0, 0, 255)? (a) black (b) blue (c) red (d) bright green
- 24.🌍 Which one asks for a web page? (a) the browser (b) the URL (c) the server (d) HTTPS
- 25.🎨 Which attribute adds CSS inside one tag? (a) src (b) alt (c) href (d) style
- 26.Which of these is an opening tag? (a) </h1> (b) <p> (c) </li> (d) </p>
-
27.📊 How many rows does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
<tr><td>Litchi</td><td>Guava</td><td>Orange</td><td>Mango</td></tr>
<tr><td>Litchi</td><td>Mango</td><td>Mango</td><td>Orange</td></tr>
</table> -
28.⚡ What number does this code print?
let a = 21;
let b = 10;
console.log(a - b); - 29.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 30.💬 Does the browser show comments on the page? (a) Yes (b) No
-
31.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Rain today</h2>
<p>My best friend</p>
<p>Hello, world!</p>
<h2>My best friend</h2>
<h2>My pets</h2> - 32.🖼️ Which attribute of <img> sets how wide it is? (a) width (b) height (c) alt (d) src
- 33.True or false: in <img>, alt sets how wide it is. (a) False (b) True
- 34.📛 In <a href="x.html">, what is href? (a) an element name (b) a closing tag (c) an attribute (d) a comment
- 35.✍️ In color: blue; which part is the property? (a) blue (b) color (c) : (d) ;
- 36.Which of these is the content? (a) space inside the border (b) the gap round content (c) space outside the border (d) the text or picture
- 37.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) hides the link (d) makes it bold
-
38.🔁 What is the LAST number this code prints?
for (let i = 0; i < 10; i = i + 4) {
console.log(i);
} - 39.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <br> (c) <p> (d) <h1>
-
40.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) href (b) Play games (c) About us (d) contact.html
Answer key
- in the body
- </h3>
- <img>
- ;
- an id selector
- safe
- Yes
- the viewport meta tag
- 1
- 24
- gap
- False
- an opening tag
- bright green
- <h2>
- line 2
- the body
- background-color
- False
- 4
- 5
- 342
- blue
- the browser
- style
- <p>
- 3
- 11
- a closing tag
- No
- 3
- width
- False
- an attribute
- color
- the text or picture
- opens it in a new tab
- 8
- <h1>
- Play games
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids