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 makes one data cell? (a) <tr> (b) <caption> (c) <td> (d) <table>
- 2.What does font-size do? (a) colours behind the text (b) makes the text bold (c) sets the letter colour (d) makes letters bigger
- 3.📝 Which input type is for one line of words? (a) date (b) password (c) text (d) submit
- 4.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a new line (b) as a dot (c) as 5 spaces (d) as one space
- 5.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h6> or <h4>? (a) <h5> (b) <h6> (c) <h4> (d) <h1>
- 6.Which of these goes in the head? (a) <p> (b) <table> (c) <meta charset="utf-8"> (d) <img>
- 7.📦 In the box model, which part is the text or picture? (a) padding (b) border (c) content (d) margin
- 8.📊 Which tag holds the whole table? (a) <th> (b) <table> (c) <tr> (d) <td>
- 9.🏷️ Which is the closing tag for <b>? (a) <b> (b) <b/> (c) </b> (d) <\b>
- 10.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) attribute (c) editor (d) address
-
11.🖌️ How big is the text, in px?
h1 {
background-color: blue;
font-size: 16px;
text-align: right;
color: yellow;
} - 12.True or false: in <img>, width sets how tall it is. (a) True (b) False
- 13.Which of these is not safe to do online? (a) log out on shared PCs (b) share your password (c) think before you post (d) use a nickname in games
-
14.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Jamun</li>
<li>Papaya</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 15.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
-
16.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 190px;
padding: 5px;
border: 4px solid black;
margin: 15px;
} - 17.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 99 (c) 255 (d) 1000
- 18.What does font-weight do? (a) colours behind the text (b) centres a heading (c) picks the font style (d) makes the text bold
- 19.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <p> (d) <ol>
- 20.🎨 Which attribute adds CSS inside one tag? (a) href (b) alt (c) src (d) style
-
21.🖌️ How big is the text, in px?
h1 {
font-size: 28px;
text-align: right;
background-color: green;
color: white;
} -
22.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 180px;
justify-content: center;
}
Inside are 2 boxes, each 80px wide (no margins). - 23.📝 What does <hr> draw? (a) a picture (b) a line across the page (c) a link (d) a table
- 24.🌈 In #0000ef the blue part is the hex number ef. What is it as a normal number?
- 25.True or false: <li> is an empty tag. (a) False (b) True
- 26.Which of these is the border? (a) space inside the border (b) the text or picture (c) the line round the box (d) space outside the border
-
27.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p>
<!-- <p>Our school trip</p> -->
<!-- <p>My best friend</p> --> -
28.🔁 What does this code print?
let marks = 4;
if (marks > 45) {
console.log("Pass");
} else {
console.log("Try again");
} (a) Pass (b) Try again -
29.🔁 What does this code print?
let temp = 21;
if (temp >= 10) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Hot (b) Cool -
30.📊 How many cells does this table have in all?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Banana</td><td>Banana</td><td>Orange</td></tr>
<tr><td>Grapes</td><td>Papaya</td><td>Litchi</td></tr>
<tr><td>Mango</td><td>Mango</td><td>Guava</td></tr>
</table> - 31.🔢 To build and share your first web page, which comes LAST? (a) test in a browser (b) add CSS styles (c) plan what to show (d) publish it online
- 32.True or false: padding is space inside the border. (a) False (b) True
- 33.🌈 Which colour is rgb(0, 0, 255)? (a) bright green (b) red (c) blue (d) white
- 34.🌈 Which hex code is magenta? (a) #0000ff (b) #ff0000 (c) #ff00ff (d) #00ff00
-
35.🔗 Which words do you click on?
<a href="contact.html">Visit the site</a> (a) href (b) Visit the site (c) contact.html (d) Maths fun - 36.🎯 Which sign starts a class selector? (a) @ (b) . (c) # (d) &
-
37.🖌️ What colour are the letters?
li {
text-align: left;
font-size: 20px;
background-color: red;
color: black;
} (a) black (b) red (c) green - 38.True or false: margin is the gap to other boxes. (a) True (b) False
- 39.True or false: in <img>, width names the picture file. (a) False (b) True
-
40.⚖️ What colour is the text of this element?
<h2 class="big" id="end">Hi</h2>
CSS:
#end { color: blue; }
#end { color: red; } (a) green (b) yellow (c) red (d) blue
Answer key
- <td>
- makes letters bigger
- text
- as one space
- <h1>
- <meta charset="utf-8">
- content
- <table>
- </b>
- element
- 16
- False
- share your password
- 5
- in the body
- 238
- 255
- makes the text bold
- <li>
- style
- 28
- 10
- a line across the page
- 239
- False
- the line round the box
- 1
- Try again
- Hot
- 12
- publish it online
- True
- blue
- #ff00ff
- Visit the site
- .
- black
- True
- False
- red
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids