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 line is missing its closing tag?
line 1: <h3>I love mangoes.
line 2: <small>Fun facts</small>
line 3: <u>Hello, world!</u> (a) line 2 (b) line 1 (c) line 3 -
2.🔗 Which words do you click on?
<a href="news.html">Maths fun</a> (a) Art corner (b) href (c) Maths fun (d) news.html -
3.📋 How many items does this list show?
<ul>
<li>Grapes</li>
<li>Mango</li>
<li>Litchi</li>
<li>Banana</li>
</ul> -
4.🔍 Which line is missing its closing tag?
line 1: <u>My best friend
line 2: <h1>My pets</h1>
line 3: <b>Our school trip</b> (a) line 3 (b) line 2 (c) line 1 -
5.🔍 Which line is missing its closing tag?
line 1: <h2>Good morning!
line 2: <i>Our school trip</i>
line 3: <h1>My pets</h1> (a) line 3 (b) line 1 (c) line 2 - 6.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h3>? (a) <h3> (b) <h2> (c) <h5> (d) <h1>
- 7.True or false: <li> is an empty tag. (a) True (b) False
- 8.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) HyperText (c) High Tech (d) Home Text
- 9.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
- 10.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
-
11.📋 What number does the browser show next to “Orange”?
<ol start="6">
<li>Banana</li>
<li>Orange</li>
<li>Litchi</li>
<li>Jamun</li>
<li>Guava</li>
<li>Mango</li>
</ol> -
12.🔍 Which line is missing its closing tag?
line 1: <h3>The red kite</h3>
line 2: <small>Our school trip
line 3: <h2>I love mangoes.</h2> (a) line 1 (b) line 3 (c) line 2 - 13.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
14.🔠 How many headings are in this code?
<h1>Rain today</h1>
<h3>I love mangoes.</h3>
<p>My pets</p> -
15.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Mango</li>
</ul> (a) numbers (b) bullets - 16.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
-
17.📋 What number does the browser show next to “Guava”?
<ol start="3">
<li>Papaya</li>
<li>Mango</li>
<li>Jamun</li>
<li>Banana</li>
<li>Guava</li>
<li>Grapes</li>
</ol> - 18.Which of these is true of a code editor? (a) is where we type code (b) opens web pages for us (c) sends pages over the net (d) shows pages from the web
-
19.🔗 Which address opens when you click this link?
<a href="contact.html">Art corner</a> (a) https://example.com (b) maths.html (c) Art corner (d) contact.html -
20.🔗 Which address opens when you click this link?
<a href="quiz.html">Play games</a> (a) about.html (b) Play games (c) quiz.html (d) games.html -
21.🔗 Where does this link open?
<a href="contact.html">Maths fun</a> (a) in the same tab (b) in a new tab - 22.True or false: a code editor has an address bar. (a) True (b) False
-
23.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow<br>Kites fly high<br>Stars shine</p> -
24.🔍 One closing tag is missing. Which one?
<strong>My best friend</strong>
<b>I love mangoes.
<h1>The red kite</h1> (a) </strong> (b) </h1> (c) </i> (d) </b> - 25.True or false: a web browser colours code to help us. (a) False (b) True
-
26.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Orange</li>
<li>Grapes</li>
</ul> - 27.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
28.🔗 Which words do you click on?
<a href="maths.html">Maths fun</a> (a) Maths fun (b) Art corner (c) href (d) maths.html -
29.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Sky is blue<br>Roses are red</p> - 30.True or false: in <img>, alt is read by screen readers. (a) False (b) True
- 31.🔗 Which code links to about.html? (a) <link about.html> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <a href="about.html">
- 32.Which of these is an empty tag? (a) <ul> (b) <input> (c) <li> (d) <b>
- 33.Which of these is true of a code editor? (a) opens web pages for us (b) shows line numbers (c) has an address bar (d) stores a website’s files
- 34.True or false: in <img>, height sets how tall it is. (a) False (b) True
-
35.🔍 One closing tag is missing. Which one?
<h1>Cricket is fun.
<em>Rain today</em>
<small>My pets</small> (a) </h1> (b) </small> (c) </u> (d) </em> - 36.Which of these goes in the head? (a) <p> (b) <meta charset="utf-8"> (c) <h1> (d) <img>
- 37.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
- 38.🌐 Which one shows pages from the web? (a) a web browser (b) a code editor (c) a web server
- 39.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h3> or <h4>? (a) <h2> (b) <h4> (c) <h3> (d) <h1>
-
40.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="350"> (a) A happy dog (b) The full moon (c) width (d) dog.jpg
Answer key
- line 1
- Maths fun
- 4
- line 1
- line 1
- <h1>
- False
- HyperText
- in the body
- <ul>
- 7
- line 2
- an opening tag
- 2
- bullets
- in the body
- 7
- is where we type code
- contact.html
- quiz.html
- in the same tab
- False
- 4
- </b>
- False
- 3
- Yes
- Maths fun
- 3
- True
- <a href="about.html">
- <input>
- shows line numbers
- True
- </h1>
- <meta charset="utf-8">
- a code editor
- a web browser
- <h1>
- A happy dog
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids