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.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
2.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<!-- <p>Our school trip</p> -->
<p>My best friend</p>
<p>Good morning!</p>
<!-- <p>Rain today</p> --> - 3.🏷️ Which is the closing tag for <small>? (a) <small> (b) <\small> (c) <small/> (d) </small>
-
4.📋 What number does the browser show next to “Mango”?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Papaya</li>
<li>Litchi</li>
<li>Banana</li>
<li>Orange</li>
</ol> - 5.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 10 (d) 4
-
6.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Rivers flow<br>Stars shine<br>Birds sing</p> - 7.True or false: in <img>, height sets how tall it is. (a) False (b) True
- 8.True or false: <li> is one item of a list. (a) True (b) False
- 9.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
-
10.🔍 One closing tag is missing. Which one?
<strong>Rain today</strong>
<b>My best friend</b>
<u>The red kite (a) </b> (b) </strong> (c) </h1> (d) </u> -
11.📝 How many paragraphs does this code make?
<p>The red kite</p>
<p>I love mangoes.</p>
<p>Rain today</p>
<p>My pets</p>
<p>Hello, world!</p>
<h2>Rain today</h2> - 12.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 13.True or false: <ol> goes inside ul or ol. (a) False (b) True
- 14.True or false: in <img>, src names the picture file. (a) True (b) False
- 15.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
- 16.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <ul> (d) <hr>
- 17.📋 Which tag goes around each item of a list? (a) <ol> (b) <p> (c) <ul> (d) <li>
-
18.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Fun facts</p> -->
<p>Cricket is fun.</p> (a) Cricket is fun. (b) I love mangoes. (c) Fun facts - 19.True or false: in <img>, alt describes the picture. (a) True (b) False
-
20.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Hello, world!</p>
<p>Rain today</p>
<p>My pets</p> - 21.🔍 Which is the odd one out? (a) shows line numbers (b) colours code to help us (c) shows pages from the web (d) is where we type code
- 22.💬 How does an HTML comment end? (a) // (b) >> (c) --> (d) */
- 23.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dollar $ (c) a hash # (d) a dot .
- 24.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 25.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
- 26.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
27.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets - 28.🔍 Which is the odd one out? (a) colours code to help us (b) shows line numbers (c) saves our .html files (d) stores a website’s files
-
29.🔍 One closing tag is missing. Which one?
<small>Hello, world!
<u>Fun facts</u>
<h3>My pets</h3> (a) </u> (b) </h1> (c) </small> (d) </h3> -
30.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Papaya</li>
</ul> (a) numbers (b) bullets - 31.🔢 In a basic web page file, which comes first: “</html>” or “</head>”? (a) </head> (b) </html>
- 32.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
33.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>Cricket is fun.</p>
<p>The red kite</p> - 34.📝 What does <p> make? (a) a link (b) a paragraph (c) a table (d) a picture
- 35.📋 Which list tag is an ordered list? (a) <ul> (b) <ol> (c) <li>
- 36.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) Home Text (c) HyperText (d) High Tech
- 37.Which of these is a closing tag? (a) <h1> (b) <li> (c) </title> (d) <p>
- 38.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 39.🏷️ HTML marks up text using ___. (a) tags (b) keys (c) pixels (d) wires
-
40.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Rivers flow</p>
Answer key
- an opening tag
- 3
- </small>
- 2
- 6
- 4
- True
- True
- opens it in a new tab
- </u>
- 5
- a closing tag
- False
- True
- True
- <ul>
- <li>
- Fun facts
- True
- 1
- shows pages from the web
- -->
- a slash /
- has a closing tag
- False
- an empty tag
- bullets
- stores a website’s files
- </small>
- bullets
- </head>
- an opening tag
- 3
- a paragraph
- <ol>
- HyperText
- </title>
- an opening tag
- tags
- 3
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids