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 tag makes a clickable link? (a) <p> (b) <a> (c) <link> (d) <img>
- 2.True or false: a code editor shows line numbers. (a) True (b) False
-
3.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
</ol> -
4.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Stars shine</p> -
5.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>My pets</p>
<h3>Hello, world!</h3>
<h4>Good morning!</h4> - 6.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a hash # (c) a slash / (d) a dollar $
- 7.🖼️ Which tag puts a picture on a page? (a) <img> (b) <pic> (c) <a> (d) <p>
-
8.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>Our school trip</p> -->
<p>My pets</p> -
9.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<p>Hello, world!</p>
<!-- <p>My best friend</p> -->
<!-- <p>Rain today</p> -->
<!-- <p>My pets</p> --> - 10.📋 Which tag goes around each item of a list? (a) <p> (b) <ol> (c) <ul> (d) <li>
-
11.📋 How many items does this list show?
<ul>
<li>Litchi</li>
<li>Mango</li>
<li>Jamun</li>
</ul> -
12.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Litchi</li>
<li>Papaya</li>
<li>Banana</li>
</ul> -
13.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing<br>Rivers flow<br>Kites fly high</p> -
14.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> (a) A red kite (b) width (c) A tiger asleep (d) tiger.jpg - 15.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
-
16.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Our school trip</p>
<p>Cricket is fun.</p> -
17.🔠 How many headings are in this code?
<h1>My pets</h1>
<p>Hello, world!</p>
<p>Fun facts</p>
<h4>Good morning!</h4>
<p>Our school trip</p> -
18.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) Contact us (b) About us (c) href (d) games.html -
19.🔍 One closing tag is missing. Which one?
<em>My pets
<p>Our school trip</p>
<h1>The red kite</h1> (a) </strong> (b) </em> (c) </h1> (d) </p> - 20.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
- 21.📋 Which list tag is an ordered list? (a) <ul> (b) <ol> (c) <li>
-
22.🔍 Which line is missing its closing tag?
line 1: <em>My best friend</em>
line 2: <strong>Our school trip
line 3: <i>Cricket is fun.</i> (a) line 3 (b) line 2 (c) line 1 - 23.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 24.True or false: <li> lists steps in order. (a) True (b) False
-
25.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<h3>Rain today</h3>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Fun facts</p> - 26.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
-
27.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Jamun</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 28.True or false: HTML on its own can show paragraphs. (a) False (b) True
- 29.🖼️ Which attribute of <img> is read by screen readers? (a) height (b) width (c) src (d) alt
- 30.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h3> or <h5>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
-
31.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<!-- <p>My pets</p> -->
<!-- <p>Fun facts</p> -->
<p>The red kite</p>
<p>Rain today</p> - 32.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
- 33.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h4> or <h6>? (a) <h3> (b) <h4> (c) <h6> (d) <h2>
- 34.True or false: <ol> lists steps in order. (a) True (b) False
-
35.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Sky is blue<br>Stars shine<br>Kites fly high</p> - 36.🌐 Which one turns HTML into a page? (a) a web browser (b) a web server (c) a code editor
- 37.True or false: <img> goes in the body. (a) True (b) False
-
38.🔍 One closing tag is missing. Which one?
<em>Cricket is fun.</em>
<i>I love mangoes.</i>
<h2>Our school trip (a) </em> (b) </h2> (c) </i> (d) </small> - 39.🌐 Which one is where we type code? (a) a web server (b) a web browser (c) a code editor
-
40.🔗 Which words do you click on?
<a href="maths.html">Visit the site</a> (a) Maths fun (b) href (c) Visit the site (d) maths.html
Answer key
- <a>
- True
- 3
- 2
- 3
- a slash /
- <img>
- 1
- 1
- <li>
- 3
- 4
- 4
- A tiger asleep
- <ol>
- 3
- 2
- About us
- </em>
- in the head
- <ol>
- line 2
- an opening tag
- False
- 2
- <li>
- 3
- True
- alt
- <h1>
- 3
- <ul>
- <h2>
- True
- 4
- a web browser
- True
- </h2>
- a code editor
- Visit the site
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids