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.⚖️ What colour is the text of this element?
<p class="big" id="intro">Hi</p>
CSS:
p { color: green; }
p { color: blue; } (a) blue (b) green (c) black (d) red - 2.🧩 Which language makes headings and lists? (a) CSS (b) JavaScript (c) HTML
- 3.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
-
4.📊 How many rows does this table have?
<table>
<tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
<tr><td>Papaya</td><td>Jamun</td><td>Orange</td><td>Litchi</td></tr>
<tr><td>Orange</td><td>Papaya</td><td>Mango</td><td>Mango</td></tr>
<tr><td>Jamun</td><td>Mango</td><td>Jamun</td><td>Papaya</td></tr>
</table> -
5.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Good morning!</p>
<p>The red kite</p>
<!-- <p>Fun facts</p> --> -
6.📊 How many cells are in each row?
<table>
<tr><td>Orange</td><td>Grapes</td></tr>
<tr><td>Banana</td><td>Jamun</td></tr>
<tr><td>Papaya</td><td>Litchi</td></tr>
<tr><td>Papaya</td><td>Papaya</td></tr>
</table> - 7.🌈 Which colour of light is strongest in rgb(58, 184, 58)? (a) blue (b) red (c) green
-
8.🔗 Which address opens when you click this link?
<a href="news.html">Take the quiz</a> (a) news.html (b) quiz.html (c) games.html (d) Take the quiz - 9.📱 Which tag helps phones show a page at the right size? (a) the title tag (b) the viewport meta tag (c) the hr tag (d) the br tag
- 10.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <p> (c) inside the <head> (d) inside a <tr>
-
11.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 300px;
padding: 15px;
border: 1px solid black;
margin: 10px;
} - 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) Z (c) G (d) J
- 13.Which of these is a weak password? (a) Rain#Drop_42! (b) Kite_Fl1es@Dawn (c) Mango#Kite29! (d) password
-
14.⚖️ What colour is the text of this element?
<p class="red" id="hero">Hi</p>
CSS:
#hero { color: orange; }
p { color: yellow; } (a) yellow (b) black (c) blue (d) orange -
15.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Kites fly high<br>Roses are red<br>Stars shine</p> - 16.✍️ Which sign goes between a property and its value? (a) - (b) : (c) ; (d) =
- 17.🔢 To build and share your first web page, which comes first: “publish it online” or “test in a browser”? (a) test in a browser (b) publish it online
-
18.🌍 What is the protocol in this URL?
https://www.example.net/news/today.html (a) /news/today.html (b) https (c) http (d) www.example.net -
19.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
.box {
width: 180px;
padding: 25px;
border: 4px solid black;
margin: 20px;
} - 20.🌐 Which one answers page requests? (a) a web server (b) a web browser (c) a code editor
- 21.📝 What do we need to write HTML? (a) a microphone (b) a paintbrush (c) a plain text editor (d) a printer
-
22.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Jamun</li>
<li>Banana</li>
<li>Orange</li>
<li>Litchi</li>
<li>Mango</li>
</ol> -
23.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="250"> (a) Our school bus (b) The full moon (c) moon.png (d) width - 24.What does font-weight do? (a) centres a heading (b) makes the text bold (c) picks the font style (d) makes letters bigger
- 25.True or false: a code editor hosts websites online. (a) False (b) True
-
26.🖌️ How big is the text, in px?
p {
background-color: green;
color: red;
font-size: 16px;
text-align: right;
} - 27.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h2> (d) <h5>
- 28.🛡️ Online: is it safe to keep passwords secret? (a) safe (b) not safe
- 29.True or false: in <img>, alt names the picture file. (a) False (b) True
- 30.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a href="about.html">
- 31.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h6> (c) <h1> (d) <br>
- 32.True or false: <input type="email"> is for an email address. (a) False (b) True
- 33.🎯 What kind of selector is .note? (a) a class selector (b) an element selector (c) an id selector
- 34.🔗 What does HyperText mean? (a) secret text (b) text in colour (c) text with links (d) very big text
-
35.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Orange</li>
</ol> (a) bullets (b) numbers - 36.⚡ Which JavaScript word makes a new variable? (a) console.log() (b) let (c) if (d) alert()
- 37.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
-
38.📝 How many <input> tags are in this form?
<form>
<input type="number">
<input type="email">
<input type="checkbox">
<input type="text">
<input type="date">
<input type="submit" value="Send">
</form> - 39.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
- 40.🚀 Which file should this code go in: alert(score); (a) script.js (b) style.css (c) index.html
Answer key
- blue
- HTML
- hard to read
- 4
- 2
- 2
- green
- news.html
- the viewport meta tag
- inside a <tr>
- 352
- F
- password
- orange
- 4
- :
- test in a browser
- https
- 238
- a web server
- a plain text editor
- 6
- The full moon
- makes the text bold
- False
- 16
- <h2>
- safe
- False
- <a href="about.html">
- <h1>
- True
- a class selector
- text with links
- numbers
- let
- the body
- 6
- in the body
- script.js
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids