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 tag is used for the main title on a page? (a) <h1> (b) <h6> (c) <p> (d) <br>
- 2.🎨 A CSS file usually ends with which extension? (a) .html (b) .css (c) .png (d) .js
- 3.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the body (d) the head
- 4.🎨 What does CSS stand for? (a) Colourful Site Styles (b) Cascading Style Sheets (c) Computer Style Sheets (d) Creative Sheet System
-
5.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red<br>Rivers flow</p> -
6.📱 The screen is 820px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (min-width: 1024px) {
p {
font-size: 20px;
}
} (a) No (b) Yes - 7.🧭 Which semantic tag holds the logo and title? (a) <header> (b) <nav> (c) <main> (d) <aside>
- 8.💪 Which justify-content value packs boxes at the start? (a) center (b) flex-start (c) space-between (d) flex-end
-
9.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Grapes</li>
</ul> - 10.✍️ Which sign goes between a property and its value? (a) ; (b) = (c) : (d) -
-
11.🔍 One closing tag is missing. Which one?
<h3>I love mangoes.
<h1>Our school trip</h1>
<small>Rain today</small> (a) </h3> (b) </h1> (c) </strong> (d) </small> -
12.🖌️ What colour is behind the letters?
li {
text-align: center;
font-size: 40px;
color: blue;
background-color: white;
} (a) black (b) white (c) blue -
13.📋 What number does the browser show next to “Grapes”?
<ol start="5">
<li>Mango</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Banana</li>
<li>Jamun</li>
<li>Orange</li>
</ol> - 14.⚡ Which tag holds JavaScript in a page? (a) <code> (b) <style> (c) <js> (d) <script>
-
15.🔁 What does this code print?
let age = 30;
if (age < 7) {
console.log("teen");
} else {
console.log("child");
} (a) teen (b) child - 16.True or false: a web browser colours code to help us. (a) True (b) False
- 17.📱 min-width: 800px applies when the screen is ___. (a) turned off (b) exactly 100px (c) 800px or narrower (d) 800px or wider
- 18.True or false: a code editor has an address bar. (a) False (b) True
- 19.🌈 In #002700 the green part is the hex number 27. What is it as a normal number?
-
20.📱 The screen is 1100px wide. Does the rule inside @media apply?
p {
font-size: 24px;
}
@media (min-width: 480px) {
p {
font-size: 32px;
}
} (a) No (b) Yes - 21.🔍 Which is the odd one out? (a) shows pages from the web (b) turns HTML into a page (c) opens web pages for us (d) stores a website’s files
-
22.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 768px) {
p {
font-size: 22px;
}
} - 23.Which of these is true of a web server? (a) shows pages from the web (b) saves our .html files (c) opens web pages for us (d) hosts websites online
-
24.⚡ What does this code print? (Look at the quotes!)
let x = "3";
let y = 1;
console.log(x + y); (a) 31 (b) 4 (c) Error -
25.📝 How many <input> tags are in this form?
<form>
<input type="password">
<input type="checkbox">
<input type="date">
<input type="submit" value="Send">
</form> - 26.♿ Does this help everyone, or make the page harder to use: skipping heading levels? (a) helps everyone (b) makes it harder
- 27.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 28.🌍 What does a web address (URL) tell the browser? (a) your password (b) how old you are (c) the page colour (d) where the page is
- 29.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) style.css (b) index.html (c) script.js
- 30.🔗 Which attribute holds the address of a link? (a) src (b) id (c) href (d) alt
- 31.📝 Which input type sends the form? (a) password (b) submit (c) text (d) email
- 32.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
-
33.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Roses are red</p> - 34.🔢 To build and share your first web page, which comes first: “write the HTML” or “publish it online”? (a) write the HTML (b) publish it online
- 35.True or false: the border is the line round the box. (a) False (b) True
-
36.📱 The screen is 540px wide. What font-size (px) does the paragraph get?
p {
font-size: 24px;
}
@media (max-width: 600px) {
p {
font-size: 18px;
}
} -
37.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>I love mangoes.</p>
<p>Fun facts</p>
<p>The red kite</p>
<p>Hello, world!</p> - 38.🧭 Is <article> semantic or not semantic? (a) not semantic (b) semantic
-
39.✍️ What is the selector in this CSS rule?
body {
padding: 8px;
font-weight: bold;
background-color: yellow;
} (a) padding (b) .box (c) body (d) bold - 40.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
Answer key
- <h1>
- .css
- the body
- Cascading Style Sheets
- 3
- No
- <header>
- flex-start
- 2
- :
- </h3>
- white
- 6
- <script>
- child
- False
- 800px or wider
- False
- 39
- Yes
- stores a website’s files
- 22
- hosts websites online
- 31
- 4
- makes it harder
- No
- where the page is
- index.html
- href
- submit
- in the body
- 2
- write the HTML
- True
- 18
- 5
- semantic
- body
- a web browser
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids