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 heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h6>? (a) <h1> (b) <h5> (c) <h4> (d) <h6>
- 2.📝 Which tag holds a whole form? (a) <input> (b) <ol> (c) <form> (d) <table>
-
3.🌍 What is the protocol in this URL?
http://www.example.net/games/chess.html (a) http (b) https (c) www.example.net (d) /games/chess.html - 4.🖼️ Which attribute of <img> sets how tall it is? (a) height (b) src (c) width (d) alt
- 5.🌍 Which one scrambles data on its way? (a) HTTPS (b) the server (c) the browser (d) the URL
- 6.Which of these is an empty tag? (a) <ul> (b) <title> (c) <br> (d) <p>
-
7.🔗 Which address opens when you click this link?
<a href="art.html">School news</a> (a) School news (b) quiz.html (c) news.html (d) art.html - 8.🔐 Is password a strong or a weak password? (a) strong (b) weak
-
9.⚖️ What colour is the text of this element?
<h2 class="red" id="logo">Hi</h2>
CSS:
h2 { color: green; }
h2 { color: orange; } (a) green (b) blue (c) orange (d) black - 10.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
11.🔗 Which address opens when you click this link?
<a href="news.html">About us</a> (a) quiz.html (b) About us (c) games.html (d) news.html - 12.💬 Why do coders write comments? (a) to make links (b) to show pictures (c) to add colour (d) to leave notes
- 13.🎯 Which element does the selector p style? (a) <li id="main"> (b) <p class="note"> (c) <h1> (d) <h2 class="note">
-
14.♿ Is this heading order correct (no level skipped)?
<h1> → <h2> → <h2> → <h2> (a) No (b) Yes -
15.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>I love mangoes.</p>
<p>Fun facts</p>
<p>The red kite</p> - 16.🚀 Which file should this code go in: <img src="cat.png"> (a) script.js (b) index.html (c) style.css
-
17.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 450px;
justify-content: flex-start;
}
Inside are 4 boxes, each 100px wide (no margins). - 18.True or false: <article> sits at the bottom. (a) True (b) False
-
19.🔁 What does this code print?
let temp = 8;
if (temp >= 43) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Hot (b) Cool - 20.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) red (d) green
- 21.What is <input type="email"> for? (a) is for an email address (b) lets you tick many (c) is for one line of words (d) picks a day
- 22.🌍 Which one is the page’s address? (a) the browser (b) the URL (c) the server (d) HTTPS
-
23.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 110px;
padding: 30px;
border: 5px solid black;
margin: 0px;
} - 24.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
-
25.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 440px;
justify-content: flex-start;
}
Inside are 4 boxes, each 100px wide (no margins). - 26.🔐 Is Rain#Drop_42! a strong or a weak password? (a) strong (b) weak
-
27.🔍 Which line is missing its closing tag?
line 1: <h3>My pets</h3>
line 2: <strong>Hello, world!
line 3: <em>Our school trip</em> (a) line 1 (b) line 3 (c) line 2 - 28.📱 min-width: 800px applies when the screen is ___. (a) exactly 100px (b) 800px or wider (c) 800px or narrower (d) turned off
-
29.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 70px;
padding: 10px;
border: 4px solid black;
margin: 10px;
} - 30.📱 max-width: 600px applies when the screen is ___. (a) exactly 1000px (b) 600px or narrower (c) 600px or wider (d) turned off
- 31.🚀 Which file is best for code that reacts to clicks? (a) script.js (b) index.html (c) style.css (d) notes.txt
- 32.📊 Are <th> cells shown bold and centred by default? (a) Yes (b) No
- 33.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
- 34.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
- 35.Which of these is true of <header>? (a) holds the logo and title (b) holds one blog post (c) holds the main content (d) is the page’s key part
- 36.💪 Which flexbox property picks row or column? (a) align-items (b) gap (c) justify-content (d) flex-direction
-
37.🖌️ What colour is behind the letters?
h1 {
font-size: 36px;
color: blue;
background-color: black;
text-align: center;
} (a) blue (b) green (c) black - 38.True or false: <table> holds the whole table. (a) False (b) True
-
39.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 180px;
padding: 20px;
border: 4px solid black;
margin: 0px;
} - 40.⚡ A JavaScript file usually ends with which extension? (a) .jpg (b) .js (c) .css (d) .html
Answer key
- <h1>
- <form>
- http
- height
- HTTPS
- <br>
- art.html
- weak
- orange
- has a closing tag
- news.html
- to leave notes
- <p class="note">
- Yes
- 1
- index.html
- 50
- False
- Cool
- blue
- is for an email address
- the URL
- 180
- <li>
- 40
- strong
- line 2
- 800px or wider
- 118
- 600px or narrower
- script.js
- Yes
- Yes
- <a href="about.html">
- holds the logo and title
- flex-direction
- black
- True
- 228
- .js
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids