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.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Roses are red<br>Rivers flow<br>Stars shine</p> - 2.📝 What does <br> do? (a) makes a list (b) makes text bold (c) starts a new line (d) adds a picture
-
3.🔗 Which words do you click on?
<a href="games.html">Maths fun</a> (a) href (b) Art corner (c) games.html (d) Maths fun -
4.📋 What number does the browser show next to “Papaya”?
<ol start="9">
<li>Mango</li>
<li>Jamun</li>
<li>Orange</li>
<li>Grapes</li>
<li>Papaya</li>
</ol> - 5.📋 Which list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ul> (d) <ol>
- 6.True or false: HTML on its own can make links to pages. (a) False (b) True
- 7.🖼️ Which attribute of <img> describes the picture? (a) width (b) src (c) height (d) alt
- 8.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
- 9.Which of these is an empty tag? (a) <p> (b) <ul> (c) <h1> (d) <img>
- 10.🔠 Which tag is the least important heading? (a) <h3> (b) <h6> (c) <h1> (d) <p>
-
11.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>My best friend</p>
<p>Hello, world!</p> -
12.🔍 One closing tag is missing. Which one?
<h2>I love mangoes.</h2>
<h1>Good morning!</h1>
<small>Fun facts (a) </h1> (b) </h2> (c) </small> (d) </h3> - 13.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
-
14.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>Good morning!</p> -->
<!-- <p>My pets</p> --> - 15.📋 Which list tag is an ordered list? (a) <ul> (b) <li> (c) <ol>
- 16.True or false: <input> is an empty tag. (a) True (b) False
- 17.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
-
18.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="300"> (a) width (b) cake.jpg (c) Birthday cake (d) A happy dog - 19.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
20.📋 Does this list show bullets or numbers?
<ol>
<li>Banana</li>
<li>Guava</li>
<li>Jamun</li>
</ol> (a) bullets (b) numbers - 21.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <br> (d) <h6>
-
22.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<p>Our school trip</p>
<!-- <p>The red kite</p> --> - 23.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
24.🔗 Which words do you click on?
<a href="maths.html">Play games</a> (a) maths.html (b) Play games (c) About us (d) href - 25.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 26.🔍 Which is the odd one out? (a) saves our .html files (b) shows line numbers (c) is where we type code (d) turns HTML into a page
- 27.🖼️ Which attribute of <img> shows if the image fails? (a) alt (b) src (c) height (d) width
- 28.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) opens it in a new tab (d) makes it blank
-
29.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="350"> (a) Our school bus (b) moon.png (c) The full moon (d) width - 30.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 31.True or false: <title> goes in the head. (a) False (b) True
- 32.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h2> or <h3>? (a) <h4> (b) <h2> (c) <h5> (d) <h3>
- 33.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
- 34.Which of these is an opening tag? (a) <title> (b) </title> (c) </p> (d) </li>
- 35.📝 What does <p> make? (a) a picture (b) a paragraph (c) a link (d) a table
- 36.🏷️ Is </body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 37.🖼️ Which attribute of <img> tells which image to load? (a) width (b) height (c) src (d) alt
-
38.🔗 Where does this link open?
<a href="about.html" target="_blank">Contact us</a> (a) in a new tab (b) in the same tab - 39.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 40.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
Answer key
- 4
- starts a new line
- Maths fun
- 13
- <ol>
- True
- alt
- </b>
- <img>
- <h6>
- 2
- </small>
- <a>
- 1
- <ol>
- True
- False
- Birthday cake
- a closing tag
- numbers
- <h1>
- 1
- an opening tag
- Play games
- a closing tag
- turns HTML into a page
- alt
- opens it in a new tab
- The full moon
- an empty tag
- True
- <h5>
- in the head
- <title>
- a paragraph
- a closing tag
- src
- in a new tab
- an opening tag
- a closing tag
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids