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.Which of these is true of <footer>? (a) holds the main content (b) holds the menu of links (c) holds one blog post (d) holds copyright notes
- 2.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a dot . (c) a hash # (d) a slash /
- 3.🌈 In #002c00 the green part is the hex number 2c. What is it as a normal number?
- 4.📊 Where do <td> cells go? (a) inside a <tr> (b) inside the <head> (c) inside a <p> (d) inside a <li>
-
5.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Hello, world!</p>
<p>Rain today</p>
<p>Fun facts</p> (a) Hello, world! (b) Rain today (c) Good morning! (d) Fun facts -
6.🔗 Which address opens when you click this link?
<a href="contact.html">Contact us</a> (a) maths.html (b) Contact us (c) https://example.com (d) contact.html - 7.🖌️ Which CSS property makes the text bold? (a) font-family (b) font-size (c) font-weight (d) color
- 8.📝 Which tag makes a drop-down list? (a) <ol> (b) <select> (c) <li> (d) <ul>
- 9.Which of these is a strong password? (a) riya2014 (b) 123456 (c) S0lar!Pen#8 (d) iloveyou
- 10.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 6 (d) 10
- 11.🔗 Which tag makes a clickable link? (a) <link> (b) <a> (c) <img> (d) <p>
- 12.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h1> or <h6>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
- 13.What does font-weight do? (a) centres a heading (b) colours behind the text (c) sets the letter colour (d) makes the text bold
-
14.✍️ How many declarations (property: value pairs) are in this rule?
li {
background-color: yellow;
padding: 8px;
margin: 10px;
} - 15.🏷️ Which is the closing tag for <u>? (a) <u/> (b) <u> (c) <\u> (d) </u>
- 16.🌈 Which colour is #ff00ff? (a) blue (b) red (c) magenta (d) bright green
- 17.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
- 18.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h5> or <h3>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
-
19.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<!-- <p>Cricket is fun.</p> -->
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>I love mangoes.</p> --> -
20.💬 How many paragraphs show on the page?
<p>My pets</p>
<!-- <p>Cricket is fun.</p> -->
<p>I love mangoes.</p>
<p>Hello, world!</p> -
21.💬 Which text will NOT show on the page?
<p>Rain today</p>
<!-- <p>Fun facts</p> -->
<p>Cricket is fun.</p> (a) Fun facts (b) Rain today (c) Cricket is fun. -
22.📊 How many rows does this table have?
<table>
<tr><td>Orange</td><td>Grapes</td><td>Papaya</td></tr>
<tr><td>Jamun</td><td>Grapes</td><td>Banana</td></tr>
</table> - 23.🔁 When does the else part run? (a) never (b) always (c) when if is false (d) when if is true
- 24.Which of these is a closing tag? (a) </body> (b) <title> (c) <p> (d) <body>
-
25.⚡ What does this code show?
let name = "Meera";
alert("Hi, " + name + "!"); (a) Hi, Meera! (b) Meera (c) name (d) Hi, name! - 26.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the head (d) the doctype
- 27.🔍 Which is the odd one out? (a) shows a pop-up message (b) changes the page live (c) reacts to a button click (d) gives the page structure
- 28.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
- 29.💪 Which flexbox property spaces boxes along a row? (a) justify-content (b) align-items (c) display: flex (d) gap
-
30.🔁 How many times does this code print “Hello”?
for (let i = 3; i <= 12; i++) {
console.log("Hello");
} - 31.🔢 To build and share your first web page, which comes LAST? (a) add CSS styles (b) write the HTML (c) test in a browser (d) publish it online
- 32.Which of these goes in the body? (a) <img> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <title>
- 33.Which of these is true of a web server? (a) turns HTML into a page (b) has an address bar (c) answers page requests (d) is where we type code
-
34.🔁 What does this code print?
let temp = 43;
if (temp > 11) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Hot (b) Cool - 35.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
- 36.🔢 On a typical page, from top to bottom, what comes right after “<nav>”? (a) <header> (b) <main> (c) <footer>
-
37.✍️ Which property is set to 10px in this rule?
li {
border: 2px solid;
margin: 10px;
font-weight: bold;
} (a) padding (b) 10px (c) font-weight (d) margin - 38.True or false: #hero is an element selector. (a) True (b) False
- 39.🔍 Which is the odd one out? (a) opens web pages for us (b) shows line numbers (c) turns HTML into a page (d) shows pages from the web
-
40.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 480px) {
p {
font-size: 20px;
}
}
Answer key
- holds copyright notes
- a slash /
- 44
- inside a <tr>
- Good morning!
- contact.html
- font-weight
- <select>
- S0lar!Pen#8
- 1
- <a>
- <h6>
- makes the text bold
- 3
- </u>
- magenta
- in the body
- <h5>
- 2
- 3
- Fun facts
- 2
- when if is false
- </body>
- Hi, Meera!
- the body
- gives the page structure
- a web browser
- justify-content
- 10
- publish it online
- <img>
- answers page requests
- Hot
- opens it in a new tab
- <main>
- margin
- False
- shows line numbers
- 24
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids