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.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
-
2.📋 What number does the browser show next to “Mango”?
<ol start="5">
<li>Banana</li>
<li>Mango</li>
<li>Guava</li>
<li>Grapes</li>
<li>Orange</li>
<li>Jamun</li>
</ol> - 3.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <body> (d) <!DOCTYPE html>
- 4.💬 Does the browser show comments on the page? (a) Yes (b) No
-
5.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Jamun</li>
</ol> - 6.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 7.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <br> (d) <ul>
-
8.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="350"> (a) width (b) A red kite (c) A tiger asleep (d) tiger.jpg - 9.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h4> or <h1>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
- 10.True or false: <hr> has a closing tag. (a) False (b) True
-
11.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) contact.html (b) About us (c) href (d) Play games - 12.Which of these is true of a web browser? (a) shows line numbers (b) is where we type code (c) colours code to help us (d) opens web pages for us
- 13.True or false: <ul> goes inside ul or ol. (a) True (b) False
- 14.📝 What does <hr> draw? (a) a table (b) a line across the page (c) a link (d) a picture
-
15.🔗 Which words do you click on?
<a href="about.html">School news</a> (a) href (b) Take the quiz (c) about.html (d) School news -
16.🔗 Which words do you click on?
<a href="games.html">Art corner</a> (a) games.html (b) Art corner (c) href (d) School news - 17.True or false: <p> goes in the head. (a) False (b) True
- 18.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <ul> (c) <li>
-
19.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<h2>Fun facts</h2>
<p>My pets</p>
<p>I love mangoes.</p>
<h2>Good morning!</h2>
<p>My best friend</p> -
20.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Birds sing<br>Rivers flow<br>Stars shine</p> - 21.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
- 22.🖼️ Why do we add alt text to an image? (a) to describe the image (b) to colour it (c) to load it faster (d) to make it bigger
- 23.True or false: HTML on its own cannot make tables. (a) False (b) True
- 24.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h3> or <h6>? (a) <h5> (b) <h2> (c) <h6> (d) <h3>
- 25.🔢 In a basic web page file, which comes LAST? (a) <head> (b) </html> (c) </head> (d) <body>
-
26.🔗 Which words do you click on?
<a href="contact.html">Art corner</a> (a) href (b) Art corner (c) School news (d) contact.html -
27.🔗 Where does this link open?
<a href="art.html">Maths fun</a> (a) in a new tab (b) in the same tab -
28.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Papaya</li>
<li>Grapes</li>
<li>Jamun</li>
</ol> - 29.True or false: a web browser turns HTML into a page. (a) False (b) True
- 30.True or false: <p> is an empty tag. (a) True (b) False
- 31.🏷️ Which is the closing tag for <u>? (a) </u> (b) <u> (c) <\u> (d) <u/>
- 32.📝 Does <title> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 33.Which of these goes in the head? (a) <title> (b) <ul> (c) <a> (d) <img>
-
34.📋 Does this list show bullets or numbers?
<ol>
<li>Guava</li>
<li>Banana</li>
<li>Litchi</li>
</ol> (a) bullets (b) numbers -
35.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Litchi</li>
<li>Banana</li>
</ol> - 36.🔢 In a basic web page file, which comes first: “</html>” or “<html>”? (a) <html> (b) </html>
- 37.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <br> (d) <h6>
-
38.📋 What number does the browser show next to “Grapes”?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Papaya</li>
<li>Grapes</li>
</ol> -
39.🔗 Where does this link open?
<a href="maths.html">About us</a> (a) in the same tab (b) in a new tab -
40.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<h2>The red kite</h2>
<p>Cricket is fun.</p>
<p>Rain today</p>
<p>Good morning!</p>
Answer key
- in the body
- 6
- <!DOCTYPE html>
- No
- 2
- No
- <ol>
- A tiger asleep
- <h1>
- False
- Play games
- opens web pages for us
- False
- a line across the page
- School news
- Art corner
- False
- <li>
- 4
- 4
- a web browser
- to describe the image
- False
- <h6>
- </html>
- Art corner
- in the same tab
- 3
- True
- False
- </u>
- has a closing tag
- <title>
- numbers
- 3
- <html>
- <h1>
- 4
- in the same tab
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids