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 list suits a shopping list in any order? (a) <ul> (b) <br> (c) <hr> (d) <ol>
-
2.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<!-- <p>Hello, world!</p> -->
<p>I love mangoes.</p>
<!-- <p>Rain today</p> --> - 3.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 10 (d) 6
- 4.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
5.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> -->
<!-- <p>The red kite</p> --> - 6.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .png (d) .html
-
7.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue<br>Stars shine<br>Roses are red</p> - 8.Which of these is an empty tag? (a) <h1> (b) <title> (c) <li> (d) <input>
- 9.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h1> or <h6>? (a) <h1> (b) <h3> (c) <h5> (d) <h6>
- 10.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
-
11.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>Rain today</p>
<p>The red kite</p> - 12.🖼️ Which attribute of <img> tells which image to load? (a) height (b) src (c) alt (d) width
- 13.Which of these is an opening tag? (a) </h1> (b) <li> (c) </b> (d) </title>
-
14.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Mango</li>
<li>Banana</li>
<li>Guava</li>
<li>Orange</li>
</ol> - 15.Which of these is an opening tag? (a) <b> (b) </li> (c) </body> (d) </h1>
-
16.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<h2>My pets</h2>
<p>Cricket is fun.</p>
<p>Good morning!</p> - 17.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h3>
- 18.True or false: HTML on its own can show paragraphs. (a) True (b) False
- 19.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
-
20.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>My pets</h2>
<p>Rain today</p> - 21.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the body (b) in the head
-
22.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Orange</li>
<li>Guava</li>
<li>Banana</li>
<li>Mango</li>
</ol> - 23.Which of these is an opening tag? (a) </body> (b) </li> (c) </h1> (d) <body>
-
24.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="100"> (a) Map of India (b) width (c) Birthday cake (d) map.png -
25.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Orange</li>
<li>Banana</li>
<li>Litchi</li>
<li>Jamun</li>
<li>Grapes</li>
</ol> - 26.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h5>? (a) <h5> (b) <h1> (c) <h6> (d) <h2>
- 27.True or false: <title> goes in the head. (a) True (b) False
-
28.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Our school trip</p>
<p>Fun facts</p>
<p>Hello, world!</p>
<p>I love mangoes.</p> - 29.🖼️ Which attribute of <img> describes the picture? (a) height (b) alt (c) width (d) src
- 30.True or false: in <img>, width names the picture file. (a) False (b) True
- 31.💬 Does the browser show comments on the page? (a) Yes (b) No
-
32.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>Good morning!</p>
<!-- <p>Fun facts</p> --> (a) Fun facts (b) The red kite (c) Good morning! - 33.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <p> (d) <a>
- 34.True or false: in <img>, src is read by screen readers. (a) True (b) False
- 35.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h3>? (a) <h3> (b) <h6> (c) <h2> (d) <h1>
-
36.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<!-- <p>Fun facts</p> -->
<p>Hello, world!</p>
<p>My best friend</p> (a) Fun facts (b) Hello, world! (c) Good morning! (d) My best friend -
37.🔍 One closing tag is missing. Which one?
<b>Good morning!</b>
<h3>My pets</h3>
<em>The red kite (a) </h3> (b) </i> (c) </em> (d) </b> -
38.🔗 Where does this link open?
<a href="about.html" target="_blank">Play games</a> (a) in a new tab (b) in the same tab -
39.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="50"> (a) An old fort (b) width (c) Our school bus (d) bus.jpg - 40.🔍 Which is the odd one out? (a) opens web pages for us (b) shows pages from the web (c) answers page requests (d) turns HTML into a page
Answer key
- <ul>
- 1
- 6
- Yes
- 1
- .html
- 4
- <input>
- <h1>
- <a>
- 2
- src
- <li>
- 5
- <b>
- 3
- <h1>
- True
- in the head
- 2
- in the head
- 5
- <body>
- Map of India
- 6
- <h1>
- True
- 5
- alt
- False
- No
- Fun facts
- <img>
- False
- <h1>
- Fun facts
- </em>
- in a new tab
- Our school bus
- answers page requests
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids