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.True or false: <td> makes one data cell. (a) True (b) False
- 2.♿ Does this help everyone, or make the page harder to use: label every form box? (a) makes it harder (b) helps everyone
- 3.🛡️ Online: is it safe to share your password? (a) safe (b) not safe
- 4.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 5.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it bold (c) opens it in a new tab (d) makes it blank
- 6.⚖️ Two rules with the same selector set a colour. Which one wins? (a) neither (b) the later one (c) the shorter one (d) the first one
- 7.Which of these is true of a code editor? (a) stores a website’s files (b) shows line numbers (c) shows pages from the web (d) sends pages over the net
- 8.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 6 (c) 1 (d) 10
- 9.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <main> (b) <header> (c) <footer> (d) <nav>
- 10.🌗 Is white on dark blue easy or hard to read? (a) easy to read (b) hard to read
- 11.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 3 (c) 4 (d) 6
- 12.True or false: HTML on its own cannot make tables. (a) True (b) False
-
13.🔠 How many headings are in this code?
<h1>Rain today</h1>
<h4>The red kite</h4>
<h3>My pets</h3> -
14.🔁 What does this code print?
let temp = 7;
if (temp < 14) {
console.log("Hot");
} else {
console.log("Cool");
} (a) Cool (b) Hot - 15.💬 Why do coders write comments? (a) to make links (b) to show pictures (c) to add colour (d) to leave notes
- 16.🖌️ Which CSS property picks the font style? (a) font-family (b) background-color (c) color (d) font-weight
- 17.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <body> (d) <html>
-
18.🔍 One closing tag is missing. Which one?
<h3>Cricket is fun.
<b>Good morning!</b>
<h2>I love mangoes.</h2> (a) </i> (b) </h2> (c) </b> (d) </h3> -
19.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Orange</li>
</ol> - 20.📋 Which tag goes around each item of a list? (a) <p> (b) <ol> (c) <li> (d) <ul>
- 21.🧩 Which language gives the page structure? (a) JavaScript (b) CSS (c) HTML
-
22.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Papaya</li>
<li>Guava</li>
<li>Grapes</li>
</ul> - 23.🌈 In #010000 the red part is the hex number 01. What is it as a normal number?
- 24.🧩 Which language lays out the page? (a) CSS (b) HTML (c) JavaScript
-
25.🎯 Which CSS selector matches this element?
<div class="note" id="main">Hello</div> (a) div (b) span (c) .main (d) #logo - 26.📦 In the box model, which part is space inside the border? (a) content (b) margin (c) border (d) padding
-
27.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>My pets</p>
<p>I love mangoes.</p>
<p>Hello, world!</p> - 28.What does font-weight do? (a) picks the font style (b) sets the letter colour (c) makes the text bold (d) centres a heading
- 29.🎯 What kind of selector is .menu? (a) an id selector (b) an element selector (c) a class selector
-
30.🔗 Which words do you click on?
<a href="contact.html">Take the quiz</a> (a) href (b) contact.html (c) Take the quiz (d) Play games - 31.🧭 Which semantic tag holds the menu of links? (a) <main> (b) <footer> (c) <nav> (d) <aside>
-
32.✍️ Which property is set to 2px solid in this rule?
li {
font-weight: bold;
border: 2px solid;
color: red;
margin: 10px;
} (a) font-style (b) border (c) width (d) 2px solid - 33.🧭 Is <header> semantic or not semantic? (a) semantic (b) not semantic
- 34.Which of these is true of <article>? (a) holds a news story (b) helps you move around (c) sits at the very top (d) holds the logo and title
- 35.🌍 Which one stores the site’s files? (a) the browser (b) the URL (c) the server (d) HTTPS
-
36.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="150"> - 37.Which of these is an opening tag? (a) </p> (b) <p> (c) </title> (d) </body>
-
38.✍️ Which property is set to 300px in this rule?
li {
width: 300px;
font-weight: bold;
} (a) font-style (b) width (c) 300px (d) color -
39.📋 How many items does this list show?
<ul>
<li>Papaya</li>
<li>Banana</li>
<li>Mango</li>
<li>Grapes</li>
<li>Orange</li>
<li>Litchi</li>
</ul> - 40.📝 What do we need to write HTML? (a) a paintbrush (b) a printer (c) a plain text editor (d) a microphone
Answer key
- True
- helps everyone
- not safe
- has a closing tag
- opens it in a new tab
- the later one
- shows line numbers
- 1
- <header>
- easy to read
- 3
- False
- 3
- Hot
- to leave notes
- font-family
- <!DOCTYPE html>
- </h3>
- 2
- <li>
- HTML
- 4
- 1
- CSS
- div
- padding
- 1
- makes the text bold
- a class selector
- Take the quiz
- <nav>
- border
- semantic
- holds a news story
- the server
- 150
- <p>
- width
- 6
- a plain text editor
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids