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 paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>I love mangoes.</p>
<p>My pets</p>
<p>Rain today</p> - 2.📋 Which list tag is one item of a list? (a) <ul> (b) <li> (c) <ol>
- 3.💬 Does the browser show comments on the page? (a) Yes (b) No
- 4.🔍 Which is the odd one out? (a) is where we type code (b) saves our .html files (c) shows pages from the web (d) colours code to help us
- 5.Which of these is true of a web browser? (a) hosts websites online (b) opens web pages for us (c) sends pages over the net (d) is where we type code
-
6.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Birds sing<br>Roses are red</p> -
7.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>My best friend</p>
<p>My pets</p>
<p>Cricket is fun.</p> (a) My pets (b) Cricket is fun. (c) Hello, world! (d) My best friend - 8.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 9.Which of these is an empty tag? (a) <p> (b) <title> (c) <li> (d) <meta>
- 10.Which of these is an opening tag? (a) </p> (b) <title> (c) </li> (d) </b>
-
11.📋 What number does the browser show next to “Banana”?
<ol>
<li>Litchi</li>
<li>Mango</li>
<li>Jamun</li>
<li>Banana</li>
</ol> -
12.📋 Does this list show bullets or numbers?
<ol>
<li>Banana</li>
<li>Papaya</li>
</ol> (a) bullets (b) numbers - 13.Which of these is a closing tag? (a) </p> (b) <title> (c) <b> (d) <h1>
-
14.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) About us (b) games.html (c) href (d) Play games -
15.🔍 One closing tag is missing. Which one?
<em>Fun facts
<u>Cricket is fun.</u>
<p>My pets</p> (a) </h2> (b) </em> (c) </u> (d) </p> -
16.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h4>My best friend</h4>
<p>I love mangoes.</p> - 17.📋 Which tag goes around each item of a list? (a) <ul> (b) <p> (c) <li> (d) <ol>
- 18.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
- 19.True or false: in <img>, src tells which image to load. (a) True (b) False
- 20.True or false: a web browser saves our .html files. (a) False (b) True
-
21.💬 How many paragraphs show on the page?
<p>The red kite</p>
<p>My pets</p>
<p>Hello, world!</p>
<p>I love mangoes.</p>
<!-- <p>Fun facts</p> --> -
22.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>Good morning!</p>
<h3>My best friend</h3>
<p>Good morning!</p>
<h2>Fun facts</h2> -
23.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Fun facts</p> -->
<!-- <p>I love mangoes.</p> -->
<p>Good morning!</p> -
24.🔗 Which words do you click on?
<a href="quiz.html">Visit the site</a> (a) Visit the site (b) quiz.html (c) href (d) Maths fun - 25.📄 What is the first line of an HTML5 page? (a) <body> (b) <html> (c) <head> (d) <!DOCTYPE html>
-
26.📋 Does this list show bullets or numbers?
<ol>
<li>Guava</li>
<li>Jamun</li>
<li>Papaya</li>
</ol> (a) bullets (b) numbers -
27.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>Our school trip</p>
<h2>Rain today</h2> -
28.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>Fun facts</h2>
<p>Hello, world!</p> - 29.💬 How does an HTML comment start? (a) <!-- (b) /* (c) # (d) //
- 30.📝 What does <p> make? (a) a link (b) a picture (c) a table (d) a paragraph
- 31.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
32.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>Our school trip</p>
<p>Fun facts</p> (a) Fun facts (b) Rain today (c) Our school trip -
33.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets -
34.🔗 Which address opens when you click this link?
<a href="contact.html">About us</a> (a) contact.html (b) maths.html (c) About us (d) https://example.com - 35.True or false: <ul> goes in the body. (a) False (b) True
- 36.True or false: <ol> lists things in any order. (a) True (b) False
- 37.🔠 How many heading levels does HTML have? (a) 10 (b) 6 (c) 3 (d) 4
- 38.True or false: HTML on its own cannot make a form. (a) False (b) True
- 39.True or false: a web browser hosts websites online. (a) True (b) False
- 40.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to make it bigger (d) to describe the image
Answer key
- 3
- <li>
- No
- shows pages from the web
- opens web pages for us
- 3
- Hello, world!
- No
- <meta>
- <title>
- 4
- numbers
- </p>
- Play games
- </em>
- 2
- <li>
- 1
- True
- False
- 4
- 3
- 2
- Visit the site
- <!DOCTYPE html>
- numbers
- 2
- 2
- <!--
- a paragraph
- an opening tag
- Rain today
- bullets
- contact.html
- True
- False
- 6
- False
- False
- to describe the image
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids