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.🔢 To build and share your first web page, what comes right after “test in a browser”? (a) plan what to show (b) publish it online (c) write the HTML (d) add CSS styles
- 2.💬 How does an HTML comment start? (a) /* (b) // (c) # (d) <!--
-
3.🖼️ Which picture file does the browser load?
<img src="map.png" alt="Map of India" width="250"> (a) Map of India (b) map.png (c) cake.jpg (d) dog.jpg - 4.🚀 Which file should this code go in: p { color: red; } (a) script.js (b) style.css (c) index.html
- 5.True or false: <table> holds the whole table. (a) True (b) False
- 6.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
-
7.🔍 One closing tag is missing. Which one?
<small>My pets</small>
<h1>Good morning!
<p>Our school trip</p> (a) </small> (b) </p> (c) </i> (d) </h1> -
8.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="250"> (a) A red kite (b) Map of India (c) kite.png (d) width -
9.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p>
<p>I love mangoes.</p> (a) Rain today (b) Cricket is fun. (c) I love mangoes. -
10.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="100"> (a) Birthday cake (b) Map of India (c) width (d) map.png - 11.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) makes it blank (d) opens it in a new tab
-
12.🖌️ How big is the text, in px?
li {
background-color: yellow;
text-align: center;
font-size: 36px;
color: white;
} - 13.✍️ In color: blue; which part is the property? (a) : (b) ; (c) color (d) blue
- 14.True or false: the server stores the site’s files. (a) True (b) False
- 15.⚡ Which JavaScript word repeats code? (a) if (b) for (c) console.log() (d) alert()
-
16.⚡ What number does this code print?
let a = 13;
let b = 13;
console.log(a - b); -
17.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Good morning!</p>
<!-- <p>Fun facts</p> --> - 18.🎨 Which attribute adds CSS inside one tag? (a) alt (b) href (c) src (d) style
- 19.🌍 What do we call the computer that stores a website? (a) a keyboard (b) a printer (c) a mouse (d) a server
-
20.✍️ Which property is set to 2px solid in this rule?
.box {
margin: 10px;
border: 2px solid;
} (a) 2px solid (b) width (c) border (d) font-style -
21.🔁 How many times does this code print “Hello”?
for (let i = 3; i <= 6; i++) {
console.log("Hello");
} - 22.🔤 In “HTML”, what does the M stand for? (a) Markup (b) Mouse (c) Machine (d) Modern
-
23.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Guava</li>
</ol> (a) numbers (b) bullets - 24.🔁 Which word runs code only when something is true? (a) log (b) if (c) let (d) for
- 25.Which of these is a strong password? (a) 111111 (b) 123456 (c) abcd1234 (d) Mango#Kite29!
- 26.True or false: in <img>, width sets how wide it is. (a) True (b) False
- 27.True or false: HTML checks a quiz answer. (a) True (b) False
- 28.True or false: to post your home address is not safe. (a) True (b) False
- 29.Which of these is a closing tag? (a) <body> (b) </li> (c) <title> (d) <h1>
- 30.📄 Which part holds everything you see on the page? (a) the head (b) the body (c) the doctype (d) the title
- 31.🔍 Which is the odd one out? (a) reacts to a button click (b) gives the page structure (c) makes a form box (d) puts a picture on a page
- 32.🚀 What is the home page file of a website usually called? (a) start.js (b) home.css (c) main.png (d) index.html
- 33.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) [ (d) <
- 34.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h1> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h3>
-
35.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 768px) {
p {
font-size: 22px;
}
} - 36.Which of these is a weak password? (a) Mango#Kite29! (b) Rain#Drop_42! (c) Chai$Cup_19x (d) qwerty
-
37.🔁 How many times does this code print “Hello”?
for (let i = 0; i <= 9; i++) {
console.log("Hello");
} -
38.⚡ What does this code show?
let name = "Zoya";
alert("Welcome, " + name + "!"); (a) Welcome, name! (b) Zoya (c) name (d) Welcome, Zoya! - 39.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
- 40.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h2> or <h3>? (a) <h5> (b) <h1> (c) <h3> (d) <h2>
Answer key
- publish it online
- <!--
- map.png
- style.css
- True
- <ul>
- </h1>
- A red kite
- Rain today
- Map of India
- opens it in a new tab
- 36
- color
- True
- for
- 0
- 1
- style
- a server
- border
- 4
- Markup
- numbers
- if
- Mango#Kite29!
- True
- False
- True
- </li>
- the body
- reacts to a button click
- index.html
- <
- <h6>
- 22
- qwerty
- 10
- Welcome, Zoya!
- <img>
- <h1>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids