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 tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
- 2.Which of these is a closing tag? (a) <p> (b) <body> (c) <li> (d) </title>
- 3.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h3> or <h4>? (a) <h1> (b) <h3> (c) <h4> (d) <h2>
-
4.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>Our school trip</p>
<p>I love mangoes.</p> (a) I love mangoes. (b) Hello, world! (c) Our school trip - 5.💬 How does an HTML comment end? (a) >> (b) */ (c) --> (d) //
-
6.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) href (b) School news (c) Take the quiz (d) art.html - 7.Which of these is true of a web server? (a) opens web pages for us (b) turns HTML into a page (c) answers page requests (d) shows line numbers
- 8.Which of these is true of a web server? (a) hosts websites online (b) is where we type code (c) shows line numbers (d) colours code to help us
-
9.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<p>My best friend</p>
<p>Our school trip</p> -
10.📋 What number does the browser show next to “Jamun”?
<ol start="6">
<li>Mango</li>
<li>Banana</li>
<li>Jamun</li>
</ol> - 11.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 3 (d) 6
- 12.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <a> (d) <img>
-
13.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="50"> - 14.🌐 Which one turns HTML into a page? (a) a web browser (b) a code editor (c) a web server
- 15.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h2>? (a) <h3> (b) <h6> (c) <h1> (d) <h2>
- 16.True or false: in <img>, height tells which image to load. (a) True (b) False
-
17.🔗 Which words do you click on?
<a href="contact.html">Visit the site</a> (a) contact.html (b) Maths fun (c) Visit the site (d) href - 18.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <br> (d) <hr>
- 19.True or false: a web server stores a website’s files. (a) True (b) False
- 20.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
21.🔍 One closing tag is missing. Which one?
<i>I love mangoes.</i>
<small>My best friend</small>
<b>Cricket is fun. (a) </u> (b) </small> (c) </b> (d) </i> - 22.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 23.True or false: <input> is an empty tag. (a) False (b) True
- 24.True or false: in <img>, width is read by screen readers. (a) False (b) True
- 25.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h3> or <h2>? (a) <h2> (b) <h4> (c) <h3> (d) <h1>
-
26.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>I love mangoes.</p> -->
<p>My best friend</p> (a) The red kite (b) My best friend (c) I love mangoes. -
27.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>I love mangoes.</p>
<h4>Hello, world!</h4>
<p>The red kite</p> -
28.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>Our school trip</p>
<p>Cricket is fun.</p>
<p>I love mangoes.</p> - 29.🔠 Which heading shows the SMALLEST text: <h3>, <h1>, <h2> or <h6>? (a) <h1> (b) <h2> (c) <h6> (d) <h3>
-
30.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="400"> (a) Map of India (b) width (c) Birthday cake (d) map.png -
31.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>My pets</p>
<h2>Rain today</h2> -
32.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="50"> (a) A tiger asleep (b) tiger.jpg (c) A red kite (d) width - 33.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 34.Which of these is an opening tag? (a) </h1> (b) <b> (c) </p> (d) </b>
- 35.True or false: <img> has a closing tag. (a) False (b) True
-
36.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) games.html (b) About us (c) Play games (d) href -
37.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Guava</li>
<li>Papaya</li>
</ol> - 38.🏷️ HTML marks up text using ___. (a) pixels (b) tags (c) wires (d) keys
- 39.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <html> (c) </head> (d) <!DOCTYPE html>
-
40.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="350">
Answer key
- <a>
- </title>
- <h4>
- Hello, world!
- -->
- School news
- answers page requests
- hosts websites online
- 2
- 8
- 6
- <img>
- 50
- a web browser
- <h1>
- False
- Visit the site
- <ol>
- True
- Yes
- </b>
- an empty tag
- True
- False
- <h4>
- I love mangoes.
- 2
- 3
- <h6>
- Map of India
- 2
- A tiger asleep
- a closing tag
- <b>
- False
- Play games
- 3
- tags
- </html>
- 350
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids