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 sign ends each CSS declaration? (a) , (b) ; (c) . (d) :
- 2.📝 Which tag makes a drop-down list? (a) <li> (b) <ol> (c) <ul> (d) <select>
- 3.🎯 What kind of selector is .note? (a) an id selector (b) an element selector (c) a class selector
- 4.True or false: HTML on its own can keep a high score. (a) True (b) False
-
5.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="100"> - 6.True or false: in <img>, src tells which image to load. (a) True (b) False
- 7.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 8.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <style> (d) <ul>
- 9.Which of these is true of <main>? (a) holds the main content (b) holds a side box of tips (c) holds extra side notes (d) helps you move around
- 10.🌍 What do we call the computer that stores a website? (a) a server (b) a mouse (c) a keyboard (d) a printer
- 11.🚀 What is the home page file of a website usually called? (a) main.png (b) index.html (c) start.js (d) home.css
- 12.What does background-color do? (a) makes letters bigger (b) colours behind the text (c) picks the font style (d) sets the letter colour
-
13.✍️ Which property is set to 2px solid in this rule?
.box {
border: 2px solid;
background-color: yellow;
text-align: center;
} (a) width (b) 2px solid (c) font-style (d) border - 14.⚡ Which tag holds JavaScript in a page? (a) <js> (b) <style> (c) <code> (d) <script>
- 15.True or false: padding is space outside the border. (a) True (b) False
- 16.✍️ In color: blue; which part is the property? (a) color (b) ; (c) : (d) blue
- 17.⚖️ Which selector is the strongest? (a) an id selector (b) a class selector (c) an element selector
- 18.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h3>? (a) <h3> (b) <h2> (c) <h6> (d) <h1>
-
19.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Rain today</p>
<p>Hello, world!</p> - 20.🚀 Which file should this code go in: score = score + 1; (a) index.html (b) script.js (c) style.css
-
21.✍️ What value is given to padding in this rule?
li {
width: 300px;
padding: 8px;
border: 2px solid;
} (a) 8px (b) bold (c) 2px solid (d) padding - 22.Which of these is an empty tag? (a) <hr> (b) <ul> (c) <title> (d) <p>
-
23.🖌️ What colour is behind the letters?
h2 {
background-color: black;
color: orange;
text-align: right;
font-size: 12px;
} (a) yellow (b) orange (c) black - 24.True or false: the border is space inside the border. (a) False (b) True
- 25.🚀 Where in index.html does the link to style.css go? (a) in the footer (b) after </html> (c) inside a <p> (d) in the head
-
26.⚡ What number does this code print?
let books = 12;
books = books + 7;
books = books - 1;
console.log(books); - 27.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 28.True or false: <br> has a closing tag. (a) True (b) False
- 29.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 30.🔐 Is S0lar!Pen#8 a strong or a weak password? (a) strong (b) weak
-
31.📋 How many items does this list show?
<ul>
<li>Grapes</li>
<li>Guava</li>
<li>Litchi</li>
</ul> - 32.True or false: <th> makes a heading cell. (a) False (b) True
- 33.True or false: <nav> sits at the bottom. (a) False (b) True
- 34.💬 How does an HTML comment end? (a) --> (b) */ (c) >> (d) //
- 35.🖼️ Which attribute of <img> is read by screen readers? (a) alt (b) src (c) height (d) width
-
36.📊 How many cells are in each row?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Guava</td><td>Guava</td><td>Jamun</td></tr>
</table> - 37.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h5> or <h1>? (a) <h3> (b) <h2> (c) <h1> (d) <h5>
- 38.🌗 Is yellow on black easy or hard to read? (a) hard to read (b) easy to read
- 39.Which of these is true of <article>? (a) is the page’s key part (b) holds the main content (c) holds copyright notes (d) holds one blog post
-
40.🌍 What is the path in this URL?
https://www.example.net/news/today.html (a) https (b) /news/today.html (c) /games/chess.html (d) www.example.net
Answer key
- ;
- <select>
- a class selector
- False
- 100
- True
- Yes
- <ul>
- holds the main content
- a server
- index.html
- colours behind the text
- border
- <script>
- False
- color
- an id selector
- <h1>
- 1
- script.js
- 8px
- <hr>
- black
- False
- in the head
- 18
- a closing tag
- False
- in the head
- strong
- 3
- True
- False
- -->
- alt
- 3
- <h1>
- easy to read
- holds one blog post
- /news/today.html
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids