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 SMALLEST text: <h3>, <h5>, <h6> or <h4>? (a) <h3> (b) <h4> (c) <h6> (d) <h5>
-
2.🔗 Which address opens when you click this link?
<a href="about.html">Take the quiz</a> (a) contact.html (b) https://example.com (c) Take the quiz (d) about.html -
3.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="350"> -
4.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Rain today</p>
<p>My best friend</p>
<!-- <p>My pets</p> -->
<!-- <p>Hello, world!</p> --> -
5.🔍 Which line is missing its closing tag?
line 1: <h3>Our school trip</h3>
line 2: <p>Good morning!</p>
line 3: <h2>Cricket is fun. (a) line 2 (b) line 1 (c) line 3 -
6.🔗 Which words do you click on?
<a href="https://example.com">Play games</a> (a) href (b) https://example.com (c) About us (d) Play games - 7.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h2> or <h6>? (a) <h2> (b) <h6> (c) <h5> (d) <h1>
-
8.🔍 Which line is missing its closing tag?
line 1: <strong>My pets
line 2: <h2>Hello, world!</h2>
line 3: <em>Good morning!</em> (a) line 1 (b) line 2 (c) line 3 - 9.🧩 An opening tag + content + a closing tag together make an ___. (a) editor (b) attribute (c) address (d) element
- 10.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows line numbers (c) shows pages from the web (d) opens web pages for us
- 11.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Markup (c) Machine (d) Mouse
- 12.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
- 13.📄 What is the first line of an HTML5 page? (a) <body> (b) <html> (c) <head> (d) <!DOCTYPE html>
-
14.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Grapes</li>
<li>Jamun</li>
<li>Papaya</li>
</ul> - 15.💬 How does an HTML comment start? (a) // (b) # (c) /* (d) <!--
- 16.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
-
17.🔍 One closing tag is missing. Which one?
<small>My best friend</small>
<h1>I love mangoes.</h1>
<i>Cricket is fun. (a) </i> (b) </h2> (c) </h1> (d) </small> - 18.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 19.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h4> or <h6>? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
-
20.🔍 Which line is missing its closing tag?
line 1: <b>Fun facts</b>
line 2: <i>The red kite
line 3: <h3>Our school trip</h3> (a) line 1 (b) line 3 (c) line 2 - 21.📄 Where does <style> 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>Mango</li>
<li>Orange</li>
<li>Papaya</li>
<li>Jamun</li>
</ol> -
23.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Sky is blue<br>Birds sing</p> -
24.🔗 Which words do you click on?
<a href="art.html">Play games</a> (a) Play games (b) href (c) About us (d) art.html - 25.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <h2> (c) <h2/> (d) <\h2>
- 26.Which of these is an opening tag? (a) </h1> (b) <body> (c) </b> (d) </p>
- 27.True or false: a web browser hosts websites online. (a) True (b) False
-
28.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="200"> (a) fort.jpg (b) moon.png (c) The full moon (d) bus.jpg - 29.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h3> (b) <h5> (c) <h2> (d) <h1>
-
30.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Stars shine<br>Roses are red</p> - 31.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server
-
32.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<!-- <p>Good morning!</p> -->
<p>The red kite</p> (a) Fun facts (b) Good morning! (c) The red kite -
33.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="250"> (a) The full moon (b) moon.png (c) bus.jpg (d) fort.jpg - 34.True or false: <li> is one item of a list. (a) False (b) True
-
35.💬 Which text will NOT show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Rain today</p>
<p>Fun facts</p> (a) Fun facts (b) Cricket is fun. (c) Rain today -
36.🔗 Where does this link open?
<a href="art.html" target="_blank">Visit the site</a> (a) in the same tab (b) in a new tab - 37.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h2> or <h1>? (a) <h1> (b) <h5> (c) <h6> (d) <h2>
- 38.Which of these has a closing tag? (a) <input> (b) <hr> (c) <h1> (d) <img>
- 39.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
- 40.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
Answer key
- <h6>
- about.html
- 350
- 2
- line 3
- Play games
- <h6>
- line 1
- element
- shows line numbers
- Markup
- the body
- <!DOCTYPE html>
- 4
- <!--
- -->
- </i>
- Yes
- <h6>
- line 2
- in the head
- 4
- 3
- Play games
- </h2>
- <body>
- False
- moon.png
- <h1>
- 3
- a code editor
- Good morning!
- moon.png
- True
- Cricket is fun.
- in a new tab
- <h1>
- <h1>
- a web server
- a web browser
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids