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.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 2.🌐 Which one turns HTML into a page? (a) a web browser (b) a code editor (c) a web server
- 3.💬 Does the browser show comments on the page? (a) Yes (b) No
-
4.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Banana</li>
<li>Orange</li>
</ul> (a) numbers (b) bullets - 5.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the head (d) the body
- 6.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h2> (b) <h5> (c) <h1> (d) <h6>
-
7.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets - 8.🏷️ Which is the closing tag for <small>? (a) </small> (b) <small> (c) <\small> (d) <small/>
-
9.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Birds sing<br>Stars shine<br>Rivers flow</p> - 10.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
-
11.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="350"> -
12.🔍 One closing tag is missing. Which one?
<h2>Hello, world!
<u>I love mangoes.</u>
<h1>Cricket is fun.</h1> (a) </u> (b) </h1> (c) </b> (d) </h2> -
13.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Cricket is fun.</p>
<h2>My pets</h2> - 14.📝 What does <hr> draw? (a) a table (b) a picture (c) a line across the page (d) a link
- 15.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 6 (d) 1
-
16.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<p>My best friend</p>
<p>Good morning!</p>
<p>My pets</p>
<!-- <p>I love mangoes.</p> --> -
17.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<h3>My best friend</h3>
<p>My pets</p>
<h2>Fun facts</h2> - 18.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 19.🖼️ Which attribute of <img> is read by screen readers? (a) src (b) width (c) height (d) alt
- 20.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to load it faster (c) to colour it (d) to describe the image
-
21.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Stars shine<br>Kites fly high<br>Rivers flow</p> - 22.True or false: in <img>, src names the picture file. (a) False (b) True
- 23.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
-
24.📋 How many items does this list show?
<ol>
<li>Mango</li>
<li>Banana</li>
<li>Jamun</li>
</ol> - 25.Which of these goes in the body? (a) <style> (b) <h1> (c) <meta charset="utf-8"> (d) <title>
- 26.True or false: <title> is an empty tag. (a) False (b) True
- 27.True or false: <li> is one item of a list. (a) True (b) False
-
28.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="150"> (a) bus.jpg (b) moon.png (c) fort.jpg (d) The full moon - 29.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a slash / (c) a hash # (d) a dollar $
-
30.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="50"> -
31.🔗 Which words do you click on?
<a href="maths.html">About us</a> (a) Contact us (b) About us (c) maths.html (d) href -
32.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Rivers flow</p> - 33.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <body> (d) <!DOCTYPE html>
- 34.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
- 35.Which of these goes in the head? (a) <img> (b) <h1> (c) <ul> (d) <title>
- 36.🔢 In a basic web page file, which comes first: “</body>” or “<head>”? (a) </body> (b) <head>
-
37.🔍 Which line is missing its closing tag?
line 1: <i>Hello, world!
line 2: <em>My best friend</em>
line 3: <p>My pets</p> (a) line 3 (b) line 1 (c) line 2 - 38.Which of these is an empty tag? (a) <h1> (b) <br> (c) <p> (d) <li>
- 39.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h5>? (a) <h5> (b) <h6> (c) <h1> (d) <h3>
- 40.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h6> or <h2>? (a) <h3> (b) <h2> (c) <h5> (d) <h6>
Answer key
- No
- a web browser
- No
- bullets
- the body
- <h1>
- bullets
- </small>
- 4
- <ol>
- 350
- </h2>
- 2
- a line across the page
- 1
- 4
- 3
- a closing tag
- alt
- to describe the image
- 4
- True
- a code editor
- 3
- <h1>
- False
- True
- moon.png
- a slash /
- 50
- About us
- 2
- <!DOCTYPE html>
- <ul>
- <title>
- <head>
- line 1
- <br>
- <h6>
- <h2>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids