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.📋 How many items does this list show?
<ol>
<li>Banana</li>
<li>Guava</li>
<li>Mango</li>
<li>Orange</li>
<li>Litchi</li>
</ol> - 2.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h4> or <h3>? (a) <h1> (b) <h4> (c) <h2> (d) <h3>
- 3.🖼️ Which tag puts a picture on a page? (a) <p> (b) <img> (c) <a> (d) <pic>
- 4.True or false: <ol> lists things in any order. (a) True (b) False
-
5.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue</p> - 6.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <br> (d) <ul>
- 7.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 8.Which of these is a closing tag? (a) <b> (b) </h1> (c) <p> (d) <h1>
- 9.True or false: in <img>, width sets how wide it is. (a) False (b) True
- 10.True or false: a web browser turns HTML into a page. (a) True (b) False
-
11.🔗 Which words do you click on?
<a href="contact.html">Take the quiz</a> (a) contact.html (b) Play games (c) Take the quiz (d) href - 12.💬 Why do coders write comments? (a) to show pictures (b) to make links (c) to add colour (d) to leave notes
- 13.🏷️ Which is the closing tag for <b>? (a) <\b> (b) <b> (c) <b/> (d) </b>
- 14.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h6> (c) <p> (d) <h1>
- 15.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
-
16.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<p>Fun facts</p>
<!-- <p>Our school trip</p> -->
<p>Hello, world!</p>
<p>I love mangoes.</p> - 17.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h6>? (a) <h1> (b) <h6> (c) <h4> (d) <h3>
- 18.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
- 19.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
-
20.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Guava</li>
<li>Jamun</li>
<li>Litchi</li>
<li>Mango</li>
</ol> -
21.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h2>I love mangoes.</h2>
<p>My pets</p> -
22.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Rivers flow</p> -
23.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Stars shine<br>Kites fly high<br>Birds sing<br>Sky is blue</p> - 24.True or false: a code editor stores a website’s files. (a) True (b) False
- 25.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 26.🌐 Which one is where we type code? (a) a web browser (b) a code editor (c) a web server
- 27.Which of these is an empty tag? (a) <p> (b) <meta> (c) <b> (d) <h1>
- 28.Which of these is an opening tag? (a) <b> (b) </p> (c) </title> (d) </h1>
-
29.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h2>Hello, world!</h2>
<p>Rain today</p>
<h2>Our school trip</h2> - 30.🔗 Which attribute holds the address of a link? (a) alt (b) id (c) src (d) href
- 31.True or false: <li> is an empty tag. (a) True (b) False
-
32.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> (a) tiger.jpg (b) A red kite (c) A tiger asleep (d) width -
33.🔍 One closing tag is missing. Which one?
<h3>Rain today</h3>
<h1>Cricket is fun.</h1>
<strong>I love mangoes. (a) </h3> (b) </h1> (c) </i> (d) </strong> - 34.True or false: <title> goes in the head. (a) True (b) False
-
35.🔗 Where does this link open?
<a href="maths.html" target="_blank">Play games</a> (a) in the same tab (b) in a new tab -
36.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Banana</li>
<li>Orange</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Mango</li>
</ol> - 37.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h1> or <h5>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
- 38.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h5> or <h2>? (a) <h5> (b) <h4> (c) <h1> (d) <h2>
- 39.Which of these goes in the head? (a) <p> (b) <title> (c) <table> (d) <ul>
- 40.🌐 Which one stores a website’s files? (a) a code editor (b) a web browser (c) a web server
Answer key
- 5
- <h4>
- <img>
- False
- 2
- <ul>
- an opening tag
- </h1>
- True
- True
- Take the quiz
- to leave notes
- </b>
- <h1>
- <ol>
- 3
- <h1>
- False
- Yes
- 2
- 2
- 2
- 5
- False
- a closing tag
- a code editor
- <meta>
- <b>
- 3
- href
- False
- A tiger asleep
- </strong>
- True
- in a new tab
- 6
- <h6>
- <h1>
- <title>
- a web server
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids