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.What does font-family do? (a) makes the text bold (b) centres a heading (c) picks the font style (d) makes letters bigger
-
2.🔗 Which words do you click on?
<a href="maths.html">Play games</a> (a) maths.html (b) href (c) Play games (d) About us - 3.🌍 Which one asks for a web page? (a) HTTPS (b) the browser (c) the URL (d) the server
- 4.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
5.🔁 How many numbers does this code print?
for (let i = 0; i < 13; i = i + 3) {
console.log(i);
} -
6.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="200"> (a) dog.jpg (b) Birthday cake (c) moon.png (d) cake.jpg - 7.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 8.🖌️ Which CSS property sets the letter colour? (a) background-color (b) font-family (c) font-size (d) color
-
9.⚖️ What colour is the text of this element?
<h2 class="box" id="logo">Hi</h2>
CSS:
#logo { color: green; }
h2 { color: orange; } (a) orange (b) green (c) purple (d) yellow - 10.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) saves our .html files (d) hosts websites online
- 11.🔐 Is riya2014 a strong or a weak password? (a) strong (b) weak
-
12.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Mango</li>
</ul> - 13.🚀 Which file is best for code that reacts to clicks? (a) script.js (b) notes.txt (c) index.html (d) style.css
- 14.True or false: <ul> shows bullet points. (a) False (b) True
-
15.🔗 Where does this link open?
<a href="maths.html">Maths fun</a> (a) in a new tab (b) in the same tab - 16.True or false: <td> makes one table row. (a) False (b) True
- 17.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) opens it in a new tab (d) makes it blank
- 18.🚀 What is the home page file of a website usually called? (a) index.html (b) start.js (c) main.png (d) home.css
-
19.🔗 Which words do you click on?
<a href="about.html">Maths fun</a> (a) Art corner (b) Maths fun (c) about.html (d) href -
20.🔗 Where does this link open?
<a href="news.html">About us</a> (a) in the same tab (b) in a new tab - 21.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
- 22.🌗 Is yellow on black easy or hard to read? (a) easy to read (b) hard to read
- 23.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
24.🌍 What is the domain name in this URL?
http://school.example.in/index.html (a) www.example.net (b) /index.html (c) school.example.in (d) http - 25.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h1>? (a) <h6> (b) <h2> (c) <h5> (d) <h1>
- 26.🛡️ Online: is it safe to log out on shared PCs? (a) not safe (b) safe
- 27.💬 How does an HTML comment start? (a) # (b) <!-- (c) // (d) /*
-
28.📝 How many <input> tags are in this form?
<form>
<input type="date">
<input type="text">
<input type="password">
<input type="checkbox">
<input type="submit" value="Send">
</form> -
29.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
p {
font-size: 16px;
}
@media (max-width: 480px) {
p {
font-size: 10px;
}
} -
30.✍️ What is the selector in this CSS rule?
li {
font-weight: bold;
color: red;
font-size: 20px;
} (a) body (b) red (c) li (d) font-weight - 31.📄 Which part holds everything you see on the page? (a) the title (b) the head (c) the body (d) the doctype
-
32.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>My best friend</h2>
<p>Hello, world!</p> - 33.🚀 Which file is best for the colours and fonts? (a) script.js (b) style.css (c) index.html (d) photo.jpg
-
34.🔁 What does this code print?
let marks = 4;
if (marks < 6) {
console.log("Pass");
} else {
console.log("Try again");
} (a) Try again (b) Pass - 35.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) attribute (c) element (d) editor
-
36.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="400"> (a) bus.jpg (b) The full moon (c) moon.png (d) fort.jpg - 37.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 38.Which of these is true of a web server? (a) is where we type code (b) shows line numbers (c) answers page requests (d) colours code to help us
-
39.🔗 Which words do you click on?
<a href="quiz.html">About us</a> (a) About us (b) Contact us (c) href (d) quiz.html - 40.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">
Answer key
- picks the font style
- Play games
- the browser
- an empty tag
- 5
- cake.jpg
- has a closing tag
- color
- green
- saves our .html files
- weak
- 2
- script.js
- True
- in the same tab
- False
- opens it in a new tab
- index.html
- Maths fun
- in the same tab
- hard to read
- easy to read
- a closing tag
- school.example.in
- <h1>
- safe
- <!--
- 5
- 16
- li
- the body
- 2
- style.css
- Pass
- element
- moon.png
- Yes
- answers page requests
- About us
- <a href="about.html">
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids