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.📊 Where do <td> cells go? (a) inside a <tr> (b) inside a <p> (c) inside a <li> (d) inside the <head>
- 2.🔢 To build and share your first web page, which comes first: “write the HTML” or “add CSS styles”? (a) add CSS styles (b) write the HTML
- 3.✍️ How does a CSS comment start? (a) <!-- (b) // (c) /* (d) #
-
4.💬 Which text will NOT show on the page?
<p>My pets</p>
<p>My best friend</p>
<!-- <p>I love mangoes.</p> --> (a) My pets (b) I love mangoes. (c) My best friend - 5.🔤 In “HTML”, what do the letters HT stand for? (a) HyperText (b) Home Text (c) Hot Tags (d) High Tech
- 6.🔁 Which word runs code only when something is true? (a) let (b) for (c) if (d) log
-
7.🖌️ Where does the text sit on its line?
li {
font-size: 24px;
color: red;
text-align: center;
background-color: yellow;
} (a) on the left (b) on the right (c) in the middle - 8.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) index.html (b) script.js (c) style.css
-
9.🎯 Which CSS selector matches this element?
<h2 class="note" id="intro">Hello</h2> (a) .big (b) #intro (c) #main (d) .intro -
10.⚖️ What colour is the text of this element?
<h1 class="star" id="hero">Hi</h1>
CSS:
h1 { color: yellow; }
#hero { color: white; } (a) red (b) black (c) white (d) yellow -
11.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 260px;
justify-content: center;
}
Inside are 3 boxes, each 40px wide (no margins). - 12.🧩 Which language changes the page live? (a) JavaScript (b) CSS (c) HTML
-
13.🔗 Which words do you click on?
<a href="about.html">Maths fun</a> (a) about.html (b) Maths fun (c) href (d) Art corner -
14.🔗 Which words do you click on?
<a href="about.html">School news</a> (a) href (b) Take the quiz (c) about.html (d) School news - 15.Which of these goes in the body? (a) <style> (b) <title> (c) <a> (d) <meta charset="utf-8">
-
16.⚖️ What colour is the text of this element?
<p class="red" id="logo">Hi</p>
CSS:
.red { color: blue; }
#logo { color: black; } (a) blue (b) black (c) red (d) purple -
17.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 210px;
justify-content: flex-start;
}
Inside are 2 boxes, each 100px wide (no margins). -
18.🌍 What is the protocol in this URL?
https://kids.example.org/index.html (a) kids.example.org (b) http (c) /index.html (d) https - 19.🚀 What is the home page file of a website usually called? (a) home.css (b) main.png (c) index.html (d) start.js
- 20.⚡ Which JavaScript word repeats code? (a) for (b) if (c) alert() (d) console.log()
-
21.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 90px;
padding: 10px;
border: 5px solid black;
margin: 20px;
} -
22.📋 Does this list show bullets or numbers?
<ol>
<li>Litchi</li>
<li>Jamun</li>
</ol> (a) numbers (b) bullets -
23.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) About us (b) games.html (c) Contact us (d) href - 24.🖼️ Which attribute of <img> is read by screen readers? (a) height (b) alt (c) width (d) src
- 25.🎯 Which element does the selector span style? (a) <p> (b) <h2 id="hero"> (c) <h1 class="big"> (d) <span class="big">
- 26.Which of these is an empty tag? (a) <ul> (b) <h1> (c) <img> (d) <p>
- 27.🛡️ Should you share your password with your best friend? (a) Yes (b) No
- 28.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
-
29.✍️ How many declarations (property: value pairs) are in this rule?
h1 {
font-size: 20px;
color: red;
} - 30.🔍 Which is the odd one out? (a) answers page requests (b) sends pages over the net (c) colours code to help us (d) stores a website’s files
- 31.📱 Which tag helps phones show a page at the right size? (a) the viewport meta tag (b) the br tag (c) the hr tag (d) the title tag
- 32.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
-
33.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Jamun</li>
<li>Litchi</li>
<li>Orange</li>
<li>Grapes</li>
<li>Guava</li>
</ol> -
34.✍️ How many declarations (property: value pairs) are in this rule?
li {
color: red;
} -
35.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>My pets</p>
<h2>Hello, world!</h2> -
36.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="sport"> Football
<input type="checkbox" name="sport"> Cricket
<input type="checkbox" name="sport"> Chess
<input type="checkbox" name="sport"> Kabaddi
</form> -
37.✍️ Which property is set to red in this rule?
li {
color: red;
margin: 10px;
} (a) red (b) text-align (c) color (d) font-size - 38.🎨 What does CSS stand for? (a) Cascading Style Sheets (b) Colourful Site Styles (c) Computer Style Sheets (d) Creative Sheet System
- 39.🧭 Which semantic tag holds the main content? (a) <nav> (b) <article> (c) <main> (d) <aside>
- 40.📊 Which tag gives the table a title? (a) <td> (b) <th> (c) <caption> (d) <tr>
Answer key
- inside a <tr>
- write the HTML
- /*
- I love mangoes.
- HyperText
- if
- in the middle
- style.css
- #intro
- white
- 70
- JavaScript
- Maths fun
- School news
- <a>
- black
- 10
- https
- index.html
- for
- 160
- numbers
- About us
- alt
- <span class="big">
- <img>
- No
- <h1>
- 2
- colours code to help us
- the viewport meta tag
- <ul>
- 2
- 1
- 2
- 4
- color
- Cascading Style Sheets
- <main>
- <caption>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids