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: HTML changes the text size. (a) True (b) False
-
2.🔍 One closing tag is missing. Which one?
<em>My pets
<u>Cricket is fun.</u>
<small>I love mangoes.</small> (a) </u> (b) </h1> (c) </small> (d) </em> -
3.📦 How much space across (px) does this box take in all, margin included?
.box {
width: 140px;
padding: 30px;
border: 1px solid black;
margin: 0px;
} - 4.🔍 Which is the odd one out? (a) lays out the page (b) adds space around boxes (c) sets colours and fonts (d) makes a link
-
5.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) My drawings (c) index.html (d) Cricket Club - 6.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 4 (d) 6
- 7.Which of these is a closing tag? (a) <h1> (b) </b> (c) <title> (d) <b>
- 8.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
- 9.True or false: <li> has a closing tag. (a) False (b) True
- 10.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
-
11.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Litchi</li>
<li>Banana</li>
<li>Mango</li>
<li>Guava</li>
</ol> - 12.What is <input type="password"> for? (a) lets you tick many (b) picks a day (c) hides what you type (d) takes only numbers
- 13.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) width (c) height (d) alt
- 14.📝 Which tag gives a form box a name you can click? (a) <title> (b) <label> (c) <hr> (d) <h1>
-
15.📊 How many cells are in each row?
<table>
<tr><td>Guava</td><td>Orange</td></tr>
<tr><td>Guava</td><td>Mango</td></tr>
<tr><td>Mango</td><td>Banana</td></tr>
<tr><td>Guava</td><td>Grapes</td></tr>
</table> - 16.🌐 Which one turns HTML into a page? (a) a code editor (b) a web browser (c) a web server
- 17.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h5> (b) <h6> (c) <h3> (d) <h1>
- 18.Which of these is true of a code editor? (a) turns HTML into a page (b) stores a website’s files (c) colours code to help us (d) shows pages from the web
- 19.True or false: <input> is an empty tag. (a) True (b) False
- 20.💪 Which flexbox property sets space between boxes? (a) justify-content (b) flex-direction (c) display: flex (d) gap
-
21.🌍 What is the domain name in this URL?
http://www.example.com/art/gallery.html (a) /art/gallery.html (b) http (c) kids.example.org (d) www.example.com -
22.🔍 One closing tag is missing. Which one?
<h3>The red kite</h3>
<h1>Cricket is fun.</h1>
<u>Hello, world! (a) </h1> (b) </u> (c) </h3> (d) </p> - 23.🌈 Which colour is #00ff00? (a) blue (b) red (c) bright green (d) black
-
24.🖌️ How big is the text, in px?
li {
background-color: green;
color: purple;
font-size: 36px;
text-align: right;
} - 25.Which of these is true of a web server? (a) saves our .html files (b) has an address bar (c) stores a website’s files (d) shows line numbers
- 26.✍️ Which sign ends each CSS declaration? (a) . (b) : (c) , (d) ;
- 27.📋 Which list tag is an ordered list? (a) <ul> (b) <ol> (c) <li>
-
28.🔍 One closing tag is missing. Which one?
<p>I love mangoes.</p>
<small>The red kite
<strong>Cricket is fun.</strong> (a) </p> (b) </small> (c) </h2> (d) </strong> -
29.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="350"> (a) cake.jpg (b) dog.jpg (c) Birthday cake (d) moon.png - 30.🔍 Which is the odd one out? (a) checks a quiz answer (b) reacts to a button click (c) changes the page live (d) gives the page structure
- 31.🔁 Which word runs code only when something is true? (a) for (b) if (c) let (d) log
- 32.🧭 Which semantic tag holds a news story? (a) <article> (b) <main> (c) <footer> (d) <header>
- 33.True or false: <style> goes in the head. (a) False (b) True
-
34.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="300"> - 35.📄 Can HTML on its own make headings? (a) Yes (b) No
- 36.📊 Which tag holds the whole table? (a) <table> (b) <tr> (c) <td> (d) <th>
- 37.True or false: <img> goes in the head. (a) True (b) False
-
38.📋 What number does the browser show next to “Guava”?
<ol>
<li>Papaya</li>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
<li>Orange</li>
</ol> - 39.⚡ Which JavaScript word makes a new variable? (a) console.log() (b) for (c) let (d) alert()
-
40.🔗 Which words do you click on?
<a href="https://example.com">Contact us</a> (a) Visit the site (b) href (c) Contact us (d) https://example.com
Answer key
- False
- </em>
- 202
- makes a link
- Cricket Club
- 6
- </b>
- 1
- True
- in the head
- 5
- hides what you type
- height
- <label>
- 2
- a web browser
- <h6>
- colours code to help us
- True
- gap
- www.example.com
- </u>
- bright green
- 36
- stores a website’s files
- ;
- <ol>
- </small>
- cake.jpg
- gives the page structure
- if
- <article>
- True
- 300
- Yes
- <table>
- False
- 2
- let
- Contact us
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids