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 text will NOT show on the page?
<p>Hello, world!</p>
<!-- <p>Rain today</p> -->
<p>I love mangoes.</p> (a) I love mangoes. (b) Hello, world! (c) Rain today -
2.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Rivers flow</p> -
3.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="50"> (a) A red kite (b) Map of India (c) kite.png (d) width -
4.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="150"> (a) moon.png (b) width (c) The full moon (d) Our school bus - 5.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows line numbers (c) colours code to help us (d) saves our .html files
- 6.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h6> or <h5>? (a) <h2> (b) <h5> (c) <h4> (d) <h6>
- 7.True or false: <p> has a closing tag. (a) True (b) False
- 8.True or false: a web browser shows pages from the web. (a) True (b) False
- 9.🔗 What does HyperText mean? (a) text in colour (b) secret text (c) very big text (d) text with links
- 10.True or false: <li> is an empty tag. (a) True (b) False
-
11.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers -
12.🔍 Which line is missing its closing tag?
line 1: <u>I love mangoes.</u>
line 2: <p>My pets</p>
line 3: <h2>The red kite (a) line 2 (b) line 1 (c) line 3 -
13.💬 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>My pets</p> -
14.🔠 How many headings are in this code?
<h1>Rain today</h1>
<h3>Hello, world!</h3>
<p>I love mangoes.</p> - 15.True or false: <ol> is an ordered list. (a) False (b) True
- 16.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
- 17.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h1> (d) <h4>
- 18.True or false: <h1> has a closing tag. (a) False (b) True
-
19.💬 How many paragraphs show on the page?
<p>My pets</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>My best friend</p> --> -
20.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Orange</li>
</ol> -
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="50"> (a) The full moon (b) A happy dog (c) dog.jpg (d) width - 22.📋 Which list tag is an ordered list? (a) <ul> (b) <li> (c) <ol>
- 23.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
-
24.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> -->
<p>Hello, world!</p> (a) Cricket is fun. (b) Hello, world! (c) Our school trip - 25.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <img> (d) <pic>
-
26.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) Class 7 Blog (c) Welcome! (d) index.html -
27.📋 How many items does this list show?
<ul>
<li>Litchi</li>
<li>Jamun</li>
<li>Papaya</li>
<li>Grapes</li>
</ul> -
28.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>My best friend</p>
<h2>I love mangoes.</h2>
<p>My pets</p>
<p>Hello, world!</p> - 29.🌐 Which one has an address bar? (a) a web browser (b) a code editor (c) a web server
-
30.🔗 Which address opens when you click this link?
<a href="about.html">Art corner</a> (a) about.html (b) contact.html (c) https://example.com (d) Art corner -
31.🔍 One closing tag is missing. Which one?
<small>Cricket is fun.</small>
<i>I love mangoes.</i>
<h1>Fun facts (a) </small> (b) </u> (c) </h1> (d) </i> -
32.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>My best friend</p>
<!-- <p>Rain today</p> --> (a) My best friend (b) Rain today (c) The red kite -
33.🔗 Which words do you click on?
<a href="news.html">School news</a> (a) href (b) Take the quiz (c) School news (d) news.html - 34.🌐 Which one shows line numbers? (a) a web browser (b) a web server (c) a code editor
- 35.🔠 Which tag is the least important heading? (a) <p> (b) <h1> (c) <h6> (d) <h3>
-
36.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Litchi</li>
</ol> -
37.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Sky is blue<br>Kites fly high</p> - 38.🔗 Which attribute holds the address of a link? (a) alt (b) id (c) src (d) href
- 39.🏷️ Which is the closing tag for <h3>? (a) <h3/> (b) </h3> (c) <\h3> (d) <h3>
- 40.True or false: HTML on its own cannot add up two numbers. (a) True (b) False
Answer key
- Rain today
- 2
- A red kite
- The full moon
- turns HTML into a page
- <h2>
- True
- True
- text with links
- False
- bullets
- line 3
- 2
- 2
- True
- <ul>
- <h1>
- True
- 1
- 2
- A happy dog
- <ol>
- False
- Our school trip
- <img>
- Class 7 Blog
- 4
- 4
- a web browser
- about.html
- </h1>
- Rain today
- School news
- a code editor
- <h6>
- 2
- 3
- href
- </h3>
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids