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 tag goes around each item of a list? (a) <ol> (b) <p> (c) <li> (d) <ul>
-
2.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="200"> (a) moon.png (b) bus.jpg (c) fort.jpg (d) The full moon -
3.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Banana</li>
<li>Jamun</li>
<li>Guava</li>
<li>Grapes</li>
<li>Papaya</li>
</ol> - 4.True or false: a web server shows line numbers. (a) False (b) True
-
5.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Papaya</li>
</ol> -
6.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Sky is blue<br>Roses are red</p> -
7.🔗 Which address opens when you click this link?
<a href="news.html">School news</a> (a) games.html (b) quiz.html (c) School news (d) news.html -
8.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="300"> (a) An old fort (b) fort.jpg (c) kite.png (d) tiger.jpg - 9.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
-
10.📋 What number does the browser show next to “Orange”?
<ol start="4">
<li>Litchi</li>
<li>Orange</li>
<li>Grapes</li>
<li>Guava</li>
</ol> - 11.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
- 12.True or false: <ol> goes inside ul or ol. (a) False (b) True
- 13.🔗 Which attribute holds the address of a link? (a) id (b) src (c) alt (d) href
- 14.True or false: HTML on its own cannot count button clicks. (a) False (b) True
- 15.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 16.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
- 17.Which of these goes in the head? (a) <ul> (b) <table> (c) <style> (d) <img>
-
18.🔍 One closing tag is missing. Which one?
<b>My pets
<strong>Rain today</strong>
<h2>Good morning!</h2> (a) </h2> (b) </strong> (c) </b> (d) </h1> -
19.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="150"> - 20.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="50"> (a) A red kite (b) Map of India (c) kite.png (d) width - 22.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h4> or <h6>? (a) <h4> (b) <h6> (c) <h3> (d) <h5>
-
23.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red<br>Stars shine<br>Sky is blue</p> -
24.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="350"> -
25.💬 How many paragraphs show on the page?
<p>The red kite</p>
<p>Rain today</p>
<!-- <p>Our school trip</p> --> - 26.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h1> or <h3>? (a) <h2> (b) <h1> (c) <h4> (d) <h3>
- 27.Which of these is true of a code editor? (a) shows line numbers (b) opens web pages for us (c) has an address bar (d) sends pages over the net
- 28.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <li> (c) <ol>
-
29.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Papaya</li>
<li>Litchi</li>
</ol> (a) numbers (b) bullets - 30.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <p> (d) <h1>
- 31.Which of these is an empty tag? (a) <h1> (b) <img> (c) <b> (d) <p>
-
32.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red</p> - 33.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
34.🔗 Which address opens when you click this link?
<a href="art.html">Take the quiz</a> (a) art.html (b) news.html (c) quiz.html (d) Take the quiz -
35.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<p>Fun facts</p>
<p>I love mangoes.</p>
<!-- <p>Good morning!</p> -->
<p>My best friend</p> - 36.📝 What does <hr> draw? (a) a link (b) a table (c) a line across the page (d) a picture
- 37.True or false: <style> goes in the body. (a) False (b) True
- 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
-
39.🔗 Which words do you click on?
<a href="games.html">Art corner</a> (a) Art corner (b) School news (c) games.html (d) href - 40.🔠 Are headings shown in bold by default? (a) Yes (b) No
Answer key
- <li>
- moon.png
- 6
- False
- 2
- 3
- news.html
- fort.jpg
- a web browser
- 5
- True
- False
- href
- True
- an empty tag
- <ol>
- <style>
- </b>
- 150
- an opening tag
- A red kite
- <h3>
- 4
- 350
- 2
- <h4>
- shows line numbers
- <ol>
- numbers
- <h6>
- <img>
- 2
- an opening tag
- art.html
- 4
- a line across the page
- False
- a slash /
- Art corner
- Yes
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids