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 paragraphs does this code make?
<p>Rain today</p>
<p>I love mangoes.</p>
<p>My best friend</p>
<h2>Good morning!</h2> - 2.🚀 Which file should this code go in: #top { color: blue; } (a) index.html (b) style.css (c) script.js
- 3.Which of these is true of <header>? (a) holds the main content (b) holds a side box of tips (c) holds copyright notes (d) holds the logo and title
- 4.🚀 Which file should this code go in: <h1>My Site</h1> (a) index.html (b) script.js (c) style.css
- 5.⚡ Which word makes a new variable? (a) give (b) put (c) make (d) let
- 6.True or false: a web browser shows line numbers. (a) True (b) False
-
7.📋 What number does the browser show next to “Orange”?
<ol>
<li>Grapes</li>
<li>Orange</li>
<li>Mango</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 8.True or false: <main> is the page’s key part. (a) False (b) True
- 9.Which of these has a closing tag? (a) <img> (b) <hr> (c) <p> (d) <br>
- 10.True or false: the border is the text or picture. (a) False (b) True
- 11.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h2>? (a) <h1> (b) <h3> (c) <h2> (d) <h5>
- 12.True or false: the server sends the page back. (a) False (b) True
-
13.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Our school trip</p>
<h2>Cricket is fun.</h2>
<p>The red kite</p>
<h2>Hello, world!</h2>
<h2>Hello, world!</h2> - 14.⚡ Which JavaScript word writes in the console? (a) for (b) if (c) console.log() (d) let
- 15.True or false: <h1>My Site</h1> goes in style.css. (a) True (b) False
- 16.🔢 When you open a web page, which comes FIRST? (a) DNS finds the server (b) the server sends files (c) you type the URL (d) the browser shows it
- 17.🌐 Which one is where we type code? (a) a web browser (b) a web server (c) a code editor
-
18.🔗 Which address opens when you click this link?
<a href="art.html">School news</a> (a) quiz.html (b) news.html (c) art.html (d) School news -
19.🔁 What does this code print?
let score = 18;
if (score >= 6) {
console.log("You win");
} else {
console.log("Play again");
} (a) Play again (b) You win - 20.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <ul> (c) <li>
-
21.📋 What number does the browser show next to “Guava”?
<ol>
<li>Papaya</li>
<li>Banana</li>
<li>Guava</li>
<li>Mango</li>
<li>Orange</li>
<li>Litchi</li>
</ol> - 22.📄 Can HTML on its own keep a high score? (a) Yes (b) No
- 23.🌍 Which one scrambles data on its way? (a) HTTPS (b) the URL (c) the browser (d) the server
- 24.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
25.💪 How much empty space (px) is left after the last box?
.row {
display: flex;
width: 180px;
justify-content: flex-start;
}
Inside are 3 boxes, each 40px wide (no margins). -
26.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Banana</li>
<li>Litchi</li>
<li>Guava</li>
<li>Mango</li>
</ol> - 27.🎯 How many elements on a page should have the same id? (a) 2 (b) any number (c) 1 (d) 5
- 28.🛡️ Online: is it safe to download from pop-ups? (a) safe (b) not safe
- 29.🌍 Which one sends the page back? (a) HTTPS (b) the browser (c) the URL (d) the server
-
30.🔍 Which line is missing its closing tag?
line 1: <p>My best friend</p>
line 2: <small>Rain today</small>
line 3: <u>Good morning! (a) line 3 (b) line 2 (c) line 1 -
31.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<h2>My pets</h2>
<h2>Rain today</h2> - 32.True or false: in <img>, src names the picture file. (a) False (b) True
- 33.True or false: <input type="number"> takes only numbers. (a) False (b) True
-
34.💪 How much empty space (px) is before the first box?
.row {
display: flex;
width: 360px;
justify-content: flex-end;
}
Inside are 3 boxes, each 100px wide (no margins). -
35.⚡ What number does this code print?
let coins = 9;
coins = coins + 6;
coins = coins - 12;
console.log(coins); -
36.⚖️ What colour is the text of this element?
<h1 class="box" id="logo">Hi</h1>
CSS:
.box { color: red; }
.box { color: green; } (a) black (b) orange (c) red (d) green - 37.🎨 Which tag connects an outside CSS file? (a) <css> (b) <a> (c) <img> (d) <link>
- 38.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
-
39.🌍 What is the domain name in this URL?
http://www.example.net/games/chess.html (a) www.example.net (b) learn.example.com (c) /games/chess.html (d) http - 40.✍️ Which sign goes between a property and its value? (a) : (b) ; (c) - (d) =
Answer key
- 3
- style.css
- holds the logo and title
- index.html
- let
- False
- 2
- True
- <p>
- False
- <h1>
- True
- 3
- console.log()
- False
- you type the URL
- a code editor
- art.html
- You win
- <li>
- 3
- No
- HTTPS
- has a closing tag
- 60
- 5
- 1
- not safe
- the server
- line 3
- 1
- True
- True
- 60
- 3
- green
- <link>
- in the head
- www.example.net
- :
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids