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 heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h4>? (a) <h6> (b) <h4> (c) <h5> (d) <h1>
- 2.🖼️ Which attribute of <img> describes the picture? (a) width (b) alt (c) src (d) height
-
3.🔗 Which words do you click on?
<a href="https://example.com">Contact us</a> (a) Contact us (b) https://example.com (c) href (d) Visit the site -
4.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>My pets</p>
<p>Hello, world!</p>
<p>My pets</p> - 5.📄 Where does the text of <title> appear? (a) nowhere (b) on the browser tab (c) in a big heading (d) at the bottom
- 6.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the body (d) the head
- 7.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 8.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 9.🔢 In a basic web page file, which comes LAST? (a) </head> (b) </html> (c) <head> (d) </body>
- 10.🏷️ Which is the closing tag for <small>? (a) <\small> (b) </small> (c) <small/> (d) <small>
- 11.True or false: <br> is an empty tag. (a) True (b) False
- 12.Which of these has a closing tag? (a) <ul> (b) <br> (c) <img> (d) <hr>
-
13.🔗 Which address opens when you click this link?
<a href="news.html">About us</a> (a) About us (b) news.html (c) games.html (d) quiz.html - 14.True or false: HTML on its own can make tables. (a) False (b) True
- 15.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 16.True or false: HTML on its own can add up two numbers. (a) True (b) False
-
17.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Match report</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) index.html (b) Match report (c) Class 7 Blog (d) Thanks for visiting. -
18.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>Rain today</p>
<p>Good morning!</p> -
19.🔍 One closing tag is missing. Which one?
<p>Our school trip</p>
<h1>Hello, world!</h1>
<u>Fun facts (a) </h1> (b) </u> (c) </i> (d) </p> - 20.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
- 21.💬 Does the browser show comments on the page? (a) Yes (b) No
- 22.True or false: <img> goes in the body. (a) False (b) True
- 23.Which of these is true of a web browser? (a) opens web pages for us (b) answers page requests (c) stores a website’s files (d) saves our .html files
-
24.🔗 Which words do you click on?
<a href="maths.html">Contact us</a> (a) maths.html (b) href (c) Contact us (d) Visit the site - 25.Which of these goes in the body? (a) <title> (b) <ul> (c) <meta charset="utf-8"> (d) <link rel="stylesheet">
-
26.💬 Which text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>I love mangoes.</p>
<p>Our school trip</p> (a) I love mangoes. (b) The red kite (c) Our school trip - 27.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h5> or <h3>? (a) <h1> (b) <h3> (c) <h2> (d) <h5>
-
28.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Rain today</p>
<p>Good morning!</p> - 29.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h4> or <h1>? (a) <h5> (b) <h1> (c) <h4> (d) <h6>
- 30.📝 What does <hr> draw? (a) a table (b) a line across the page (c) a picture (d) a link
- 31.True or false: HTML on its own cannot make links to pages. (a) True (b) False
- 32.Which of these is an opening tag? (a) <title> (b) </body> (c) </li> (d) </h1>
- 33.Which of these has a closing tag? (a) <img> (b) <hr> (c) <meta> (d) <h1>
- 34.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
-
35.🔍 One closing tag is missing. Which one?
<b>My best friend</b>
<strong>Good morning!
<small>I love mangoes.</small> (a) </small> (b) </strong> (c) </em> (d) </b> -
36.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="350"> (a) width (b) Our school bus (c) bus.jpg (d) An old fort - 37.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <ul> (c) <li>
-
38.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>My pets</p>
<!-- <p>Our school trip</p> -->
<p>Rain today</p> (a) Good morning! (b) Our school trip (c) My pets (d) Rain today -
39.📋 Does this list show bullets or numbers?
<ul>
<li>Banana</li>
<li>Papaya</li>
</ul> (a) bullets (b) numbers -
40.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>Fun facts</p>
<p>Our school trip</p>
<p>Good morning!</p> (a) Hello, world! (b) Fun facts (c) Good morning! (d) Our school trip
Answer key
- <h1>
- alt
- Contact us
- 4
- on the browser tab
- the body
- a closing tag
- No
- </html>
- </small>
- True
- <ul>
- news.html
- True
- Yes
- False
- Class 7 Blog
- 3
- </u>
- a web browser
- No
- True
- opens web pages for us
- Contact us
- <ul>
- The red kite
- <h5>
- 2
- <h6>
- a line across the page
- False
- <title>
- <h1>
- in the head
- </strong>
- Our school bus
- <li>
- Our school trip
- bullets
- Hello, world!
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids