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 BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h2> (b) <h1> (c) <h3> (d) <h5>
- 2.💬 Does the browser show comments on the page? (a) No (b) Yes
- 3.🏷️ Which is the closing tag for <h3>? (a) <h3> (b) <h3/> (c) <\h3> (d) </h3>
-
4.🔗 Which address opens when you click this link?
<a href="https://example.com">Art corner</a> (a) art.html (b) maths.html (c) Art corner (d) https://example.com -
5.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Jamun</li>
</ol> -
6.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>The red kite</p> -->
<p>My best friend</p>
<p>Our school trip</p> -
7.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<p>Hello, world!</p>
<!-- <p>The red kite</p> --> (a) I love mangoes. (b) The red kite (c) Hello, world! - 8.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <head> (d) <body>
- 9.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 10.Which of these has a closing tag? (a) <br> (b) <input> (c) <h1> (d) <meta>
- 11.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
- 12.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
- 13.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h2>? (a) <h1> (b) <h2> (c) <h5> (d) <h3>
-
14.🔍 One closing tag is missing. Which one?
<h2>I love mangoes.</h2>
<b>Hello, world!</b>
<p>Good morning! (a) </h2> (b) </p> (c) </h1> (d) </b> - 15.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">
- 16.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 17.True or false: <p> goes in the head. (a) True (b) False
- 18.True or false: a web server answers page requests. (a) True (b) False
- 19.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
-
20.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>I love mangoes.</p>
<!-- <p>Good morning!</p> -->
<p>The red kite</p> (a) Good morning! (b) I love mangoes. (c) Fun facts (d) The red kite -
21.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>My best friend</p>
<!-- <p>I love mangoes.</p> --> (a) My best friend (b) I love mangoes. (c) Fun facts - 22.Which of these is true of a web server? (a) sends pages over the net (b) shows line numbers (c) turns HTML into a page (d) colours code to help us
- 23.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
-
24.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<!-- <p>Rain today</p> -->
<!-- <p>Our school trip</p> -->
<p>Fun facts</p>
<!-- <p>My pets</p> --> - 25.Which of these has a closing tag? (a) <li> (b) <hr> (c) <img> (d) <meta>
- 26.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
-
27.🔍 Which line is missing its closing tag?
line 1: <em>My pets</em>
line 2: <u>Cricket is fun.</u>
line 3: <h3>The red kite (a) line 1 (b) line 3 (c) line 2 - 28.🌐 Which one hosts websites online? (a) a web server (b) a web browser (c) a code editor
- 29.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
- 30.True or false: <img> has a closing tag. (a) True (b) False
- 31.Which of these is an opening tag? (a) </li> (b) </title> (c) <b> (d) </h1>
- 32.🔢 In a basic web page file, which comes first: “<html>” or “<body>”? (a) <html> (b) <body>
- 33.True or false: <h1> is an empty tag. (a) True (b) False
-
34.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Litchi</li>
<li>Mango</li>
<li>Papaya</li>
</ol> - 35.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
-
36.🔗 Where does this link open?
<a href="news.html" target="_blank">About us</a> (a) in the same tab (b) in a new tab - 37.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 38.Which of these is a closing tag? (a) <li> (b) <h1> (c) </p> (d) <title>
- 39.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h6> or <h2>? (a) <h5> (b) <h6> (c) <h4> (d) <h2>
- 40.🌐 Which one sends pages over the net? (a) a code editor (b) a web server (c) a web browser
Answer key
- <h1>
- No
- </h3>
- https://example.com
- 2
- 2
- The red kite
- <!DOCTYPE html>
- a closing tag
- <h1>
- Markup
- a code editor
- <h1>
- </p>
- <a href="about.html">
- No
- False
- True
- in the body
- Good morning!
- I love mangoes.
- sends pages over the net
- a slash /
- 2
- <li>
- in the body
- line 3
- a web server
- True
- False
- <b>
- <html>
- False
- 3
- <h5>
- in a new tab
- has a closing tag
- </p>
- <h6>
- a web server
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids