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 items does this list show?
<ul>
<li>Papaya</li>
<li>Orange</li>
<li>Jamun</li>
</ul> - 2.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) in a big heading (d) on the browser tab
- 3.True or false: a web browser shows pages from the web. (a) True (b) False
- 4.Which of these has a closing tag? (a) <br> (b) <input> (c) <p> (d) <hr>
- 5.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h1>? (a) <h1> (b) <h5> (c) <h6> (d) <h3>
- 6.Which of these is true of a web browser? (a) colours code to help us (b) hosts websites online (c) stores a website’s files (d) turns HTML into a page
-
7.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="200"> (a) map.png (b) width (c) Birthday cake (d) Map of India -
8.🔗 Which words do you click on?
<a href="news.html">Contact us</a> (a) href (b) news.html (c) Visit the site (d) Contact us -
9.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Kites fly high</p> - 10.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <h2> (c) <\h2> (d) <h2/>
- 11.True or false: in <img>, src tells which image to load. (a) True (b) False
- 12.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <br> (d) <ol>
- 13.True or false: a code editor has an address bar. (a) True (b) False
- 14.True or false: <style> goes in the body. (a) True (b) False
- 15.📝 Does <img> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 16.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
17.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Papaya</li>
</ol> (a) numbers (b) bullets - 18.Which of these is true of a code editor? (a) shows line numbers (b) sends pages over the net (c) hosts websites online (d) turns HTML into a page
-
19.🔗 Which words do you click on?
<a href="quiz.html">About us</a> (a) About us (b) Contact us (c) href (d) quiz.html - 20.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
- 21.True or false: <p> goes in the head. (a) True (b) False
-
22.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>Our school trip</p>
<p>I love mangoes.</p>
<p>Cricket is fun.</p> (a) I love mangoes. (b) Hello, world! (c) Our school trip (d) Cricket is fun. - 23.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
-
24.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Fun facts</p>
<h2>Hello, world!</h2>
<p>Cricket is fun.</p> - 25.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) HyperText (c) Hot Tags (d) Home Text
-
26.🔍 One closing tag is missing. Which one?
<h2>I love mangoes.</h2>
<small>Rain today</small>
<em>Cricket is fun. (a) </h2> (b) </p> (c) </em> (d) </small> -
27.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>The red kite</p>
<p>I love mangoes.</p>
<p>Our school trip</p>
<p>I love mangoes.</p> - 28.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
29.🔗 Which words do you click on?
<a href="games.html">Maths fun</a> (a) games.html (b) Art corner (c) href (d) Maths fun -
30.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Mars is red.</p>
</body>
</html> (a) Mars is red. (b) Easy snacks (c) Riya’s Recipes (d) index.html - 31.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <a> (d) <img>
-
32.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>My pets</p>
<p>My pets</p>
<p>The red kite</p> - 33.🔠 Are headings shown in bold by default? (a) No (b) Yes
-
34.🔗 Where does this link open?
<a href="art.html">Maths fun</a> (a) in a new tab (b) in the same tab - 35.Which of these is true of a web browser? (a) colours code to help us (b) saves our .html files (c) has an address bar (d) hosts websites online
- 36.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 37.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h6> or <h1>? (a) <h4> (b) <h6> (c) <h3> (d) <h1>
-
38.🔍 Which line is missing its closing tag?
line 1: <b>Hello, world!</b>
line 2: <h2>Rain today</h2>
line 3: <em>Good morning! (a) line 1 (b) line 3 (c) line 2 -
39.📋 How many items does this list show?
<ul>
<li>Papaya</li>
<li>Grapes</li>
<li>Orange</li>
<li>Mango</li>
</ul> - 40.Which of these is true of a code editor? (a) opens web pages for us (b) answers page requests (c) has an address bar (d) saves our .html files
Answer key
- 3
- on the browser tab
- True
- <p>
- <h1>
- turns HTML into a page
- Map of India
- Contact us
- 2
- </h2>
- True
- <ul>
- False
- False
- an empty tag
- an opening tag
- numbers
- shows line numbers
- About us
- Markup
- False
- Hello, world!
- <ol>
- 3
- HyperText
- </em>
- 1
- Yes
- Maths fun
- Riya’s Recipes
- <img>
- 4
- Yes
- in the same tab
- has an address bar
- No
- <h1>
- line 3
- 4
- saves our .html files
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids