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 heading levels does HTML have? (a) 4 (b) 3 (c) 10 (d) 6
- 2.True or false: <meta charset="utf-8"> goes in the head. (a) True (b) False
-
3.🔍 One closing tag is missing. Which one?
<h1>Rain today</h1>
<p>Good morning!</p>
<h3>I love mangoes. (a) </h3> (b) </small> (c) </p> (d) </h1> - 4.True or false: <ol> shows bullet points. (a) True (b) False
- 5.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h5> or <h6>? (a) <h4> (b) <h1> (c) <h5> (d) <h6>
-
6.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>My pets</p>
<h2>My best friend</h2>
<h2>My best friend</h2>
<p>The red kite</p> -
7.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) contact.html (b) Art corner (c) games.html (d) about.html - 8.True or false: <a> goes in the head. (a) False (b) True
- 9.📝 What do we need to write HTML? (a) a paintbrush (b) a printer (c) a microphone (d) a plain text editor
- 10.💬 How does an HTML comment end? (a) // (b) >> (c) */ (d) -->
-
11.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) index.html (b) I like to read. (c) Art Gallery (d) Welcome! - 12.🌐 Which one opens web pages for us? (a) a code editor (b) a web browser (c) a web server
- 13.📄 Can HTML on its own run a game loop? (a) No (b) Yes
- 14.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
- 15.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
-
16.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Fun facts</p>
<h2>I love mangoes.</h2>
<p>I love mangoes.</p>
<p>Good morning!</p> - 17.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
- 18.🔍 Which is the odd one out? (a) turns HTML into a page (b) opens web pages for us (c) shows pages from the web (d) colours code to help us
-
19.💬 How many paragraphs show on the page?
<p>Rain today</p>
<p>Fun facts</p>
<!-- <p>Hello, world!</p> --> - 20.Which of these has a closing tag? (a) <br> (b) <img> (c) <input> (d) <p>
-
21.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Mango</li>
</ul> -
22.🔠 How many headings are in this code?
<h1>Rain today</h1>
<p>Cricket is fun.</p>
<p>The red kite</p>
<p>I love mangoes.</p> -
23.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Grapes</li>
<li>Guava</li>
</ol> (a) bullets (b) numbers - 24.💬 How does an HTML comment start? (a) # (b) <!-- (c) /* (d) //
- 25.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
- 26.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 6 (d) 10
- 27.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 28.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
- 29.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
- 30.Which of these is an opening tag? (a) </li> (b) </b> (c) </title> (d) <p>
-
31.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red<br>Stars shine<br>Birds sing</p> -
32.🔍 Which line is missing its closing tag?
line 1: <h3>Fun facts</h3>
line 2: <small>The red kite
line 3: <p>Our school trip</p> (a) line 2 (b) line 1 (c) line 3 - 33.True or false: in <img>, width sets how wide it is. (a) True (b) False
- 34.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
35.🔍 Which line is missing its closing tag?
line 1: <b>Our school trip</b>
line 2: <h3>Fun facts</h3>
line 3: <p>Rain today (a) line 2 (b) line 3 (c) line 1 -
36.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Our school trip</p> - 37.True or false: in <img>, alt describes the picture. (a) True (b) False
-
38.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<p>I love mangoes.</p>
<!-- <p>My best friend</p> -->
<p>My pets</p> (a) I love mangoes. (b) Our school trip (c) My pets (d) My best friend -
39.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>The red kite</p>
<p>Cricket is fun.</p> -
40.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Orange</li>
<li>Mango</li>
<li>Papaya</li>
</ul>
Answer key
- 6
- True
- </h3>
- False
- <h6>
- 3
- games.html
- False
- a plain text editor
- -->
- Art Gallery
- a web browser
- No
- a web browser
- <a>
- 4
- the body
- colours code to help us
- 2
- <p>
- 2
- 1
- numbers
- <!--
- Yes
- 1
- an empty tag
- on the browser tab
- False
- <p>
- 4
- line 2
- True
- an empty tag
- line 3
- 3
- True
- My best friend
- 2
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids