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.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="350"> - 2.⚡ Which JavaScript word runs code when true? (a) for (b) let (c) console.log() (d) if
- 3.🌈 Which colour is #00ffff? (a) cyan (b) red (c) blue (d) magenta
- 4.🛡️ Online: is it safe to keep passwords secret? (a) not safe (b) safe
-
5.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Planets</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) Class 7 Blog (c) index.html (d) Planets - 6.📋 Which list tag is an ordered list? (a) <ol> (b) <li> (c) <ul>
- 7.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h2>? (a) <h2> (b) <h4> (c) <h6> (d) <h1>
- 8.🌈 Which colour of light is strongest in rgb(210, 73, 35)? (a) green (b) red (c) blue
-
9.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>Fun facts</p>
<p>The red kite</p> -
10.⚡ What number does this code print?
let score = 21;
score = score + 6;
score = score - 6;
console.log(score); - 11.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
-
12.📊 How many cells does this table have in all?
<table>
<tr><td>Papaya</td><td>Papaya</td><td>Litchi</td></tr>
<tr><td>Papaya</td><td>Mango</td><td>Grapes</td></tr>
</table> - 13.Which of these is true of <footer>? (a) sits at the bottom (b) sits at the very top (c) holds the logo and title (d) holds one blog post
- 14.🖌️ Which CSS property makes letters bigger? (a) font-family (b) font-size (c) font-weight (d) text-align
- 15.♿ A part of the page is under a <h2> heading. Which tag should its sub-heading use? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
- 16.Which colour pair is hard to read? (a) white on black (b) light grey on white (c) dark grey on white (d) black on white
-
17.⚖️ What colour is the text of this element?
<p class="note" id="top">Hi</p>
CSS:
p { color: black; }
p { color: yellow; } (a) black (b) orange (c) red (d) yellow - 18.Which of these is true of a web server? (a) turns HTML into a page (b) colours code to help us (c) hosts websites online (d) has an address bar
-
19.🔗 Which words do you click on?
<a href="quiz.html">Visit the site</a> (a) quiz.html (b) href (c) Maths fun (d) Visit the site - 20.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) an attribute (d) a closing tag
- 21.🌍 Which one asks for a web page? (a) HTTPS (b) the browser (c) the server (d) the URL
- 22.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h6>? (a) <h5> (b) <h3> (c) <h2> (d) <h6>
- 23.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <h1> (d) <p>
-
24.🔍 One closing tag is missing. Which one?
<h1>Cricket is fun.
<i>The red kite</i>
<h2>My best friend</h2> (a) </i> (b) </h2> (c) </em> (d) </h1> - 25.🔐 Is Chai$Cup_19x a strong or a weak password? (a) strong (b) weak
- 26.🌍 Which one is the page’s address? (a) the browser (b) the URL (c) the server (d) HTTPS
- 27.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
- 28.Which of these is the content? (a) the line round the box (b) space inside the border (c) the text or picture (d) the gap to other boxes
-
29.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 600px) {
p {
font-size: 28px;
}
} - 30.🚀 Which file should this code go in: <img src="cat.png"> (a) style.css (b) index.html (c) script.js
- 31.🧭 Which semantic tag sits at the bottom? (a) <footer> (b) <nav> (c) <aside> (d) <header>
-
32.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>The red kite</p>
<p>Fun facts</p>
<p>Fun facts</p> -
33.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>My pets</p>
<!-- <p>Our school trip</p> --> - 34.♿ Which link text is clearest? (a) Read the fruit facts (b) here (c) click here (d) link
- 35.🌍 Which one stores the site’s files? (a) HTTPS (b) the URL (c) the server (d) the browser
- 36.📝 Which input type lets you tick many? (a) date (b) checkbox (c) password (d) text
- 37.🚀 Which file should this code go in: alert(score); (a) script.js (b) style.css (c) index.html
- 38.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a alt="about.html"> (c) <link about.html> (d) <a href="about.html">
-
39.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) My drawings (b) index.html (c) My Hobbies (d) I like to read. - 40.🌈 Which colour of light is strongest in rgb(22, 85, 176)? (a) blue (b) red (c) green
Answer key
- 350
- if
- cyan
- safe
- Class 7 Blog
- <ol>
- <h1>
- red
- 2
- 21
- in the body
- 6
- sits at the bottom
- font-size
- <h3>
- light grey on white
- yellow
- hosts websites online
- Visit the site
- an attribute
- the browser
- <h6>
- <h6>
- </h1>
- strong
- the URL
- <ul>
- the text or picture
- 28
- index.html
- <footer>
- 1
- 1
- Read the fruit facts
- the server
- checkbox
- script.js
- <a href="about.html">
- My Hobbies
- blue
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids