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 program lets you see your web page while you build it? (a) a calculator (b) a photo viewer (c) a music player (d) a web browser
- 2.True or false: #main is an element selector. (a) False (b) True
- 3.True or false: <li> is an empty tag. (a) True (b) False
-
4.🖼️ Which picture file does the browser load?
<img src="dog.jpg" alt="A happy dog" width="250"> (a) bus.jpg (b) A happy dog (c) dog.jpg (d) moon.png - 5.Which of these is a strong password? (a) Chai$Cup_19x (b) iloveyou (c) riya2014 (d) 123456
- 6.🔐 Is qwerty a strong or a weak password? (a) weak (b) strong
- 7.🖌️ Which CSS property sets the letter colour? (a) color (b) font-size (c) font-family (d) font-weight
- 8.🌈 In #00f900 the green part is the hex number f9. What is it as a normal number?
- 9.📝 What does <hr> draw? (a) a picture (b) a table (c) a link (d) a line across the page
-
10.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Grapes</li>
<li>Jamun</li>
</ol> (a) numbers (b) bullets - 11.Which of these is true of <header>? (a) sits at the bottom (b) sits at the very top (c) holds a news story (d) holds copyright notes
- 12.🚀 Which file should this code go in: console.log(5 + 2); (a) style.css (b) index.html (c) script.js
- 13.♿ Does this help everyone, or make the page harder to use: use headings in order? (a) makes it harder (b) helps everyone
- 14.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) blue (c) cyan (d) yellow
- 15.📦 In the box model, which part is space inside the border? (a) border (b) content (c) margin (d) padding
- 16.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) sends pages over the net (d) opens web pages for us
-
17.🌍 What is the path in this URL?
https://school.example.in/about.html (a) /about.html (b) school.example.in (c) /maths/tables.html (d) https -
18.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Orange</li>
</ul> (a) bullets (b) numbers - 19.Which of these is a closing tag? (a) <h1> (b) <title> (c) </body> (d) <li>
- 20.⚡ What does JavaScript add to a web page? (a) the domain name (b) the page title (c) actions and changes (d) only colours
-
21.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>Good morning!</p>
<!-- <p>Fun facts</p> --> - 22.💪 Which justify-content value equal gaps, none at ends? (a) flex-start (b) center (c) space-between (d) flex-end
- 23.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
-
24.🔗 Which address opens when you click this link?
<a href="about.html">Art corner</a> (a) https://example.com (b) Art corner (c) about.html (d) contact.html - 25.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) 600px or narrower (c) exactly 1000px (d) turned off
- 26.📄 Can HTML on its own make headings? (a) No (b) Yes
-
27.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>The red kite</p>
<p>Cricket is fun.</p>
<p>Cricket is fun.</p>
<h2>Rain today</h2> - 28.📦 In the box model, which part is space outside the border? (a) content (b) border (c) padding (d) margin
- 29.Which of these is a weak password? (a) Mango#Kite29! (b) password (c) Rain#Drop_42! (d) S0lar!Pen#8
- 30.🚀 Which file should this code go in: #top { color: blue; } (a) style.css (b) script.js (c) index.html
- 31.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
- 32.What does justify-content: flex-start do? (a) puts boxes in the middle (b) packs boxes at the start (c) packs boxes at the end (d) equal gaps, none at ends
- 33.📝 Which input type lets you pick only one? (a) radio (b) checkbox (c) password (d) email
- 34.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
- 35.🎨 Which tag connects an outside CSS file? (a) <link> (b) <a> (c) <img> (d) <css>
-
36.📱 The screen is 700px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (max-width: 768px) {
p {
font-size: 10px;
}
} (a) No (b) Yes -
37.🖌️ What colour are the letters?
li {
background-color: green;
font-size: 16px;
color: black;
text-align: center;
} (a) green (b) red (c) black -
38.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Cricket is fun.</p>
<h3>Hello, world!</h3>
<p>Fun facts</p>
<h2>Good morning!</h2> -
39.🔗 Which words do you click on?
<a href="maths.html">About us</a> (a) href (b) maths.html (c) Contact us (d) About us - 40.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) <head>
Answer key
- a web browser
- False
- False
- dog.jpg
- Chai$Cup_19x
- weak
- color
- 249
- a line across the page
- numbers
- sits at the very top
- script.js
- helps everyone
- yellow
- padding
- opens web pages for us
- /about.html
- bullets
- </body>
- actions and changes
- 2
- space-between
- <ul>
- about.html
- 600px or narrower
- Yes
- 4
- margin
- password
- style.css
- a web browser
- packs boxes at the start
- radio
- a web browser
- <link>
- Yes
- black
- 3
- About us
- <!DOCTYPE html>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids