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.📄 Can HTML on its own make links to pages? (a) Yes (b) No
-
2.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<p>Rain today</p>
<!-- <p>My best friend</p> --> (a) Our school trip (b) My best friend (c) Rain today - 3.True or false: HTML on its own cannot count button clicks. (a) False (b) True
- 4.📄 Can HTML on its own make headings? (a) Yes (b) No
-
5.📋 How many items does this list show?
<ul>
<li>Papaya</li>
<li>Jamun</li>
<li>Guava</li>
<li>Orange</li>
</ul> -
6.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<p>Good morning!</p> - 7.True or false: <li> is one item of a list. (a) False (b) True
-
8.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="400"> (a) bus.jpg (b) An old fort (c) Our school bus (d) width -
9.🔗 Which words do you click on?
<a href="maths.html">Maths fun</a> (a) maths.html (b) Art corner (c) href (d) Maths fun -
10.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Stars shine<br>Birds sing<br>Kites fly high<br>Roses are red</p> -
11.🔍 One closing tag is missing. Which one?
<h2>Cricket is fun.
<em>Good morning!</em>
<p>The red kite</p> (a) </em> (b) </h2> (c) </p> (d) </b> - 12.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <h6> (d) <br>
-
13.🔍 Which line is missing its closing tag?
line 1: <small>Fun facts</small>
line 2: <u>Rain today</u>
line 3: <p>Cricket is fun. (a) line 3 (b) line 2 (c) line 1 - 14.True or false: in <img>, height is read by screen readers. (a) False (b) True
-
15.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Class 7 Blog (b) Welcome! (c) Here is my best one. (d) body -
16.🔗 Which address opens when you click this link?
<a href="quiz.html">Contact us</a> (a) quiz.html (b) Contact us (c) games.html (d) about.html -
17.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<!-- <p>Our school trip</p> -->
<p>Cricket is fun.</p>
<!-- <p>My pets</p> --> - 18.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 19.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h4>? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
- 20.📄 Which part holds everything you see on the page? (a) the body (b) the doctype (c) the title (d) the head
- 21.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
-
22.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>My drawings</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) My drawings (b) We won by 5 runs. (c) My Hobbies (d) index.html -
23.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>Hello, world!</p>
<!-- <p>My pets</p> --> - 24.True or false: HTML on its own can show paragraphs. (a) True (b) False
- 25.💬 How does an HTML comment start? (a) # (b) /* (c) <!-- (d) //
- 26.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h4>? (a) <h4> (b) <h6> (c) <h3> (d) <h5>
-
27.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Roses are red</p> - 28.True or false: <ol> is an unordered list. (a) False (b) True
- 29.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <ol> (c) <li>
-
30.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<p>Good morning!</p>
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p>
<p>My best friend</p> -
31.🔗 Where does this link open?
<a href="https://example.com" target="_blank">About us</a> (a) in the same tab (b) in a new tab - 32.🔢 In a basic web page file, which comes FIRST? (a) <html> (b) <!DOCTYPE html> (c) </body> (d) <body>
- 33.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 34.🏷️ Which is the closing tag for <h3>? (a) <\h3> (b) <h3> (c) <h3/> (d) </h3>
- 35.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
-
36.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Banana</li>
</ol> - 37.🖼️ Which tag puts a picture on a page? (a) <img> (b) <a> (c) <p> (d) <pic>
- 38.📝 What do we need to write HTML? (a) a microphone (b) a plain text editor (c) a paintbrush (d) a printer
- 39.True or false: a web browser hosts websites online. (a) False (b) True
- 40.Which of these is an opening tag? (a) </b> (b) <h1> (c) </p> (d) </h1>
Answer key
- Yes
- My best friend
- True
- Yes
- 4
- 3
- True
- Our school bus
- Maths fun
- 5
- </h2>
- <h1>
- line 3
- False
- Welcome!
- quiz.html
- 1
- a closing tag
- <h6>
- the body
- <ul>
- My Hobbies
- 2
- True
- <!--
- <h3>
- 2
- False
- <ol>
- 4
- in a new tab
- <!DOCTYPE html>
- Yes
- </h3>
- <ul>
- 2
- <img>
- a plain text editor
- False
- <h1>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids