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 heading levels does HTML have? (a) 3 (b) 6 (c) 4 (d) 10
-
2.🔗 Which address opens when you click this link?
<a href="art.html">Play games</a> (a) quiz.html (b) Play games (c) art.html (d) news.html - 3.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
- 4.True or false: <li> is an unordered list. (a) False (b) True
- 5.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
-
6.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="350"> (a) A tiger asleep (b) tiger.jpg (c) kite.png (d) map.png -
7.🔗 Which address opens when you click this link?
<a href="maths.html">Visit the site</a> (a) Visit the site (b) art.html (c) maths.html (d) news.html - 8.📄 Can HTML on its own add up two numbers? (a) Yes (b) No
- 9.Which of these is an empty tag? (a) <title> (b) <ul> (c) <li> (d) <meta>
- 10.Which of these is true of a code editor? (a) shows pages from the web (b) turns HTML into a page (c) stores a website’s files (d) saves our .html files
-
11.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Match report</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Match report (b) Here is my best one. (c) Riya’s Recipes (d) index.html -
12.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Jamun</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Banana</li>
<li>Guava</li>
</ol> -
13.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Class 7 Blog (b) Welcome! (c) body (d) Thanks for visiting. -
14.🔍 One closing tag is missing. Which one?
<h1>My pets
<b>I love mangoes.</b>
<u>Our school trip</u> (a) </h1> (b) </u> (c) </b> (d) </h2> -
15.🔗 Which words do you click on?
<a href="maths.html">About us</a> (a) href (b) maths.html (c) Contact us (d) About us - 16.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <title> (c) <link rel="stylesheet"> (d) <a>
- 17.🔗 What does HyperText mean? (a) secret text (b) text in colour (c) very big text (d) text with links
- 18.📝 What do we need to write HTML? (a) a plain text editor (b) a microphone (c) a paintbrush (d) a printer
-
19.🔍 Which line is missing its closing tag?
line 1: <small>Cricket is fun.</small>
line 2: <h3>Good morning!
line 3: <strong>I love mangoes.</strong> (a) line 1 (b) line 2 (c) line 3 - 20.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
- 21.Which of these has a closing tag? (a) <input> (b) <hr> (c) <img> (d) <title>
- 22.True or false: <p> is an empty tag. (a) True (b) False
-
23.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<p>Hello, world!</p>
<!-- <p>My pets</p> -->
<p>Fun facts</p> (a) Fun facts (b) My pets (c) Our school trip (d) Hello, world! - 24.🔗 Which tag makes a clickable link? (a) <img> (b) <p> (c) <a> (d) <link>
- 25.True or false: in <img>, width is read by screen readers. (a) False (b) True
- 26.True or false: in <img>, src names the picture file. (a) True (b) False
- 27.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) attribute (d) element
-
28.📋 What number does the browser show next to “Banana”?
<ol start="3">
<li>Papaya</li>
<li>Jamun</li>
<li>Banana</li>
</ol> - 29.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h6> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h6>
- 30.True or false: <meta> is an empty tag. (a) True (b) False
- 31.🖼️ Which attribute of <img> tells which image to load? (a) height (b) src (c) width (d) alt
- 32.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
-
33.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>My pets</p>
<p>Cricket is fun.</p>
<p>Good morning!</p> - 34.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h5> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
-
35.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Mango</li>
<li>Papaya</li>
</ul> (a) bullets (b) numbers - 36.Which of these is true of a web server? (a) sends pages over the net (b) opens web pages for us (c) turns HTML into a page (d) shows pages from the web
-
37.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Birds sing</p> - 38.True or false: <ul> is an unordered list. (a) True (b) False
- 39.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <head> (c) </head> (d) <!DOCTYPE html>
- 40.True or false: a web browser hosts websites online. (a) False (b) True
Answer key
- 6
- art.html
- on the browser tab
- False
- <h6>
- tiger.jpg
- maths.html
- No
- <meta>
- saves our .html files
- Riya’s Recipes
- 3
- Welcome!
- </h1>
- About us
- <a>
- text with links
- a plain text editor
- line 2
- <ul>
- <title>
- False
- My pets
- <a>
- False
- True
- element
- 5
- <h1>
- True
- src
- a web server
- 3
- <h1>
- bullets
- sends pages over the net
- 2
- True
- </html>
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids