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.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) HyperText (c) High Tech (d) Home Text
- 2.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h2> (b) <h1> (c) <h3> (d) <h5>
-
3.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>My drawings</h1>
<p>Here is my best one.</p>
</body>
</html> (a) My drawings (b) Here is my best one. (c) body (d) Class 7 Blog - 4.Which of these goes in the head? (a) <h1> (b) <style> (c) <ul> (d) <a>
- 5.📋 Which tag goes around each item of a list? (a) <li> (b) <p> (c) <ul> (d) <ol>
- 6.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
-
7.🔗 Where does this link open?
<a href="contact.html">Take the quiz</a> (a) in the same tab (b) in a new tab - 8.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h5> or <h4>? (a) <h1> (b) <h6> (c) <h5> (d) <h4>
-
9.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<p>Fun facts</p>
<!-- <p>My best friend</p> --> (a) Hello, world! (b) Cricket is fun. (c) Fun facts (d) My best friend -
10.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>Fun facts</p>
<h2>My pets</h2>
<h2>Hello, world!</h2>
<p>My pets</p>
<p>Fun facts</p> - 11.🖼️ Why do we add alt text to an image? (a) to describe the image (b) to load it faster (c) to make it bigger (d) to colour it
- 12.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h3> or <h6>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
-
13.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue<br>Stars shine<br>Kites fly high</p> - 14.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 15.True or false: <ol> goes inside ul or ol. (a) False (b) True
- 16.True or false: a code editor sends pages over the net. (a) False (b) True
- 17.🔗 Which tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
-
18.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<!-- <p>Rain today</p> -->
<p>I love mangoes.</p>
<!-- <p>Our school trip</p> --> - 19.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Line (d) Link
-
20.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Orange</li>
<li>Banana</li>
<li>Papaya</li>
<li>Litchi</li>
<li>Mango</li>
</ol> - 21.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
- 22.📄 What is the first line of an HTML5 page? (a) <head> (b) <body> (c) <html> (d) <!DOCTYPE html>
- 23.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 24.🔢 In a basic web page file, which comes first: “<body>” or “<html>”? (a) <body> (b) <html>
-
25.💬 Which text will NOT show on the page?
<p>Rain today</p>
<!-- <p>I love mangoes.</p> -->
<p>My pets</p> (a) Rain today (b) My pets (c) I love mangoes. - 26.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) src (d) id
- 27.True or false: <br> has a closing tag. (a) False (b) True
- 28.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>
- 29.🔍 Which is the odd one out? (a) answers page requests (b) is where we type code (c) shows line numbers (d) colours code to help us
-
30.💬 Which text will NOT show on the page?
<p>My pets</p>
<p>Our school trip</p>
<!-- <p>Cricket is fun.</p> -->
<p>My best friend</p> (a) Our school trip (b) My best friend (c) My pets (d) Cricket is fun. -
31.🔍 One closing tag is missing. Which one?
<h3>My pets</h3>
<p>Good morning!</p>
<i>Cricket is fun. (a) </i> (b) </h1> (c) </h3> (d) </p> - 32.📝 What does <br> do? (a) starts a new line (b) makes text bold (c) makes a list (d) adds a picture
- 33.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as a dot (c) as one space (d) as a new line
-
34.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Jamun</li>
</ol> -
35.📋 What number does the browser show next to “Banana”?
<ol start="7">
<li>Papaya</li>
<li>Jamun</li>
<li>Orange</li>
<li>Banana</li>
<li>Guava</li>
</ol> -
36.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="250"> - 37.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <a> (c) <table> (d) <p>
-
38.🔍 Which line is missing its closing tag?
line 1: <b>The red kite
line 2: <h2>Cricket is fun.</h2>
line 3: <i>I love mangoes.</i> (a) line 2 (b) line 1 (c) line 3 -
39.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow</p> -
40.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>The red kite</p>
<p>Hello, world!</p> (a) The red kite (b) Good morning! (c) Hello, world!
Answer key
- HyperText
- <h1>
- My drawings
- <style>
- <li>
- in the body
- in the same tab
- <h1>
- My best friend
- 4
- to describe the image
- <h2>
- 4
- in the head
- False
- False
- <a>
- 1
- Language
- 6
- 1
- <!DOCTYPE html>
- an empty tag
- <html>
- I love mangoes.
- href
- False
- <ol>
- answers page requests
- Cricket is fun.
- </i>
- starts a new line
- as one space
- 2
- 10
- 250
- <meta charset="utf-8">
- line 1
- 2
- Good morning!
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids