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: <h1>, <h3>, <h2> or <h4>? (a) <h3> (b) <h2> (c) <h1> (d) <h4>
- 2.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 3.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
- 4.🏷️ Which is the closing tag for <b>? (a) <b> (b) <\b> (c) <b/> (d) </b>
- 5.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <hr> (d) <ul>
-
6.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Banana</li>
</ol> - 7.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h4> or <h2>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
- 8.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes a list (d) makes text bold
- 9.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h6>? (a) <h1> (b) <h6> (c) <h4> (d) <h2>
-
10.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>The red kite</h2>
<p>Hello, world!</p>
<p>The red kite</p>
<p>Fun facts</p> - 11.True or false: <img> goes in the body. (a) False (b) True
- 12.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
- 13.True or false: <meta> is an empty tag. (a) True (b) False
-
14.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>My best friend</p>
<p>Rain today</p>
<p>The red kite</p>
<h2>Cricket is fun.</h2>
<p>My pets</p> - 15.📋 Which list suits a shopping list in any order? (a) <ol> (b) <br> (c) <hr> (d) <ul>
-
16.🔍 One closing tag is missing. Which one?
<em>Cricket is fun.</em>
<i>Hello, world!
<h3>I love mangoes.</h3> (a) </em> (b) </h1> (c) </i> (d) </h3> -
17.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<h2>The red kite</h2>
<p>Rain today</p> -
18.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>Our school trip</p>
<p>My best friend</p>
<!-- <p>Hello, world!</p> --> (a) Hello, world! (b) My best friend (c) Good morning! (d) Our school trip - 19.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h5>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
-
20.📋 How many items does this list show?
<ul>
<li>Grapes</li>
<li>Mango</li>
<li>Orange</li>
</ul> - 21.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 22.True or false: <p> is an empty tag. (a) True (b) False
- 23.True or false: a web browser turns HTML into a page. (a) False (b) True
-
24.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<p>Good morning!</p>
<!-- <p>Rain today</p> --> (a) Rain today (b) Hello, world! (c) Good morning! -
25.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Fun facts</p>
<p>Good morning!</p> -
26.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Planets</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Planets (b) We won by 5 runs. (c) index.html (d) Class 7 Blog - 27.Which of these is an opening tag? (a) </h1> (b) <p> (c) </title> (d) </b>
-
28.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>I love mangoes.</p>
<p>The red kite</p> -
29.🔍 One closing tag is missing. Which one?
<h3>Fun facts
<p>Hello, world!</p>
<em>I love mangoes.</em> (a) </strong> (b) </em> (c) </p> (d) </h3> -
30.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>My best friend</p>
<p>Good morning!</p>
<p>Cricket is fun.</p>
<h3>My pets</h3> -
31.🔍 One closing tag is missing. Which one?
<h2>Rain today</h2>
<h3>My best friend
<p>Hello, world!</p> (a) </h3> (b) </b> (c) </h2> (d) </p> -
32.🔗 Which address opens when you click this link?
<a href="quiz.html">Visit the site</a> (a) quiz.html (b) about.html (c) games.html (d) Visit the site - 33.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) structure (d) colours
- 34.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2> (c) </h2> (d) <h2/>
- 35.🏷️ Which is the closing tag for <p>? (a) <p/> (b) <p> (c) </p> (d) <\p>
- 36.🖼️ Does <img> need a closing tag? (a) No (b) Yes
-
37.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Roses are red<br>Kites fly high</p> - 38.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h1>? (a) <h3> (b) <h5> (c) <h2> (d) <h1>
-
39.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Sky is blue<br>Kites fly high</p> - 40.🌐 Which one saves our .html files? (a) a code editor (b) a web browser (c) a web server
Answer key
- <h1>
- Yes
- Yes
- </b>
- <ol>
- 2
- <h6>
- starts a new line
- <h6>
- 4
- True
- <ul>
- True
- 5
- <ul>
- </i>
- 2
- Hello, world!
- <h1>
- 3
- an opening tag
- False
- True
- Rain today
- 2
- Class 7 Blog
- <p>
- 3
- </h3>
- 2
- </h3>
- quiz.html
- structure
- </h2>
- </p>
- No
- 3
- <h5>
- 3
- a code editor
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids