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.True or false: HTML on its own cannot make links to pages. (a) True (b) False
- 2.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
- 3.Which of these is true of a code editor? (a) shows pages from the web (b) hosts websites online (c) answers page requests (d) colours code to help us
- 4.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
-
5.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>The red kite</p>
<h2>Our school trip</h2>
<h2>Fun facts</h2>
<p>Our school trip</p>
<h2>I love mangoes.</h2> -
6.🔍 Which line is missing its closing tag?
line 1: <h1>My pets</h1>
line 2: <h3>Fun facts</h3>
line 3: <b>Our school trip (a) line 2 (b) line 1 (c) line 3 - 7.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
- 8.🏷️ HTML marks up text using ___. (a) keys (b) wires (c) pixels (d) tags
- 9.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
10.📋 What number does the browser show next to “Guava”?
<ol>
<li>Jamun</li>
<li>Guava</li>
<li>Papaya</li>
</ol> - 11.📋 Which list tag goes inside ul or ol? (a) <li> (b) <ol> (c) <ul>
-
12.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>Fun facts</p>
<p>My best friend</p>
<p>Our school trip</p>
<!-- <p>Hello, world!</p> --> - 13.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 6 (d) 3
- 14.📄 Can HTML on its own make links to pages? (a) No (b) Yes
-
15.🔗 Which words do you click on?
<a href="art.html">Take the quiz</a> (a) Take the quiz (b) href (c) Play games (d) art.html - 16.True or false: HTML on its own cannot make headings. (a) False (b) True
- 17.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h4>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
- 18.True or false: <style> goes in the head. (a) False (b) True
- 19.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h4> or <h1>? (a) <h6> (b) <h4> (c) <h3> (d) <h1>
- 20.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) width (c) alt (d) height
- 21.True or false: HTML on its own cannot make bullet lists. (a) True (b) False
-
22.📋 What number does the browser show next to “Guava”?
<ol start="9">
<li>Orange</li>
<li>Banana</li>
<li>Mango</li>
<li>Grapes</li>
<li>Litchi</li>
<li>Guava</li>
</ol> -
23.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="400"> (a) Birthday cake (b) moon.png (c) dog.jpg (d) cake.jpg - 24.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 25.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
-
26.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p>
<p>The red kite</p> -
27.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Cricket is fun.</p>
<p>The red kite</p> - 28.🔍 Which is the odd one out? (a) is where we type code (b) colours code to help us (c) shows line numbers (d) turns HTML into a page
- 29.True or false: in <img>, src sets how tall it is. (a) True (b) False
-
30.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Roses are red<br>Rivers flow</p> - 31.🖼️ Does <img> need a closing tag? (a) No (b) Yes
-
32.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h2>My pets</h2>
<p>Hello, world!</p>
<p>My best friend</p> -
33.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
<p>My pets</p>
<!-- <p>Rain today</p> -->
<!-- <p>My best friend</p> --> - 34.True or false: HTML on its own cannot make tables. (a) False (b) True
-
35.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h4>My best friend</h4>
<h2>Good morning!</h2>
<h3>I love mangoes.</h3>
<p>Hello, world!</p> -
36.📋 What number does the browser show next to “Jamun”?
<ol start="4">
<li>Guava</li>
<li>Jamun</li>
<li>Litchi</li>
<li>Papaya</li>
<li>Orange</li>
<li>Banana</li>
</ol> - 37.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2/> (c) <h2> (d) </h2>
- 38.True or false: <ul> is one item of a list. (a) False (b) True
-
39.🔍 One closing tag is missing. Which one?
<u>My best friend
<h3>Our school trip</h3>
<p>Good morning!</p> (a) </h3> (b) </u> (c) </i> (d) </p> - 40.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <p> (d) <ul>
Answer key
- False
- <ol>
- colours code to help us
- <ul>
- 3
- line 3
- in the head
- tags
- Yes
- 2
- <li>
- 4
- 1
- Yes
- Take the quiz
- False
- <h1>
- True
- <h1>
- height
- False
- 14
- cake.jpg
- a closing tag
- <ol>
- 2
- 3
- turns HTML into a page
- False
- 3
- No
- 2
- 2
- False
- 4
- 5
- </h2>
- False
- </u>
- <li>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids