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.🔍 One closing tag is missing. Which one?
<u>Our school trip
<h2>Rain today</h2>
<small>My pets</small> (a) </h2> (b) </small> (c) </i> (d) </u> - 2.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h3> or <h6>? (a) <h2> (b) <h6> (c) <h3> (d) <h5>
-
3.🖌️ How big is the text, in px?
li {
background-color: green;
text-align: left;
color: red;
font-size: 16px;
} - 4.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
- 5.🔗 What does HyperText mean? (a) text in colour (b) very big text (c) text with links (d) secret text
- 6.🖌️ Which CSS property makes the text bold? (a) text-align (b) font-weight (c) color (d) font-size
- 7.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
- 8.Which of these is true of a web server? (a) shows pages from the web (b) answers page requests (c) has an address bar (d) is where we type code
-
9.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 190px;
padding: 25px;
border: 1px solid black;
margin: 15px;
} - 10.📦 In the box model, which part is the gap to other boxes? (a) content (b) margin (c) border (d) padding
-
11.⚡ What number does this code print?
let a = 32;
let b = 39;
console.log(a + b); - 12.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
- 13.📊 Which tag gives the table a title? (a) <tr> (b) <caption> (c) <th> (d) <table>
- 14.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the first one (b) the later one (c) neither (d) the shorter one
-
15.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
<li>Litchi</li>
</ol> - 16.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the head (d) the body
-
17.🖌️ What colour are the letters?
p {
background-color: red;
color: white;
font-size: 32px;
text-align: left;
} (a) blue (b) red (c) white -
18.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (max-width: 480px) {
p {
font-size: 12px;
}
} - 19.🚀 Which file should this code go in: alert("Hi"); (a) index.html (b) script.js (c) style.css
- 20.🌗 Is yellow on white easy or hard to read? (a) easy to read (b) hard to read
- 21.🌈 Which colour is #00ffff? (a) cyan (b) magenta (c) red (d) yellow
- 22.🔤 In “HTML”, what does the M stand for? (a) Machine (b) Modern (c) Mouse (d) Markup
- 23.True or false: padding is the gap round content. (a) False (b) True
-
24.📋 How many items does this list show?
<ul>
<li>Papaya</li>
<li>Guava</li>
<li>Mango</li>
</ul> -
25.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>All about me</h1>
<p>I like to read.</p>
</body>
</html> (a) All about me (b) index.html (c) Riya’s Recipes (d) I like to read. - 26.🌈 Which colour is rgb(255, 0, 255)? (a) black (b) white (c) blue (d) magenta
- 27.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <b/> (d) <\b>
- 28.🎯 Which element does the selector h2 style? (a) <div class="star"> (b) <li> (c) <span id="logo"> (d) <h2 class="star">
- 29.📊 Where do <td> cells go? (a) inside a <p> (b) inside the <head> (c) inside a <tr> (d) inside a <li>
- 30.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
-
31.🔗 Which address opens when you click this link?
<a href="contact.html">Play games</a> (a) maths.html (b) Play games (c) contact.html (d) https://example.com - 32.🎯 Which sign starts an id selector? (a) # (b) @ (c) . (d) &
- 33.True or false: <ul> goes inside ul or ol. (a) True (b) False
-
34.🔠 How many headings are in this code?
<h1>My pets</h1>
<h4>I love mangoes.</h4>
<p>The red kite</p> - 35.Which of these is true of a web browser? (a) is where we type code (b) has an address bar (c) sends pages over the net (d) shows line numbers
- 36.Which of these is a closing tag? (a) </title> (b) <body> (c) <title> (d) <h1>
- 37.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an element name (c) a comment (d) an attribute
-
38.🔗 Which words do you click on?
<a href="https://example.com">Maths fun</a> (a) Maths fun (b) Art corner (c) href (d) https://example.com - 39.📱 Responsive design means a page ___. (a) never changes (b) has no pictures (c) is only for laptops (d) fits every screen
-
40.✍️ How many declarations (property: value pairs) are in this rule?
.note {
padding: 8px;
}
Answer key
- </u>
- <h6>
- 16
- <li>
- text with links
- font-weight
- <img>
- answers page requests
- 272
- margin
- 71
- <ul>
- <caption>
- the later one
- 4
- the body
- white
- 12
- script.js
- hard to read
- cyan
- Markup
- True
- 3
- Riya’s Recipes
- magenta
- </b>
- <h2 class="star">
- inside a <tr>
- a web browser
- contact.html
- #
- False
- 2
- has an address bar
- </title>
- an attribute
- Maths fun
- fits every screen
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids