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 JavaScript word makes a new variable? (a) let (b) for (c) console.log() (d) alert()
- 2.📊 Where do <td> cells go? (a) inside a <li> (b) inside the <head> (c) inside a <tr> (d) inside a <p>
-
3.📱 The screen is 540px wide. Does the rule inside @media apply?
p {
font-size: 12px;
}
@media (max-width: 768px) {
p {
font-size: 6px;
}
} (a) No (b) Yes -
4.📄 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) Class 7 Blog (b) Easy snacks (c) body (d) I like to read. - 5.Which of these goes in the head? (a) <link rel="stylesheet"> (b) <h1> (c) <p> (d) <ul>
- 6.🚀 Which file should this code go in: <h1>My Site</h1> (a) script.js (b) style.css (c) index.html
- 7.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h1>
-
8.🔗 Which words do you click on?
<a href="art.html">Art corner</a> (a) School news (b) art.html (c) Art corner (d) href - 9.True or false: <input type="email"> is for one line of words. (a) True (b) False
- 10.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h3>? (a) <h6> (b) <h3> (c) <h1> (d) <h2>
- 11.📝 What does <br> do? (a) adds a picture (b) makes a list (c) makes text bold (d) starts a new line
-
12.🖌️ Where does the text sit on its line?
h1 {
text-align: left;
font-size: 16px;
background-color: yellow;
color: white;
} (a) in the middle (b) on the left (c) on the right -
13.🔁 What is the LAST number this code prints?
for (let i = 0; i < 8; i = i + 4) {
console.log(i);
} - 14.🧭 Which semantic tag holds a news story? (a) <header> (b) <main> (c) <footer> (d) <article>
- 15.📱 Responsive design means a page ___. (a) never changes (b) has no pictures (c) fits every screen (d) is only for laptops
- 16.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) publish it online (b) add CSS styles (c) test in a browser (d) write the HTML
-
17.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 200px;
justify-content: flex-start;
}
Inside are 3 boxes, each 60px wide (no margins). - 18.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <h1> (d) <style>
- 19.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) red (c) white (d) blue
- 20.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to make links (d) to add colour
- 21.True or false: <tr> makes one table row. (a) False (b) True
- 22.True or false: “colour as the only clue” makes the page harder to use. (a) False (b) True
- 23.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) </h2> (c) <h2/> (d) <h2>
- 24.True or false: <main> holds copyright notes. (a) True (b) False
-
25.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 90px;
padding: 10px;
border: 1px solid black;
margin: 0px;
} - 26.🎯 Which element does the selector #top style? (a) <h2 class="note"> (b) <h1 id="intro"> (c) <h1 id="top"> (d) <h1 class="top">
- 27.📋 Which list suits a shopping list in any order? (a) <ol> (b) <br> (c) <hr> (d) <ul>
- 28.🎯 What kind of selector is #end? (a) a class selector (b) an element selector (c) an id selector
-
29.⚖️ What colour is the text of this element?
<p class="note" id="logo">Hi</p>
CSS:
#logo { color: white; }
.note { color: yellow; } (a) white (b) black (c) purple (d) yellow - 30.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 31.True or false: <th> holds the whole table. (a) True (b) False
- 32.💬 Does the browser show comments on the page? (a) Yes (b) No
- 33.🌍 Which one scrambles data on its way? (a) the server (b) the browser (c) the URL (d) HTTPS
-
34.📊 How many cells are in each row?
<table>
<tr><th>Name</th><th>Fruit</th></tr>
<tr><td>Jamun</td><td>Papaya</td></tr>
<tr><td>Guava</td><td>Banana</td></tr>
</table> - 35.True or false: <ul> is one item of a list. (a) False (b) True
- 36.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h3> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h3>
- 37.🌍 Which one shows the page to you? (a) the URL (b) HTTPS (c) the server (d) the browser
-
38.💬 Which text will NOT show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Hello, world!</p>
<p>Our school trip</p> (a) Our school trip (b) Hello, world! (c) Cricket is fun. -
39.🔗 Where does this link open?
<a href="games.html">School news</a> (a) in the same tab (b) in a new tab -
40.🔗 Where does this link open?
<a href="news.html">School news</a> (a) in the same tab (b) in a new tab
Answer key
- let
- inside a <tr>
- Yes
- Easy snacks
- <link rel="stylesheet">
- index.html
- <h1>
- Art corner
- False
- <h1>
- starts a new line
- on the left
- 4
- <article>
- fits every screen
- write the HTML
- 20
- <h1>
- blue
- to leave notes
- True
- True
- </h2>
- False
- 112
- <h1 id="top">
- <ul>
- an id selector
- white
- an opening tag
- False
- No
- HTTPS
- 2
- False
- <h3>
- the browser
- Cricket is fun.
- in the same tab
- in the same tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids