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.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 2.True or false: HTML on its own can run a game loop. (a) True (b) False
- 3.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Link (d) Line
- 4.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h5> (d) <h1>
-
5.🔗 Which address opens when you click this link?
<a href="quiz.html">Play games</a> (a) about.html (b) Play games (c) quiz.html (d) games.html - 6.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <li> (c) <ol>
-
7.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Take the quiz</a> (a) in the same tab (b) in a new tab -
8.🔗 Which words do you click on?
<a href="news.html">Take the quiz</a> (a) href (b) Take the quiz (c) news.html (d) Play games - 9.📝 What does <p> make? (a) a paragraph (b) a picture (c) a link (d) a table
-
10.🔍 Which line is missing its closing tag?
line 1: <u>I love mangoes.
line 2: <i>Good morning!</i>
line 3: <h3>Rain today</h3> (a) line 2 (b) line 3 (c) line 1 -
11.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Mango</li>
<li>Guava</li>
</ol> (a) numbers (b) bullets -
12.🔍 One closing tag is missing. Which one?
<strong>Hello, world!</strong>
<i>Good morning!
<h3>Our school trip</h3> (a) </em> (b) </strong> (c) </h3> (d) </i> - 13.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) is where we type code (d) stores a website’s files
-
14.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Orange</li>
</ul> (a) numbers (b) bullets -
15.🔠 How many headings are in this code?
<h1>My pets</h1>
<h2>Hello, world!</h2>
<h4>My best friend</h4> -
16.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Fun facts</p>
<h4>Good morning!</h4> - 17.📝 What does <br> do? (a) adds a picture (b) makes text bold (c) makes a list (d) starts a new line
-
18.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Banana</li>
<li>Papaya</li>
</ol> (a) bullets (b) numbers - 19.Which of these is a closing tag? (a) <title> (b) </title> (c) <b> (d) <p>
-
20.🔗 Which address opens when you click this link?
<a href="games.html">Contact us</a> (a) about.html (b) contact.html (c) Contact us (d) games.html -
21.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Good morning!</p> -->
<!-- <p>I love mangoes.</p> --> - 22.True or false: HTML on its own cannot make bullet lists. (a) True (b) False
-
23.🔗 Which words do you click on?
<a href="art.html">Take the quiz</a> (a) href (b) art.html (c) Take the quiz (d) Play games -
24.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>The red kite</p>
<p>Fun facts</p> - 25.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
-
26.🔗 Which address opens when you click this link?
<a href="art.html">About us</a> (a) quiz.html (b) About us (c) art.html (d) news.html - 27.🖼️ Which attribute of <img> describes the picture? (a) height (b) src (c) alt (d) width
-
28.🔍 Which line is missing its closing tag?
line 1: <strong>My pets</strong>
line 2: <b>My best friend</b>
line 3: <i>Fun facts (a) line 3 (b) line 2 (c) line 1 -
29.📋 Does this list show bullets or numbers?
<ul>
<li>Banana</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets - 30.🖼️ Which attribute of <img> sets how tall it is? (a) height (b) src (c) alt (d) width
- 31.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
-
32.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<!-- <p>Cricket is fun.</p> -->
<!-- <p>I love mangoes.</p> -->
<p>Rain today</p> - 33.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 34.True or false: in <img>, src sets how tall it is. (a) False (b) True
- 35.True or false: <h1> goes in the head. (a) True (b) False
- 36.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
- 37.🏷️ Which is the closing tag for <h3>? (a) <h3> (b) <\h3> (c) </h3> (d) <h3/>
- 38.Which of these is an opening tag? (a) <title> (b) </body> (c) </h1> (d) </li>
- 39.💬 How does an HTML comment end? (a) // (b) */ (c) --> (d) >>
-
40.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>Rain today</p> -->
<p>Good morning!</p>
<!-- <p>The red kite</p> -->
Answer key
- Yes
- False
- Language
- <h1>
- quiz.html
- <ol>
- in a new tab
- Take the quiz
- a paragraph
- line 1
- numbers
- </i>
- is where we type code
- bullets
- 3
- 2
- starts a new line
- numbers
- </title>
- games.html
- 1
- False
- Take the quiz
- 3
- <
- art.html
- alt
- line 3
- bullets
- height
- <ol>
- 1
- an empty tag
- False
- False
- in the head
- </h3>
- <title>
- -->
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids