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 heading shows the SMALLEST text: <h6>, <h3>, <h1> or <h5>? (a) <h1> (b) <h5> (c) <h3> (d) <h6>
- 2.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
- 3.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
4.📋 What number does the browser show next to “Banana”?
<ol start="9">
<li>Grapes</li>
<li>Mango</li>
<li>Banana</li>
</ol> - 5.📄 What is the first line of an HTML5 page? (a) <html> (b) <body> (c) <head> (d) <!DOCTYPE html>
-
6.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Jamun</li>
<li>Guava</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 7.🔤 In “HTML”, what does the M stand for? (a) Mouse (b) Markup (c) Machine (d) Modern
- 8.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <a> (d) <img>
-
9.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h4>My best friend</h4>
<h3>The red kite</h3> -
10.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>My pets</p> -->
<p>Good morning!</p>
<p>I love mangoes.</p> (a) I love mangoes. (b) The red kite (c) Good morning! (d) My pets - 11.🌐 Which one shows pages from the web? (a) a web browser (b) a code editor (c) a web server
- 12.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h4> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h4>
- 13.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
- 14.True or false: <ol> lists steps in order. (a) False (b) True
- 15.📛 In <a href="x.html">, what is href? (a) an attribute (b) a comment (c) a closing tag (d) an element name
-
16.🔍 Which line is missing its closing tag?
line 1: <i>Good morning!</i>
line 2: <h2>Our school trip</h2>
line 3: <h3>I love mangoes. (a) line 1 (b) line 2 (c) line 3 - 17.🖼️ Which attribute of <img> describes the picture? (a) src (b) alt (c) height (d) width
- 18.📄 Can HTML on its own count button clicks? (a) No (b) Yes
-
19.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>Rain today</p>
<p>Rain today</p>
<h2>Cricket is fun.</h2>
<p>Good morning!</p>
<p>My pets</p> -
20.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<p>Our school trip</p>
<!-- <p>Cricket is fun.</p> -->
<p>The red kite</p> -
21.🔍 One closing tag is missing. Which one?
<small>Good morning!
<h2>My pets</h2>
<u>Rain today</u> (a) </small> (b) </i> (c) </h2> (d) </u> - 22.🔗 What does HyperText mean? (a) very big text (b) text with links (c) secret text (d) text in colour
-
23.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) Art corner (b) games.html (c) contact.html (d) about.html - 24.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
- 25.🏷️ Which is the closing tag for <small>? (a) <small> (b) <\small> (c) <small/> (d) </small>
- 26.True or false: <li> goes inside ul or ol. (a) False (b) True
- 27.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h4> or <h3>? (a) <h4> (b) <h6> (c) <h2> (d) <h3>
- 28.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <h2/> (c) <\h2> (d) <h2>
-
29.🔍 One closing tag is missing. Which one?
<small>My best friend
<strong>Rain today</strong>
<h3>I love mangoes.</h3> (a) </small> (b) </strong> (c) </h3> (d) </u> - 30.True or false: <b> has a closing tag. (a) False (b) True
-
31.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Rain today</p>
<p>Cricket is fun.</p> - 32.Which of these is an opening tag? (a) </b> (b) <b> (c) </h1> (d) </body>
- 33.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 34.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 35.📄 Which part holds everything you see on the page? (a) the head (b) the doctype (c) the title (d) the body
- 36.📄 Can HTML on its own make bullet lists? (a) No (b) Yes
- 37.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 38.🔍 Which is the odd one out? (a) shows pages from the web (b) hosts websites online (c) turns HTML into a page (d) has an address bar
- 39.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a slash / (d) a dot .
- 40.📝 What does <p> make? (a) a table (b) a paragraph (c) a link (d) a picture
Answer key
- <h6>
- <ol>
- a closing tag
- 11
- <!DOCTYPE html>
- 5
- Markup
- <a>
- 3
- My pets
- a web browser
- <h1>
- </b>
- True
- an attribute
- line 3
- alt
- No
- 5
- 3
- </small>
- text with links
- games.html
- False
- </small>
- True
- <h2>
- </h2>
- </small>
- True
- 3
- <b>
- a closing tag
- Yes
- the body
- Yes
- a closing tag
- hosts websites online
- a slash /
- a paragraph
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids