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.🔍 One closing tag is missing. Which one?
<small>Hello, world!
<strong>My pets</strong>
<h2>My best friend</h2> (a) </em> (b) </h2> (c) </small> (d) </strong> -
2.🔗 Which address opens when you click this link?
<a href="quiz.html">Maths fun</a> (a) about.html (b) games.html (c) quiz.html (d) Maths fun - 3.True or false: <ol> is an ordered list. (a) False (b) True
- 4.🖼️ Which attribute of <img> describes the picture? (a) width (b) alt (c) height (d) src
-
5.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing<br>Rivers flow<br>Roses are red<br>Stars shine</p> - 6.True or false: in <img>, src tells which image to load. (a) True (b) False
- 7.True or false: <style> goes in the body. (a) False (b) True
- 8.True or false: HTML on its own can make tables. (a) True (b) False
- 9.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h5>? (a) <h6> (b) <h1> (c) <h5> (d) <h3>
- 10.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h1> or <h6>? (a) <h6> (b) <h2> (c) <h5> (d) <h1>
-
11.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red</p> - 12.Which of these goes in the body? (a) <title> (b) <style> (c) <a> (d) <meta charset="utf-8">
-
13.💬 Which text will NOT show on the page?
<p>My pets</p>
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p> (a) Hello, world! (b) Our school trip (c) My pets (d) Cricket is fun. -
14.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Cricket is fun.</p>
<!-- <p>I love mangoes.</p> -->
<!-- <p>Fun facts</p> --> - 15.🔢 In a basic web page file, which comes first: “<html>” or “</body>”? (a) <html> (b) </body>
- 16.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
- 17.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>
- 18.🔍 Which is the odd one out? (a) sends pages over the net (b) saves our .html files (c) colours code to help us (d) shows line numbers
-
19.💬 Which text will NOT show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>I love mangoes.</p>
<p>Hello, world!</p> (a) Cricket is fun. (b) I love mangoes. (c) Hello, world! -
20.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="350"> (a) width (b) The full moon (c) moon.png (d) Our school bus - 21.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
-
22.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="150"> (a) A red kite (b) kite.png (c) Map of India (d) width -
23.🔗 Which address opens when you click this link?
<a href="art.html">Visit the site</a> (a) news.html (b) quiz.html (c) art.html (d) Visit the site - 24.🔢 In a basic web page file, which comes LAST? (a) <html> (b) <!DOCTYPE html> (c) </html> (d) </body>
- 25.🧱 HTML gives a web page its ___. (a) structure (b) speed (c) sound (d) colours
-
26.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="200"> (a) map.png (b) width (c) Birthday cake (d) Map of India - 27.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
- 28.True or false: <style> goes in the head. (a) False (b) True
-
29.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>My pets</p>
<p>Rain today</p> (a) My pets (b) Our school trip (c) Rain today -
30.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Rivers flow</p> - 31.Which of these has a closing tag? (a) <hr> (b) <p> (c) <br> (d) <meta>
- 32.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <p> (d) <br>
- 33.True or false: <ul> lists steps in order. (a) True (b) False
- 34.True or false: <img> has a closing tag. (a) False (b) True
- 35.🔗 What does target="_blank" do to a link? (a) hides the link (b) opens it in a new tab (c) makes it blank (d) makes it bold
- 36.🌐 Which one sends pages over the net? (a) a web server (b) a web browser (c) a code editor
-
37.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>Our school trip</p>
<!-- <p>Hello, world!</p> --> - 38.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h2> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
- 39.💬 How does an HTML comment end? (a) // (b) */ (c) --> (d) >>
-
40.💬 Which text will NOT show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>My best friend</p>
<p>The red kite</p> (a) Cricket is fun. (b) My best friend (c) The red kite
Answer key
- </small>
- quiz.html
- True
- alt
- 5
- True
- False
- True
- <h6>
- <h1>
- 2
- <a>
- Cricket is fun.
- 1
- <html>
- <ul>
- <ol>
- sends pages over the net
- Cricket is fun.
- The full moon
- Yes
- A red kite
- art.html
- </html>
- structure
- Map of India
- <ul>
- True
- Our school trip
- 2
- <p>
- <h1>
- False
- False
- opens it in a new tab
- a web server
- 2
- <h1>
- -->
- Cricket is fun.
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids