HTML Worksheet: Practice Test
Code tip (Read the code like a browser): Find the topic of the question: tags, headings, lists, links, images, structure or comments. Read the code line by line, the way a browser would. Count carefully: tags opened and closed, items, lines, paragraphs.
NameDateTime takenScore ___ / 40
- 1.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h5>? (a) <h2> (b) <h1> (c) <h5> (d) <h4>
- 2.True or false: <ul> goes in the head. (a) False (b) True
- 3.True or false: a web browser shows line numbers. (a) True (b) False
-
4.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Guava</li>
<li>Litchi</li>
</ol> - 5.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h1>? (a) <h2> (b) <h5> (c) <h1> (d) <h4>
- 6.🏷️ Which is the closing tag for <h1>? (a) </h1> (b) <h1> (c) <\h1> (d) <h1/>
- 7.True or false: a web browser saves our .html files. (a) False (b) True
-
8.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="150"> - 9.True or false: a web browser sends pages over the net. (a) False (b) True
-
10.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="300"> (a) A red kite (b) kite.png (c) Map of India (d) width -
11.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Planets</h1>
<p>Try this poha.</p>
</body>
</html> (a) Try this poha. (b) body (c) Planets (d) Riya’s Recipes - 12.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) hosts websites online (d) opens web pages for us
-
13.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<!-- <p>Our school trip</p> -->
<p>My best friend</p>
<p>Rain today</p>
<p>The red kite</p> -
14.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>Hello, world!</p>
<p>Rain today</p>
<!-- <p>Cricket is fun.</p> --> (a) Rain today (b) Cricket is fun. (c) Hello, world! (d) Fun facts -
15.📋 How many items does this list show?
<ul>
<li>Guava</li>
<li>Litchi</li>
<li>Banana</li>
<li>Orange</li>
</ul> - 16.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
- 17.🌐 Which one colours code to help us? (a) a code editor (b) a web server (c) a web browser
-
18.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="250"> (a) A happy dog (b) Birthday cake (c) width (d) cake.jpg -
19.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
<p>Good morning!</p>
<!-- <p>Rain today</p> -->
<p>My pets</p> - 20.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
- 21.Which of these is a closing tag? (a) <h1> (b) </h1> (c) <title> (d) <b>
- 22.📋 Which list tag is an unordered list? (a) <li> (b) <ul> (c) <ol>
- 23.True or false: <li> is one item of a list. (a) True (b) False
- 24.🌐 Which one turns HTML into a page? (a) a code editor (b) a web browser (c) a web server
-
25.🔍 One closing tag is missing. Which one?
<p>My pets
<i>Hello, world!</i>
<b>My best friend</b> (a) </b> (b) </h1> (c) </i> (d) </p> -
26.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Orange</li>
</ul> - 27.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <body> (c) </body> (d) <!DOCTYPE html>
- 28.True or false: <ul> is an unordered list. (a) True (b) False
- 29.🔍 Which is the odd one out? (a) opens web pages for us (b) has an address bar (c) hosts websites online (d) turns HTML into a page
-
30.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Papaya</li>
<li>Banana</li>
</ul> (a) bullets (b) numbers -
31.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red<br>Birds sing<br>Sky is blue</p> - 32.True or false: in <img>, alt describes the picture. (a) True (b) False
- 33.Which of these has a closing tag? (a) <br> (b) <title> (c) <input> (d) <hr>
-
34.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Stars shine<br>Birds sing</p> -
35.📋 Does this list show bullets or numbers?
<ol>
<li>Banana</li>
<li>Litchi</li>
</ol> (a) bullets (b) numbers - 36.Which of these goes in the head? (a) <a> (b) <p> (c) <link rel="stylesheet"> (d) <ul>
-
37.🔗 Which address opens when you click this link?
<a href="about.html">Play games</a> (a) contact.html (b) https://example.com (c) Play games (d) about.html -
38.🔗 Where does this link open?
<a href="news.html" target="_blank">School news</a> (a) in the same tab (b) in a new tab - 39.Which of these is an opening tag? (a) </b> (b) <b> (c) </p> (d) </body>
- 40.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a dot . (c) a hash # (d) a slash /
Answer key
- <h5>
- False
- False
- 3
- <h1>
- </h1>
- False
- 150
- False
- A red kite
- Planets
- opens web pages for us
- 4
- Cricket is fun.
- 4
- in the head
- a code editor
- Birthday cake
- 3
- <h1>
- </h1>
- <ul>
- True
- a web browser
- </p>
- 2
- </html>
- True
- hosts websites online
- bullets
- 4
- True
- <title>
- 3
- numbers
- <link rel="stylesheet">
- about.html
- in a new tab
- <b>
- a slash /
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids