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 heading shows the BIGGEST text: <h4>, <h6>, <h1> or <h2>? (a) <h4> (b) <h6> (c) <h1> (d) <h2>
- 2.🔢 On a typical page, from top to bottom, which comes first: “<header>” or “<nav>”? (a) <nav> (b) <header>
- 3.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
-
4.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<h2>My pets</h2>
<h2>Our school trip</h2>
<p>My best friend</p>
<p>Cricket is fun.</p> - 5.🏷️ Is </body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 6.🔍 Which is the odd one out? (a) adds space around boxes (b) reacts to a button click (c) shows a pop-up message (d) changes the page live
-
7.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="350"> - 8.True or false: in <img>, alt sets how wide it is. (a) True (b) False
- 9.🎯 What kind of selector is #hero? (a) an id selector (b) an element selector (c) a class selector
- 10.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) center (c) flex-start (d) space-between
-
11.📱 The screen is 1366px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (min-width: 600px) {
p {
font-size: 16px;
}
} (a) Yes (b) No - 12.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
- 13.🌈 Which colour of light is strongest in rgb(85, 243, 106)? (a) green (b) red (c) blue
- 14.📊 Which tag holds the whole table? (a) <table> (b) <th> (c) <td> (d) <caption>
-
15.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Banana</li>
<li>Orange</li>
</ul> (a) numbers (b) bullets - 16.Which of these goes in the head? (a) <p> (b) <img> (c) <h1> (d) <title>
-
17.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>Our school trip</p>
<h2>I love mangoes.</h2>
<p>I love mangoes.</p>
<p>Fun facts</p> - 18.True or false: the content is the line round the box. (a) True (b) False
- 19.Which of these is true of <nav>? (a) helps you move around (b) holds the main content (c) holds the logo and title (d) holds a news story
- 20.True or false: <td> gives the table a title. (a) False (b) True
- 21.What does justify-content: flex-end do? (a) equal gaps, none at ends (b) puts boxes in the middle (c) packs boxes at the end (d) packs boxes at the start
- 22.🚀 What is the home page file of a website usually called? (a) home.css (b) start.js (c) main.png (d) index.html
-
23.⚖️ What colour is the text of this element?
<h1 class="menu" id="end">Hi</h1>
CSS:
h1 { color: green; }
.menu { color: blue; } (a) orange (b) blue (c) black (d) green -
24.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Try this poha.</p>
</body>
</html> (a) Easy snacks (b) Art Gallery (c) body (d) Try this poha. -
25.✍️ What value is given to background-color in this rule?
.note {
background-color: yellow;
border: 2px solid;
font-weight: bold;
} (a) background-color (b) 10px (c) 8px (d) yellow -
26.🔁 What does this code print?
let marks = 47;
if (marks >= 36) {
console.log("Pass");
} else {
console.log("Try again");
} (a) Try again (b) Pass - 27.True or false: <tr> makes a heading cell. (a) True (b) False
- 28.Which of these has a closing tag? (a) <li> (b) <img> (c) <input> (d) <br>
-
29.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> -->
<!-- <p>I love mangoes.</p> -->
<!-- <p>My best friend</p> --> - 30.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 31.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes text bold (d) makes a list
-
32.🔗 Which address opens when you click this link?
<a href="news.html">Contact us</a> (a) Contact us (b) news.html (c) games.html (d) quiz.html -
33.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Banana</li>
<li>Guava</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Litchi</li>
</ul> - 34.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <link> (d) <p>
- 35.Which of these is margin? (a) space inside the border (b) the gap to other boxes (c) the text or picture (d) a solid or dotted edge
-
36.✍️ What is the selector in this CSS rule?
body {
font-size: 20px;
color: red;
font-weight: bold;
background-color: yellow;
} (a) font-size (b) .box (c) red (d) body - 37.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <ol> (c) <li>
- 38.💪 Which flexbox property lines boxes up across? (a) gap (b) flex-direction (c) align-items (d) justify-content
- 39.True or false: to share your password is not safe. (a) False (b) True
- 40.🛡️ Is it safe to use the same password on every site? (a) No (b) Yes
Answer key
- <h1>
- <header>
- in the body
- 3
- a closing tag
- adds space around boxes
- 350
- False
- an id selector
- center
- Yes
- <h6>
- green
- <table>
- bullets
- <title>
- 4
- False
- helps you move around
- False
- packs boxes at the end
- index.html
- blue
- Easy snacks
- yellow
- Pass
- False
- <li>
- 1
- an opening tag
- starts a new line
- news.html
- 6
- <a>
- the gap to other boxes
- body
- <ol>
- align-items
- True
- No
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids