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 heading shows the BIGGEST text: <h6>, <h4>, <h1> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h6>
- 2.🔠 Are headings shown in bold by default? (a) No (b) Yes
-
3.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="300"> (a) cake.jpg (b) kite.png (c) map.png (d) A red kite - 4.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
-
5.🔗 Which words do you click on?
<a href="about.html">Play games</a> (a) About us (b) about.html (c) href (d) Play games -
6.📋 What number does the browser show next to “Orange”?
<ol start="5">
<li>Litchi</li>
<li>Grapes</li>
<li>Banana</li>
<li>Orange</li>
</ol> - 7.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
- 8.True or false: a web server sends pages over the net. (a) True (b) False
- 9.True or false: <ul> is an unordered list. (a) True (b) False
- 10.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to show pictures (d) to make links
- 11.True or false: <ol> shows bullet points. (a) True (b) False
-
12.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="400"> (a) cake.jpg (b) kite.png (c) map.png (d) A red kite -
13.🔍 One closing tag is missing. Which one?
<b>Hello, world!
<u>The red kite</u>
<p>I love mangoes.</p> (a) </u> (b) </p> (c) </b> (d) </small> - 14.True or false: a code editor answers page requests. (a) False (b) True
-
15.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Our school trip</p>
<h4>Our school trip</h4>
<p>Rain today</p>
<h3>The red kite</h3> -
16.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="350"> - 17.🔍 Which is the odd one out? (a) colours code to help us (b) sends pages over the net (c) stores a website’s files (d) hosts websites online
-
18.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Rain today</p>
<h3>Cricket is fun.</h3>
<p>My pets</p> - 19.True or false: <b> has a closing tag. (a) False (b) True
- 20.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
- 21.True or false: <table> goes in the body. (a) False (b) True
- 22.🔠 Which tag is the least important heading? (a) <p> (b) <h1> (c) <h3> (d) <h6>
- 23.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
24.🔠 How many headings are in this code?
<h1>Rain today</h1>
<p>Our school trip</p>
<p>I love mangoes.</p>
<h3>Our school trip</h3>
<p>Our school trip</p> -
25.🔗 Where does this link open?
<a href="about.html" target="_blank">Visit the site</a> (a) in the same tab (b) in a new tab - 26.True or false: <li> is one item of a list. (a) True (b) False
- 27.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
28.📋 What number does the browser show next to “Guava”?
<ol>
<li>Grapes</li>
<li>Orange</li>
<li>Guava</li>
<li>Mango</li>
</ol> -
29.🔍 One closing tag is missing. Which one?
<i>The red kite</i>
<h1>Rain today</h1>
<b>Our school trip (a) </h1> (b) </i> (c) </b> (d) </em> - 30.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 31.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) <\h2> (c) </h2> (d) <h2>
- 32.True or false: <link rel="stylesheet"> goes in the head. (a) False (b) True
- 33.Which of these goes in the body? (a) <title> (b) <style> (c) <h1> (d) <link rel="stylesheet">
- 34.True or false: <li> shows 1, 2, 3 numbers. (a) True (b) False
- 35.🔍 Which is the odd one out? (a) stores a website’s files (b) shows line numbers (c) hosts websites online (d) sends pages over the net
- 36.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
- 37.Which of these is a closing tag? (a) <p> (b) <li> (c) <h1> (d) </body>
- 38.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) address (c) attribute (d) editor
-
39.📝 How many paragraphs does this code make?
<p>The red kite</p>
<p>Good morning!</p>
<p>Hello, world!</p>
<p>Rain today</p>
<h2>Fun facts</h2>
<p>My pets</p> -
40.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Good morning!</p>
<h2>Rain today</h2>
<h2>Hello, world!</h2>
<p>My pets</p>
<p>Rain today</p>
Answer key
- <h1>
- Yes
- kite.png
- in the body
- Play games
- 8
- Yes
- True
- True
- to leave notes
- False
- kite.png
- </b>
- False
- 3
- 350
- colours code to help us
- 2
- True
- <ul>
- True
- <h6>
- an opening tag
- 2
- in a new tab
- True
- an opening tag
- 3
- </b>
- in the head
- </h2>
- True
- <h1>
- False
- shows line numbers
- <!DOCTYPE html>
- </body>
- element
- 5
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids