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.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Birds sing<br>Stars shine<br>Roses are red<br>Sky is blue</p> - 2.True or false: the URL sends the page back. (a) True (b) False
- 3.What does background-color do? (a) picks the font style (b) makes letters bigger (c) colours behind the text (d) centres a heading
-
4.🔍 One closing tag is missing. Which one?
<small>My best friend</small>
<b>Our school trip</b>
<h2>Good morning! (a) </strong> (b) </h2> (c) </small> (d) </b> - 5.Which of these does CSS do? (a) makes headings and lists (b) gives the page structure (c) checks a quiz answer (d) adds space around boxes
- 6.🔍 Which is the odd one out? (a) rounds box corners (b) lays out the page (c) checks a quiz answer (d) adds space around boxes
- 7.True or false: <a href="a.html">Go</a> goes in script.js. (a) False (b) True
- 8.♿ What does good colour contrast mean? (a) text stands out clearly (b) many bright colours (c) only red text (d) no colours at all
-
9.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Guava</li>
</ol> (a) bullets (b) numbers - 10.📱 Responsive design means a page ___. (a) never changes (b) has no pictures (c) is only for laptops (d) fits every screen
- 11.📝 Which input type takes only numbers? (a) password (b) email (c) number (d) checkbox
- 12.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h1> or <h2>? (a) <h6> (b) <h4> (c) <h2> (d) <h1>
- 13.Which colour pair is easy to read? (a) white on dark blue (b) blue on purple (c) yellow on white (d) pink on red
-
14.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>Cricket is fun.</p>
<p>Fun facts</p> - 15.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h4> or <h2>? (a) <h4> (b) <h5> (c) <h1> (d) <h2>
- 16.🔍 Which is the odd one out? (a) is where we type code (b) colours code to help us (c) shows line numbers (d) answers page requests
-
17.🎯 Which CSS selector matches this element?
<div class="red" id="top">Hello</div> (a) div (b) #intro (c) #red (d) .top - 18.🌐 Which one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
- 19.🔢 When you open a web page, which comes first: “you type the URL” or “the browser shows it”? (a) you type the URL (b) the browser shows it
- 20.💬 How does an HTML comment start? (a) // (b) /* (c) # (d) <!--
-
21.📋 How many items does this list show?
<ul>
<li>Litchi</li>
<li>Guava</li>
<li>Jamun</li>
</ul> -
22.📱 The screen is 1100px wide. Does the rule inside @media apply?
p {
font-size: 20px;
}
@media (max-width: 768px) {
p {
font-size: 16px;
}
} (a) No (b) Yes -
23.⚖️ What colour is the text of this element?
<p class="menu" id="end">Hi</p>
CSS:
p { color: white; }
p { color: green; } (a) white (b) blue (c) green (d) orange - 24.🔍 Which is the odd one out? (a) shows line numbers (b) sends pages over the net (c) colours code to help us (d) saves our .html files
- 25.🎯 How many elements on a page should have the same id? (a) any number (b) 1 (c) 2 (d) 5
- 26.🔁 Which word runs code only when something is true? (a) log (b) if (c) let (d) for
- 27.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h4> or <h1>? (a) <h6> (b) <h1> (c) <h4> (d) <h5>
-
28.🔗 Where does this link open?
<a href="about.html">Maths fun</a> (a) in a new tab (b) in the same tab - 29.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
-
30.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>The red kite</p>
<h2>Hello, world!</h2>
<p>The red kite</p>
<h2>I love mangoes.</h2> -
31.🎯 Which CSS selector matches this element?
<h1 class="star" id="logo">Hello</h1> (a) .star (b) h2 (c) #star (d) .logo - 32.🌍 Which one sends the page back? (a) the browser (b) the server (c) HTTPS (d) the URL
-
33.✍️ What is the selector in this CSS rule?
#top {
text-align: center;
font-weight: bold;
background-color: yellow;
color: red;
} (a) bold (b) #top (c) li (d) text-align - 34.🌗 Is red on green easy or hard to read? (a) easy to read (b) hard to read
-
35.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<!-- <p>My best friend</p> -->
<!-- <p>Rain today</p> -->
<p>Our school trip</p> - 36.True or false: the border is a solid or dotted edge. (a) False (b) True
-
37.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Sky is blue</p> - 38.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</body>”? (a) </body> (b) <!DOCTYPE html>
- 39.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
- 40.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h3> or <h4>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>
Answer key
- 5
- False
- colours behind the text
- </h2>
- adds space around boxes
- checks a quiz answer
- False
- text stands out clearly
- numbers
- fits every screen
- number
- <h1>
- white on dark blue
- 2
- <h5>
- answers page requests
- div
- a web browser
- you type the URL
- <!--
- 3
- No
- green
- sends pages over the net
- 1
- if
- <h1>
- in the same tab
- the body
- 3
- .star
- the server
- #top
- hard to read
- 1
- True
- 2
- <!DOCTYPE html>
- a web browser
- <h2>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids