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.True or false: in <img>, width tells which image to load. (a) True (b) False
- 2.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <br> (d) <ul>
- 3.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
- 4.🎯 Which sign starts an id selector? (a) @ (b) & (c) # (d) .
- 5.Which of these is an opening tag? (a) <li> (b) </title> (c) </li> (d) </body>
- 6.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) Z (c) G (d) F
- 7.📊 Which tag gives the table a title? (a) <tr> (b) <td> (c) <caption> (d) <table>
- 8.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
- 9.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a dollar $ (d) a hash #
- 10.True or false: <li> lists things in any order. (a) True (b) False
-
11.🔁 What is the LAST number this code prints?
for (let i = 0; i < 19; i = i + 2) {
console.log(i);
} - 12.True or false: the border is the text or picture. (a) False (b) True
- 13.🌍 What finds the server for a domain name like example.com? (a) CSS (b) HTML (c) alt (d) DNS
- 14.Which of these has a closing tag? (a) <img> (b) <meta> (c) <ul> (d) <hr>
- 15.True or false: in <img>, alt tells which image to load. (a) False (b) True
- 16.True or false: HTTPS stores the site’s files. (a) True (b) False
- 17.♿ Does this help everyone, or make the page harder to use: label every form box? (a) makes it harder (b) helps everyone
-
18.⚖️ What colour is the text of this element?
<h1 class="note" id="intro">Hi</h1>
CSS:
h1 { color: white; }
h1 { color: green; } (a) white (b) orange (c) purple (d) green - 19.📝 What does a password box show instead of letters? (a) dots (b) numbers (c) emojis (d) capital letters
-
20.🔠 How many headings are in this code?
<h1>My pets</h1>
<p>Our school trip</p>
<p>The red kite</p>
<h2>Fun facts</h2>
<p>I love mangoes.</p> - 21.🏷️ Which is the closing tag for <h2>? (a) <h2> (b) <\h2> (c) </h2> (d) <h2/>
- 22.🖌️ Which CSS property makes letters bigger? (a) font-weight (b) color (c) font-size (d) background-color
- 23.Which of these is padding? (a) space outside the border (b) the text or picture (c) the gap to other boxes (d) space inside the border
-
24.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Planets</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) Class 7 Blog (c) Planets (d) body - 25.🌈 Which colour is #00ff00? (a) magenta (b) red (c) bright green (d) black
-
26.⚡ What does this code print? (Look at the quotes!)
let x = "8";
let y = 9;
console.log(x + y); (a) 17 (b) Error (c) 89 - 27.Which of these is true of <article>? (a) helps you move around (b) holds one blog post (c) is the page’s key part (d) sits at the very top
-
28.🖌️ What colour is behind the letters?
h1 {
text-align: left;
background-color: green;
color: red;
font-size: 16px;
} (a) red (b) green (c) yellow - 29.True or false: a web server answers page requests. (a) True (b) False
- 30.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h2>? (a) <h5> (b) <h6> (c) <h2> (d) <h1>
- 31.📋 Which tag goes around each item of a list? (a) <ul> (b) <li> (c) <ol> (d) <p>
-
32.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 160px;
padding: 5px;
border: 1px solid black;
margin: 0px;
} -
33.📝 At most, how many of these can be chosen at the same time?
<form>
<input type="checkbox" name="fruit"> Guava
<input type="checkbox" name="fruit"> Litchi
<input type="checkbox" name="fruit"> Mango
</form> - 34.What does text-align do? (a) picks the font style (b) sets the letter colour (c) makes letters bigger (d) centres a heading
- 35.🎨 What does CSS stand for? (a) Creative Sheet System (b) Cascading Style Sheets (c) Colourful Site Styles (d) Computer Style Sheets
- 36.🎯 Which element does the selector #logo style? (a) <div id="end"> (b) <span class="note"> (c) <div id="logo"> (d) <div class="logo">
- 37.True or false: <th> makes a heading cell. (a) False (b) True
- 38.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) turned off (c) 600px or narrower (d) exactly 1000px
-
39.🖌️ What colour is behind the letters?
li {
color: red;
background-color: white;
text-align: left;
font-size: 40px;
} (a) white (b) red (c) yellow -
40.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>My best friend</p>
<p>My pets</p> (a) Hello, world! (b) My best friend (c) My pets
Answer key
- False
- <ol>
- <ol>
- #
- <li>
- F
- <caption>
- in the body
- a slash /
- False
- 18
- False
- DNS
- <ul>
- False
- False
- helps everyone
- green
- dots
- 2
- </h2>
- font-size
- space inside the border
- Planets
- bright green
- 89
- holds one blog post
- green
- True
- <h6>
- <li>
- 172
- 3
- centres a heading
- Cascading Style Sheets
- <div id="logo">
- True
- 600px or narrower
- white
- Hello, world!
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids