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.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) structure (d) colours
- 2.🔍 Which is the odd one out? (a) has an address bar (b) turns HTML into a page (c) opens web pages for us (d) stores a website’s files
- 3.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) </h2> (c) <h2> (d) <\h2>
- 4.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h2> or <h5>? (a) <h1> (b) <h5> (c) <h2> (d) <h3>
-
5.🔗 Which words do you click on?
<a href="quiz.html">School news</a> (a) School news (b) href (c) quiz.html (d) Take the quiz -
6.🔍 Which line is missing its closing tag?
line 1: <h1>Fun facts</h1>
line 2: <h3>Cricket is fun.</h3>
line 3: <small>I love mangoes. (a) line 2 (b) line 1 (c) line 3 - 7.Which of these is a closing tag? (a) <body> (b) </h1> (c) <b> (d) <li>
-
8.🔗 Where does this link open?
<a href="about.html">School news</a> (a) in a new tab (b) in the same tab -
9.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>Our school trip</p> -->
<p>Cricket is fun.</p> - 10.True or false: in <img>, alt is read by screen readers. (a) True (b) False
-
11.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Sky is blue<br>Rivers flow<br>Roses are red</p> - 12.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 13.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) element (c) editor (d) attribute
-
14.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="50"> (a) fort.jpg (b) bus.jpg (c) tiger.jpg (d) Our school bus - 15.💾 A web page file usually ends with which extension? (a) .png (b) .mp3 (c) .html (d) .txt
-
16.💬 How many paragraphs show on the page?
<p>The red kite</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Good morning!</p> -->
<!-- <p>My pets</p> -->
<!-- <p>Fun facts</p> --> - 17.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h5>? (a) <h6> (b) <h4> (c) <h5> (d) <h3>
-
18.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Orange</li>
</ul> (a) bullets (b) numbers -
19.🔗 Which address opens when you click this link?
<a href="games.html">Take the quiz</a> (a) Take the quiz (b) contact.html (c) games.html (d) about.html - 20.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) </strong> (c) <strong/> (d) <strong>
- 21.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h3> or <h5>? (a) <h5> (b) <h1> (c) <h2> (d) <h3>
- 22.🔠 Which heading shows the SMALLEST text: <h5>, <h4>, <h3> or <h2>? (a) <h3> (b) <h5> (c) <h4> (d) <h2>
- 23.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h3>
- 24.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
25.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<!-- <p>I love mangoes.</p> -->
<p>My pets</p>
<!-- <p>My best friend</p> --> -
26.📋 What number does the browser show next to “Orange”?
<ol>
<li>Mango</li>
<li>Grapes</li>
<li>Banana</li>
<li>Litchi</li>
<li>Jamun</li>
<li>Orange</li>
</ol> -
27.📋 What number does the browser show next to “Mango”?
<ol start="5">
<li>Guava</li>
<li>Litchi</li>
<li>Grapes</li>
<li>Mango</li>
<li>Papaya</li>
</ol> - 28.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h3> or <h4>? (a) <h4> (b) <h3> (c) <h2> (d) <h5>
- 29.📄 Can HTML on its own pick a random number? (a) Yes (b) No
-
30.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Grapes</li>
</ol> (a) bullets (b) numbers -
31.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<!-- <p>The red kite</p> -->
<p>My best friend</p> - 32.True or false: <input> has a closing tag. (a) False (b) True
-
33.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>The red kite</p>
<p>Cricket is fun.</p>
<p>Rain today</p>
<h2>The red kite</h2> - 34.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <ol> (d) <br>
-
35.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
<p>My pets</p> -
36.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="100"> -
37.🔗 Which address opens when you click this link?
<a href="https://example.com">Contact us</a> (a) https://example.com (b) art.html (c) maths.html (d) Contact us -
38.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="150"> - 39.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) hosts websites online (d) colours code to help us
- 40.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h2> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h4>
Answer key
- structure
- stores a website’s files
- </h2>
- <h1>
- School news
- line 3
- </h1>
- in the same tab
- 1
- True
- 4
- Yes
- element
- bus.jpg
- .html
- 1
- <h3>
- bullets
- games.html
- </strong>
- <h1>
- <h5>
- <h6>
- an empty tag
- 1
- 6
- 8
- <h2>
- No
- numbers
- 1
- False
- 4
- <ul>
- 2
- 100
- https://example.com
- 150
- hosts websites online
- <h2>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids