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 heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h3> (b) <h2> (c) <h1> (d) <h6>
-
2.🔁 What does this code print?
let age = 46;
if (age < 22) {
console.log("teen");
} else {
console.log("child");
} (a) teen (b) child - 3.🔐 Is riya2014 a strong or a weak password? (a) weak (b) strong
- 4.Which of these is an opening tag? (a) </body> (b) <h1> (c) </title> (d) </h1>
- 5.🖼️ Which tag puts a picture on a page? (a) <img> (b) <pic> (c) <p> (d) <a>
- 6.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
-
7.📋 Does this list show bullets or numbers?
<ul>
<li>Banana</li>
<li>Orange</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers - 8.🌗 Is dark grey on white easy or hard to read? (a) easy to read (b) hard to read
- 9.Which of these is true of a web browser? (a) hosts websites online (b) turns HTML into a page (c) colours code to help us (d) saves our .html files
-
10.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h4>The red kite</h4>
<p>The red kite</p>
<p>My pets</p>
<p>Fun facts</p> - 11.Which of these is a closing tag? (a) <body> (b) <p> (c) </title> (d) <li>
-
12.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Play games</a> (a) in a new tab (b) in the same tab - 13.🧭 Is <main> semantic or not semantic? (a) semantic (b) not semantic
- 14.Which of these is true of a web browser? (a) sends pages over the net (b) hosts websites online (c) opens web pages for us (d) shows line numbers
- 15.⚡ What does JavaScript add to a web page? (a) only colours (b) the page title (c) the domain name (d) actions and changes
- 16.✍️ Which sign ends each CSS declaration? (a) . (b) ; (c) : (d) ,
-
17.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p>
<p>I love mangoes.</p>
<!-- <p>The red kite</p> --> -
18.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="50"> - 19.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h5> or <h2>? (a) <h1> (b) <h2> (c) <h6> (d) <h5>
- 20.🌈 Which hex code is magenta? (a) #00ff00 (b) #ff0000 (c) #ff00ff (d) #0000ff
- 21.Which of these is true of <aside>? (a) helps you move around (b) sits at the very top (c) holds a news story (d) holds a side box of tips
-
22.⚡ What number does this code print?
let a = 48;
let b = 3;
console.log(a + b); -
23.🖌️ How big is the text, in px?
li {
color: orange;
background-color: blue;
text-align: right;
font-size: 20px;
} - 24.📄 Which part holds everything you see on the page? (a) the body (b) the doctype (c) the title (d) the head
- 25.🔍 Which is the odd one out? (a) colours code to help us (b) saves our .html files (c) shows pages from the web (d) shows line numbers
- 26.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <head> (d) <html>
- 27.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) script.js (b) index.html (c) style.css
- 28.True or false: to log out on shared PCs is not safe. (a) False (b) True
- 29.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 1000 (c) 255 (d) 99
- 30.⚡ A JavaScript file usually ends with which extension? (a) .jpg (b) .css (c) .html (d) .js
-
31.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="350"> -
32.📱 The screen is 320px wide. Does the rule inside @media apply?
p {
font-size: 16px;
}
@media (max-width: 768px) {
p {
font-size: 10px;
}
} (a) No (b) Yes - 33.🧩 Which language reacts to a button click? (a) CSS (b) HTML (c) JavaScript
- 34.🚀 Which file is best for code that reacts to clicks? (a) style.css (b) notes.txt (c) script.js (d) index.html
- 35.📝 What does <br> do? (a) makes a list (b) adds a picture (c) starts a new line (d) makes text bold
- 36.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) element (c) editor (d) address
- 37.🏷️ Which is the closing tag for <b>? (a) <b> (b) <b/> (c) </b> (d) <\b>
- 38.🌐 Which one saves our .html files? (a) a web server (b) a web browser (c) a code editor
- 39.🔢 To build and share your first web page, which comes first: “write the HTML” or “plan what to show”? (a) plan what to show (b) write the HTML
-
40.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>I like to read.</p>
</body>
</html> (a) Easy snacks (b) I like to read. (c) Class 7 Blog (d) body
Answer key
- <h1>
- child
- weak
- <h1>
- <img>
- hard to read
- bullets
- easy to read
- turns HTML into a page
- 2
- </title>
- in a new tab
- semantic
- opens web pages for us
- actions and changes
- ;
- 2
- 50
- <h1>
- #ff00ff
- holds a side box of tips
- 51
- 20
- the body
- shows pages from the web
- <!DOCTYPE html>
- style.css
- False
- 255
- .js
- 350
- Yes
- JavaScript
- script.js
- starts a new line
- element
- </b>
- a code editor
- plan what to show
- Easy snacks
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids