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 the least important heading? (a) <h3> (b) <p> (c) <h6> (d) <h1>
- 2.💬 How does an HTML comment start? (a) <!-- (b) /* (c) // (d) #
-
3.📝 How many <input> tags are in this form?
<form>
<input type="checkbox">
<input type="password">
<input type="number">
<input type="date">
<input type="submit" value="Send">
</form> - 4.🎯 What kind of selector is p? (a) an id selector (b) a class selector (c) an element selector
- 5.🔐 Is Blue@Tiger_74 a strong or a weak password? (a) weak (b) strong
- 6.🧩 Which language gives the page structure? (a) CSS (b) HTML (c) JavaScript
-
7.🖌️ What colour are the letters?
p {
font-size: 12px;
text-align: left;
color: blue;
background-color: black;
} (a) blue (b) yellow (c) black - 8.True or false: <h1> is an empty tag. (a) True (b) False
- 9.True or false: <ul> lists things in any order. (a) False (b) True
-
10.🖌️ How big is the text, in px?
h1 {
text-align: left;
font-size: 16px;
background-color: blue;
color: purple;
} - 11.True or false: to meet an online stranger is safe. (a) False (b) True
- 12.🎨 Which attribute adds CSS inside one tag? (a) style (b) src (c) href (d) alt
- 13.🔗 Which attribute holds the address of a link? (a) href (b) src (c) id (d) alt
- 14.🧩 Which language makes a link? (a) JavaScript (b) HTML (c) CSS
- 15.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 3 (d) 6
- 16.🌈 Which colour of light is strongest in rgb(156, 136, 109)? (a) red (b) blue (c) green
- 17.🔍 Which is the odd one out? (a) puts a picture on a page (b) gives the page structure (c) makes headings and lists (d) changes the text size
-
18.✍️ Which property is set to 300px in this rule?
li {
width: 300px;
color: red;
} (a) font-style (b) 300px (c) color (d) width - 19.📦 In the box model, which part is the gap round content? (a) content (b) border (c) margin (d) padding
- 20.📝 Which tag holds a whole form? (a) <ol> (b) <form> (c) <table> (d) <input>
-
21.🔁 How many times does this code print “Well done”?
for (let i = 0; i < 5; i++) {
console.log("Well done");
} -
22.🔗 Where does this link open?
<a href="news.html" target="_blank">Contact us</a> (a) in the same tab (b) in a new tab - 23.🌈 In #a80000 the red part is the hex number a8. What is it as a normal number?
- 24.True or false: <caption> gives the table a title. (a) False (b) True
- 25.Which of these is true of <nav>? (a) holds one blog post (b) sits at the bottom (c) holds a side box of tips (d) holds the menu of links
- 26.📄 Where does the text of <title> appear? (a) on the browser tab (b) at the bottom (c) nowhere (d) in a big heading
-
27.🔗 Which address opens when you click this link?
<a href="about.html">Contact us</a> (a) contact.html (b) Contact us (c) about.html (d) https://example.com - 28.♿ Does this help everyone, or make the page harder to use: link text “click here”? (a) makes it harder (b) helps everyone
-
29.✍️ How many declarations (property: value pairs) are in this rule?
h2 {
font-size: 20px;
border: 2px solid;
} - 30.🌗 Is white on black easy or hard to read? (a) hard to read (b) easy to read
-
31.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 300px;
justify-content: center;
}
Inside are 4 boxes, each 50px wide (no margins). - 32.Which of these goes in the head? (a) <ul> (b) <a> (c) <link rel="stylesheet"> (d) <h1>
- 33.Which of these is a closing tag? (a) <h1> (b) </b> (c) <title> (d) <p>
- 34.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 35.Which of these does JavaScript do? (a) makes a form box (b) makes headings and lists (c) changes the text size (d) checks a quiz answer
-
36.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="400"> (a) An old fort (b) tiger.jpg (c) fort.jpg (d) kite.png - 37.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a hash # (c) a dot . (d) a slash /
-
38.🔍 Which line is missing its closing tag?
line 1: <small>My pets
line 2: <b>Fun facts</b>
line 3: <h1>Rain today</h1> (a) line 3 (b) line 1 (c) line 2 - 39.Which of these goes in the body? (a) <style> (b) <p> (c) <title> (d) <meta charset="utf-8">
-
40.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 190px;
justify-content: flex-end;
}
Inside are 4 boxes, each 40px wide (no margins).
Answer key
- <h6>
- <!--
- 5
- an element selector
- strong
- HTML
- blue
- False
- True
- 16
- False
- style
- href
- HTML
- 1
- red
- changes the text size
- width
- padding
- <form>
- 5
- in a new tab
- 168
- True
- holds the menu of links
- on the browser tab
- about.html
- makes it harder
- 2
- easy to read
- 50
- <link rel="stylesheet">
- </b>
- Yes
- checks a quiz answer
- fort.jpg
- a slash /
- line 1
- <p>
- 30
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids