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 semantic tag holds copyright notes? (a) <aside> (b) <main> (c) <footer> (d) <header>
-
2.🔍 One closing tag is missing. Which one?
<em>My pets</em>
<h2>Fun facts</h2>
<h1>Rain today (a) </em> (b) </h1> (c) </p> (d) </h2> -
3.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets -
4.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Litchi</li>
</ul> (a) bullets (b) numbers - 5.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 6.🌐 Which one shows pages from the web? (a) a web server (b) a code editor (c) a web browser
- 7.True or false: <br> has a closing tag. (a) True (b) False
-
8.⚖️ What colour is the text of this element?
<h1 class="note" id="hero">Hi</h1>
CSS:
.note { color: yellow; }
.note { color: white; } (a) black (b) white (c) yellow (d) purple -
9.📝 How many <input> tags are in this form?
<form>
<input type="number">
<input type="email">
<input type="password">
<input type="text">
<input type="submit" value="Send">
</form> -
10.⚖️ What colour is the text of this element?
<h2 class="menu" id="logo">Hi</h2>
CSS:
.menu { color: red; }
#logo { color: blue; }
h2 { color: green; } (a) orange (b) red (c) blue (d) green - 11.🎯 Which element does the selector #top style? (a) <li class="top"> (b) <div class="note"> (c) <li id="intro"> (d) <li id="top">
-
12.🖌️ What colour are the letters?
li {
background-color: yellow;
color: blue;
font-size: 16px;
text-align: left;
} (a) blue (b) yellow (c) white -
13.🖌️ Where does the text sit on its line?
p {
font-size: 36px;
text-align: left;
color: red;
background-color: blue;
} (a) on the right (b) on the left (c) in the middle - 14.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <a> (d) <style>
- 15.Which of these does JavaScript do? (a) adds space around boxes (b) changes the text size (c) changes the page live (d) makes a link
- 16.📄 Where does the text of <title> appear? (a) in a big heading (b) nowhere (c) on the browser tab (d) at the bottom
- 17.🌍 Which one asks for a web page? (a) the URL (b) the server (c) HTTPS (d) the browser
- 18.📊 In a table, which tag is a row? (a) <tr> (b) <th> (c) <tb> (d) <td>
- 19.🏷️ Which is the closing tag for <strong>? (a) </strong> (b) <\strong> (c) <strong> (d) <strong/>
-
20.✍️ Which property is set to red in this rule?
h2 {
color: red;
width: 300px;
} (a) text-align (b) color (c) font-size (d) red - 21.📝 Which tag gives a form box a name you can click? (a) <h1> (b) <label> (c) <title> (d) <hr>
- 22.🎨 What does CSS stand for? (a) Computer Style Sheets (b) Colourful Site Styles (c) Creative Sheet System (d) Cascading Style Sheets
- 23.🔢 In a basic web page file, which comes first: “<head>” or “<html>”? (a) <html> (b) <head>
- 24.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dot . (d) a dollar $
- 25.🚀 Where in index.html does the link to style.css go? (a) inside a <p> (b) in the footer (c) in the head (d) after </html>
- 26.⚡ Where does console.log() show its output? (a) in the address bar (b) on the title bar (c) on the printer (d) in the console
- 27.🔍 Which is the odd one out? (a) adds space around boxes (b) puts a picture on a page (c) sets colours and fonts (d) lays out the page
- 28.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
- 29.⚡ Which word makes a new variable? (a) make (b) let (c) put (d) give
-
30.💪 How wide (px) is each gap between two boxes?
.row {
display: flex;
width: 350px;
justify-content: space-between;
}
Inside are 4 boxes, each 50px wide (no margins). -
31.🖌️ What colour are the letters?
h1 {
text-align: left;
background-color: yellow;
font-size: 40px;
color: orange;
} (a) blue (b) orange (c) yellow - 32.🔍 Which is the odd one out? (a) makes a form box (b) makes a link (c) gives the page structure (d) reacts to a button click
-
33.✍️ How many declarations (property: value pairs) are in this rule?
p {
text-align: center;
font-weight: bold;
color: red;
} - 34.🧭 Why use <nav> instead of <div> for a menu? (a) it tells its meaning (b) it adds pictures (c) it loads faster (d) it makes text red
-
35.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
p {
font-size: 20px;
}
@media (min-width: 1024px) {
p {
font-size: 24px;
}
} - 36.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 37.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
-
38.🖌️ What colour is behind the letters?
li {
background-color: black;
text-align: left;
font-size: 36px;
color: red;
} (a) red (b) yellow (c) black -
39.✍️ What value is given to margin in this rule?
h2 {
font-size: 20px;
margin: 10px;
text-align: center;
} (a) bold (b) 8px (c) 10px (d) margin - 40.True or false: a code editor turns HTML into a page. (a) False (b) True
Answer key
- <footer>
- </h1>
- bullets
- bullets
- a closing tag
- a web browser
- False
- white
- 5
- blue
- <li id="top">
- blue
- on the left
- <a>
- changes the page live
- on the browser tab
- the browser
- <tr>
- </strong>
- color
- <label>
- Cascading Style Sheets
- <html>
- a slash /
- in the head
- in the console
- puts a picture on a page
- in the head
- let
- 50
- orange
- reacts to a button click
- 3
- it tells its meaning
- 20
- Yes
- <ol>
- black
- 10px
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids