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 address opens when you click this link?
<a href="games.html">School news</a> (a) School news (b) contact.html (c) about.html (d) games.html - 2.True or false: <article> holds a news story. (a) False (b) True
- 3.🌐 Which one colours code to help us? (a) a web server (b) a web browser (c) a code editor
- 4.📄 Can HTML on its own make headings? (a) Yes (b) No
- 5.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 6.💬 How does an HTML comment start? (a) // (b) /* (c) # (d) <!--
- 7.📛 In <a href="x.html">, what is href? (a) a closing tag (b) a comment (c) an attribute (d) an element name
- 8.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <ol> (d) <br>
-
9.🔗 Where does this link open?
<a href="contact.html">Take the quiz</a> (a) in the same tab (b) in a new tab - 10.True or false: “write clear link text” helps everyone use the page. (a) True (b) False
- 11.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) attribute (c) element (d) editor
- 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) F (c) J (d) Z
-
13.📱 The screen is 375px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (max-width: 480px) {
p {
font-size: 10px;
}
} (a) Yes (b) No -
14.⚖️ What colour is the text of this element?
<h2 class="star" id="logo">Hi</h2>
CSS:
h2 { color: purple; }
#logo { color: white; }
.star { color: yellow; } (a) yellow (b) white (c) purple (d) green - 15.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 1000 (c) 100 (d) 255
- 16.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
- 17.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
- 18.True or false: CSS sets colours and fonts. (a) False (b) True
- 19.🌍 Which one scrambles data on its way? (a) the server (b) HTTPS (c) the browser (d) the URL
-
20.🌍 What is the protocol in this URL?
https://learn.example.com/about.html (a) /about.html (b) http (c) https (d) learn.example.com - 21.True or false: the browser is the page’s address. (a) True (b) False
- 22.Which of these does CSS do? (a) changes the text size (b) reacts to a button click (c) gives the page structure (d) counts down a timer
- 23.📱 Which tag helps phones show a page at the right size? (a) the title tag (b) the hr tag (c) the br tag (d) the viewport meta tag
- 24.🔢 On a typical page, from top to bottom, which comes first: “<header>” or “<nav>”? (a) <nav> (b) <header>
- 25.🧭 Is <nav> semantic or not semantic? (a) not semantic (b) semantic
-
26.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>I love mangoes.</p> -->
<p>Rain today</p>
<p>Our school trip</p> - 27.True or false: <title> has a closing tag. (a) True (b) False
- 28.True or false: the URL scrambles data on its way. (a) True (b) False
-
29.✍️ How many declarations (property: value pairs) are in this rule?
.box {
text-align: center;
width: 300px;
} -
30.⚡ What does this code show?
let name = "Riya";
console.log("Hello, " + name + "!"); (a) Hello, Riya! (b) name (c) Riya (d) Hello, name! - 31.🧭 Is <main> semantic or not semantic? (a) semantic (b) not semantic
- 32.🔍 Which is the odd one out? (a) makes a link (b) makes headings and lists (c) changes the page live (d) gives the page structure
- 33.🌈 In #0000b4 the blue part is the hex number b4. What is it as a normal number?
-
34.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="400"> (a) kite.png (b) fort.jpg (c) An old fort (d) tiger.jpg - 35.🚀 Which file should this code go in: <p>Hello!</p> (a) script.js (b) index.html (c) style.css
-
36.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 600px) {
p {
font-size: 22px;
}
} - 37.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
- 38.🌍 Which one shows the page to you? (a) the browser (b) the URL (c) HTTPS (d) the server
-
39.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 200px;
justify-content: space-between;
}
Inside are 2 boxes, each 60px wide (no margins). - 40.Which of these does JavaScript do? (a) adds space around boxes (b) counts down a timer (c) makes a link (d) puts a picture on a page
Answer key
- games.html
- True
- a code editor
- Yes
- Yes
- <!--
- an attribute
- <ul>
- in the same tab
- True
- element
- F
- Yes
- white
- 255
- False
- <a>
- True
- HTTPS
- https
- False
- changes the text size
- the viewport meta tag
- <header>
- semantic
- 3
- True
- False
- 2
- Hello, Riya!
- semantic
- changes the page live
- 180
- fort.jpg
- index.html
- 22
- a web browser
- the browser
- 80
- counts down a timer
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids