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 is used for the main title on a page? (a) <br> (b) <p> (c) <h6> (d) <h1>
- 2.🔍 Which is the odd one out? (a) colours code to help us (b) shows line numbers (c) answers page requests (d) is where we type code
-
3.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>My best friend</p>
<p>Our school trip</p> -
4.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="100"> - 5.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
- 6.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
-
7.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>Good morning!</p>
<!-- <p>Fun facts</p> --> -
8.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="50"> (a) width (b) Our school bus (c) The full moon (d) moon.png - 9.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) structure (d) colours
-
10.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Mango</li>
<li>Banana</li>
<li>Papaya</li>
</ol> - 11.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
-
12.🔗 Where does this link open?
<a href="news.html">About us</a> (a) in the same tab (b) in a new tab - 13.True or false: <li> goes inside ul or ol. (a) True (b) False
- 14.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
- 15.True or false: <ul> shows bullet points. (a) True (b) False
- 16.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
- 17.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
-
18.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Grapes</li>
<li>Litchi</li>
<li>Banana</li>
</ol> - 19.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h2> or <h1>? (a) <h3> (b) <h4> (c) <h2> (d) <h1>
- 20.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 21.🌍 Which program shows a web page to us? (a) a calculator (b) a music player (c) a paint program (d) a web browser
- 22.Which of these goes in the body? (a) <title> (b) <meta charset="utf-8"> (c) <style> (d) <table>
- 23.True or false: <ul> goes in the body. (a) False (b) True
-
24.🔍 Which line is missing its closing tag?
line 1: <h2>I love mangoes.</h2>
line 2: <p>Our school trip</p>
line 3: <strong>Rain today (a) line 1 (b) line 2 (c) line 3 -
25.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Good morning!</p>
<p>Our school trip</p>
<p>Rain today</p>
<p>Cricket is fun.</p> -
26.🖼️ Which picture file does the browser load?
<img src="dog.jpg" alt="A happy dog" width="100"> (a) bus.jpg (b) dog.jpg (c) A happy dog (d) moon.png - 27.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
- 28.Which of these is true of a web server? (a) opens web pages for us (b) shows line numbers (c) has an address bar (d) stores a website’s files
- 29.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h4>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
- 30.True or false: in <img>, alt tells which image to load. (a) False (b) True
- 31.True or false: <input> has a closing tag. (a) False (b) True
-
32.📋 How many items does this list show?
<ul>
<li>Guava</li>
<li>Mango</li>
<li>Litchi</li>
<li>Papaya</li>
</ul> - 33.🔍 Which is the odd one out? (a) hosts websites online (b) stores a website’s files (c) sends pages over the net (d) is where we type code
-
34.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> -
35.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red<br>Sky is blue<br>Rivers flow</p> - 36.🔍 Which is the odd one out? (a) colours code to help us (b) has an address bar (c) turns HTML into a page (d) shows pages from the web
-
37.🔗 Where does this link open?
<a href="news.html" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab - 38.Which of these is an opening tag? (a) </li> (b) <b> (c) </p> (d) </title>
-
39.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Planets</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) index.html (c) Cricket Club (d) Planets -
40.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Roses are red<br>Rivers flow<br>Stars shine</p>
Answer key
- <h1>
- answers page requests
- 1
- 100
- a code editor
- <ul>
- 2
- The full moon
- structure
- 3
- <ul>
- in the same tab
- True
- <h6>
- True
- in the head
- <ol>
- 4
- <h1>
- an opening tag
- a web browser
- <table>
- True
- line 3
- 4
- dog.jpg
- <
- stores a website’s files
- <h1>
- False
- False
- 4
- is where we type code
- 100
- 4
- colours code to help us
- in a new tab
- <b>
- Cricket Club
- 5
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids