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.🌗 Is yellow on white easy or hard to read? (a) hard to read (b) easy to read
-
2.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 270px;
padding: 20px;
border: 3px solid black;
margin: 10px;
} - 3.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h3> or <h2>? (a) <h3> (b) <h1> (c) <h2> (d) <h6>
- 4.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <br> (d) <hr>
- 5.🧭 Which semantic tag holds one blog post? (a) <article> (b) <header> (c) <footer> (d) <nav>
- 6.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 6 (d) 10
- 7.📝 Which tag makes a big box for many lines of text? (a) <textarea> (b) <p> (c) <br> (d) <input>
- 8.🎯 Which sign starts an id selector? (a) . (b) @ (c) & (d) #
- 9.Which of these does HTML do? (a) changes the page live (b) makes a form box (c) reacts to a button click (d) rounds box corners
- 10.True or false: padding is space outside the border. (a) False (b) True
-
11.🔁 What number does this code print?
let total = 0;
for (let i = 1; i <= 3; i++) {
total = total + i;
}
console.log(total); - 12.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) makes it bold (d) hides the link
- 13.⚡ Where does console.log() show its output? (a) in the console (b) on the title bar (c) on the printer (d) in the address bar
-
14.✍️ How many declarations (property: value pairs) are in this rule?
#top {
color: red;
font-style: italic;
margin: 10px;
} -
15.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 220px;
justify-content: center;
}
Inside are 3 boxes, each 40px wide (no margins). -
16.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing</p> - 17.🌈 Which colour is rgb(255, 0, 255)? (a) black (b) yellow (c) cyan (d) magenta
-
18.✍️ Which property is set to yellow in this rule?
p {
background-color: yellow;
font-weight: bold;
font-size: 20px;
width: 300px;
} (a) yellow (b) margin (c) padding (d) background-color - 19.True or false: <ul><li>Art</li></ul> goes in index.html. (a) True (b) False
- 20.True or false: <caption> makes one data cell. (a) False (b) True
-
21.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="200"> - 22.True or false: in <img>, alt is read by screen readers. (a) True (b) False
- 23.True or false: in <img>, src tells which image to load. (a) True (b) False
- 24.True or false: “write clear link text” makes the page harder to use. (a) False (b) True
-
25.📦 How much space top to bottom (px) does this box take in all, margin included?
.box {
height: 40px;
padding: 30px;
border: 2px solid black;
margin: 15px;
} - 26.🔢 When you open a web page, what comes right after “you type the URL”? (a) the server sends files (b) the browser asks it (c) DNS finds the server (d) the browser shows it
- 27.🌈 In #rrggbb, which colour do the last two digits give? (a) red (b) blue (c) white (d) green
- 28.🌈 Which colour of light is strongest in rgb(99, 14, 239)? (a) blue (b) red (c) green
-
29.🔒 Is the connection to this address scrambled (encrypted)?
https://www.example.com/games/chess.html (a) No (b) Yes - 30.🌐 Which one stores a website’s files? (a) a code editor (b) a web browser (c) a web server
- 31.True or false: <p> goes in the body. (a) False (b) True
- 32.✍️ CSS declarations go inside which brackets? (a) [ ] (b) < > (c) { } (d) ( )
-
33.⚡ What number does this code print?
let a = 22;
let b = 21;
console.log(a + b); - 34.🌍 What does a web address (URL) tell the browser? (a) how old you are (b) your password (c) where the page is (d) the page colour
- 35.📄 What is the first line of an HTML5 page? (a) <head> (b) <html> (c) <body> (d) <!DOCTYPE html>
-
36.✍️ Which property is set to 2px solid in this rule?
p {
border: 2px solid;
font-size: 20px;
background-color: yellow;
} (a) font-style (b) 2px solid (c) border (d) width -
37.🔗 Which address opens when you click this link?
<a href="quiz.html">Visit the site</a> (a) Visit the site (b) games.html (c) quiz.html (d) about.html - 38.🖼️ Which attribute of <img> is read by screen readers? (a) width (b) src (c) alt (d) height
- 39.📦 In the box model, which part is the gap round content? (a) content (b) padding (c) border (d) margin
- 40.Which of these is an opening tag? (a) </body> (b) </b> (c) </h1> (d) <b>
Answer key
- hard to read
- 336
- <h1>
- <ol>
- <article>
- 1
- <textarea>
- #
- makes a form box
- False
- 6
- opens it in a new tab
- in the console
- 3
- 50
- 2
- magenta
- background-color
- True
- False
- 200
- True
- True
- False
- 134
- DNS finds the server
- blue
- blue
- Yes
- a web server
- True
- { }
- 43
- where the page is
- <!DOCTYPE html>
- border
- quiz.html
- alt
- padding
- <b>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids