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 text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>Hello, world!</p>
<p>I love mangoes.</p>
<p>Good morning!</p> (a) The red kite (b) Hello, world! (c) I love mangoes. (d) Good morning! - 2.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h6> (b) <h2> (c) <h1> (d) <h5>
-
3.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Sky is blue</p> - 4.🎯 Which element does the selector p style? (a) <h2 class="big"> (b) <li id="top"> (c) <p class="big"> (d) <h1>
-
5.📊 How many rows does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
<tr><td>Guava</td><td>Orange</td><td>Papaya</td></tr>
<tr><td>Banana</td><td>Litchi</td><td>Grapes</td></tr>
</table> - 6.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a new line (b) as a dot (c) as 5 spaces (d) as one space
- 7.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <li> (c) <ol>
- 8.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) DNS finds the server (c) the server sends files (d) you type the URL
- 9.🔗 Which tag makes a clickable link? (a) <a> (b) <img> (c) <p> (d) <link>
- 10.True or false: <ul> is an empty tag. (a) True (b) False
- 11.🔒 What does the lock (HTTPS) in the address bar mean? (a) the site is free (b) the data is scrambled (c) the site is fast (d) the site is a game
-
12.🖌️ How big is the text, in px?
p {
background-color: green;
text-align: right;
font-size: 32px;
color: yellow;
} - 13.🏷️ Which is the closing tag for <i>? (a) <i> (b) <i/> (c) </i> (d) <\i>
- 14.🔐 Is 111111 a strong or a weak password? (a) strong (b) weak
- 15.🌐 Which one has an address bar? (a) a web server (b) a code editor (c) a web browser
- 16.♿ Does this help everyone, or make the page harder to use: use headings in order? (a) helps everyone (b) makes it harder
- 17.⚖️ Two rules with the same selector set a colour. Which one wins? (a) neither (b) the first one (c) the later one (d) the shorter one
-
18.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h4>Our school trip</h4>
<h2>The red kite</h2> -
19.🔁 What does this code print?
let marks = 36;
if (marks < 44) {
console.log("Pass");
} else {
console.log("Try again");
} (a) Try again (b) Pass - 20.💪 Which justify-content value puts boxes in the middle? (a) space-between (b) flex-end (c) flex-start (d) center
- 21.✍️ CSS declarations go inside which brackets? (a) < > (b) { } (c) [ ] (d) ( )
-
22.⚖️ What colour is the text of this element?
<h1 class="note" id="end">Hi</h1>
CSS:
#end { color: white; }
#end { color: yellow; } (a) yellow (b) blue (c) white (d) green - 23.🚀 Which file should this code go in: console.log(5 + 2); (a) index.html (b) style.css (c) script.js
- 24.🔢 To build and share your first web page, which comes first: “publish it online” or “write the HTML”? (a) write the HTML (b) publish it online
- 25.True or false: <ul> goes in the head. (a) False (b) True
- 26.🎯 What kind of selector is #logo? (a) an element selector (b) a class selector (c) an id selector
-
27.🌍 What is the domain name in this URL?
http://kids.example.org/index.html (a) http (b) kids.example.org (c) school.example.in (d) /index.html - 28.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
- 29.True or false: a web server is where we type code. (a) True (b) False
- 30.Which of these does JavaScript do? (a) rounds box corners (b) checks a quiz answer (c) makes headings and lists (d) sets colours and fonts
-
31.📊 How many cells are in each row?
<table>
<tr><td>Jamun</td><td>Jamun</td><td>Banana</td></tr>
<tr><td>Mango</td><td>Papaya</td><td>Papaya</td></tr>
</table> - 32.🖌️ Which CSS property picks the font style? (a) font-weight (b) text-align (c) font-family (d) font-size
- 33.📊 Which tag holds the whole table? (a) <caption> (b) <tr> (c) <td> (d) <table>
- 34.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
- 35.📦 In the box model, which part is the text or picture? (a) border (b) padding (c) content (d) margin
- 36.🔍 Which is the odd one out? (a) checks a quiz answer (b) gives the page structure (c) makes a link (d) puts a picture on a page
- 37.🌗 Is light grey on white easy or hard to read? (a) easy to read (b) hard to read
- 38.🎯 What kind of selector is body? (a) a class selector (b) an id selector (c) an element selector
- 39.🌈 In #0000d0 the blue part is the hex number d0. What is it as a normal number?
- 40.🌐 Which one answers page requests? (a) a code editor (b) a web browser (c) a web server
Answer key
- The red kite
- <h1>
- 2
- <p class="big">
- 3
- as one space
- <li>
- you type the URL
- <a>
- False
- the data is scrambled
- 32
- </i>
- weak
- a web browser
- helps everyone
- the later one
- 3
- Pass
- center
- { }
- yellow
- script.js
- write the HTML
- False
- an id selector
- kids.example.org
- on the browser tab
- False
- checks a quiz answer
- 3
- font-family
- <table>
- <ol>
- content
- checks a quiz answer
- hard to read
- an element selector
- 208
- a web server
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids