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 <h1> headings should a page usually have? (a) 3 (b) 6 (c) 1 (d) 10
- 2.🖼️ Which tag puts a picture on a page? (a) <img> (b) <a> (c) <pic> (d) <p>
- 3.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h2> (b) <h5> (c) <h6> (d) <h1>
-
4.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>My best friend</p>
<h2>Cricket is fun.</h2>
<h2>My best friend</h2>
<h2>Hello, world!</h2> -
5.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>I love mangoes.</p>
<p>Hello, world!</p> -
6.🔗 Which address opens when you click this link?
<a href="quiz.html">Play games</a> (a) Play games (b) quiz.html (c) about.html (d) games.html - 7.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h3> or <h6>? (a) <h3> (b) <h4> (c) <h6> (d) <h2>
-
8.🔠 How many headings are in this code?
<h1>My pets</h1>
<p>Hello, world!</p>
<p>I love mangoes.</p> - 9.📄 Can HTML on its own make headings? (a) Yes (b) No
- 10.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 11.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
12.🔗 Which words do you click on?
<a href="quiz.html">School news</a> (a) School news (b) Take the quiz (c) href (d) quiz.html -
13.💬 Which text will NOT show on the page?
<p>My best friend</p>
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p> (a) The red kite (b) I love mangoes. (c) My best friend -
14.🔍 One closing tag is missing. Which one?
<h1>My pets
<u>The red kite</u>
<h3>Good morning!</h3> (a) </p> (b) </u> (c) </h3> (d) </h1> - 15.🌐 Which one is where we type code? (a) a web server (b) a web browser (c) a code editor
- 16.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p> (c) </p> (d) <p/>
-
17.🔍 Which line is missing its closing tag?
line 1: <u>My pets</u>
line 2: <em>Our school trip
line 3: <i>I love mangoes.</i> (a) line 2 (b) line 3 (c) line 1 -
18.🔗 Where does this link open?
<a href="about.html">About us</a> (a) in the same tab (b) in a new tab - 19.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a slash / (c) a hash # (d) a dot .
- 20.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
- 21.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
- 22.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 23.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h4> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
- 24.True or false: in <img>, src sets how tall it is. (a) True (b) False
- 25.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
- 26.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 27.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h3> or <h2>? (a) <h3> (b) <h1> (c) <h2> (d) <h6>
-
28.🔗 Which address opens when you click this link?
<a href="contact.html">Contact us</a> (a) https://example.com (b) Contact us (c) contact.html (d) maths.html - 29.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
- 30.🔍 Which is the odd one out? (a) shows line numbers (b) opens web pages for us (c) saves our .html files (d) is where we type code
-
31.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<!-- <p>My best friend</p> -->
<!-- <p>Hello, world!</p> -->
<p>My pets</p> - 32.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h6>? (a) <h5> (b) <h2> (c) <h1> (d) <h6>
- 33.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h4> or <h6>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
- 34.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 35.📄 Can HTML on its own add up two numbers? (a) No (b) Yes
-
36.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Mango</li>
<li>Orange</li>
</ul> - 37.💬 How does an HTML comment start? (a) <!-- (b) /* (c) # (d) //
-
38.🔍 One closing tag is missing. Which one?
<small>I love mangoes.</small>
<h3>The red kite
<h2>Rain today</h2> (a) </strong> (b) </h3> (c) </small> (d) </h2> - 39.📋 Which list tag is an ordered list? (a) <li> (b) <ol> (c) <ul>
-
40.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>I love mangoes.</p>
<p>Rain today</p>
<p>Fun facts</p> (a) Good morning! (b) Fun facts (c) Rain today (d) I love mangoes.
Answer key
- 1
- <img>
- <h1>
- 2
- 2
- quiz.html
- <h2>
- 1
- Yes
- Yes
- has a closing tag
- School news
- I love mangoes.
- </h1>
- a code editor
- </p>
- line 2
- in the same tab
- a slash /
- <ul>
- False
- a closing tag
- <h5>
- False
- <a>
- has a closing tag
- <h6>
- contact.html
- <li>
- opens web pages for us
- 1
- <h1>
- <h1>
- in the body
- No
- 3
- <!--
- </h3>
- <ol>
- Good morning!
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids