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 is the odd one out? (a) saves our .html files (b) sends pages over the net (c) stores a website’s files (d) hosts websites online
- 2.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
- 3.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h6> (b) <h4> (c) <h5> (d) <h1>
- 4.🔤 In “HTML”, what does the M stand for? (a) Markup (b) Modern (c) Mouse (d) Machine
-
5.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> - 6.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
-
7.🔗 Which words do you click on?
<a href="https://example.com">Visit the site</a> (a) Visit the site (b) href (c) Maths fun (d) https://example.com -
8.🔍 One closing tag is missing. Which one?
<h3>Fun facts
<i>My best friend</i>
<u>Cricket is fun.</u> (a) </h3> (b) </b> (c) </u> (d) </i> - 9.📛 In <a href="x.html">, what is href? (a) an attribute (b) an element name (c) a closing tag (d) a comment
-
10.📋 What number does the browser show next to “Grapes”?
<ol start="2">
<li>Mango</li>
<li>Grapes</li>
<li>Banana</li>
</ol> - 11.📄 Can HTML on its own show paragraphs? (a) Yes (b) No
-
12.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>The red kite</p> -
13.🔗 Which words do you click on?
<a href="maths.html">Maths fun</a> (a) Art corner (b) href (c) maths.html (d) Maths fun -
14.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Orange</li>
<li>Mango</li>
<li>Jamun</li>
</ol> -
15.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Fun facts</p>
<p>My pets</p>
<p>Hello, world!</p>
<p>Rain today</p> - 16.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to describe the image (d) to make it bigger
-
17.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) Play games (b) href (c) About us (d) contact.html -
18.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Litchi</li>
<li>Guava</li>
<li>Jamun</li>
<li>Banana</li>
</ul> - 19.🔠 How many heading levels does HTML have? (a) 10 (b) 4 (c) 6 (d) 3
-
20.🔍 One closing tag is missing. Which one?
<u>Cricket is fun.</u>
<h2>Good morning!
<h1>My best friend</h1> (a) </h1> (b) </h2> (c) </b> (d) </u> - 21.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h3> or <h2>? (a) <h3> (b) <h6> (c) <h2> (d) <h1>
- 22.True or false: HTML on its own can make a form. (a) False (b) True
- 23.🖼️ Which attribute of <img> tells which image to load? (a) src (b) width (c) alt (d) height
- 24.True or false: <title> goes in the body. (a) True (b) False
- 25.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h3>? (a) <h1> (b) <h6> (c) <h3> (d) <h2>
- 26.📄 Where does the text of <title> appear? (a) nowhere (b) at the bottom (c) on the browser tab (d) in a big heading
-
27.📋 What number does the browser show next to “Grapes”?
<ol start="6">
<li>Mango</li>
<li>Grapes</li>
<li>Jamun</li>
<li>Banana</li>
</ol> - 28.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
-
29.🔍 One closing tag is missing. Which one?
<h1>My best friend
<h2>My pets</h2>
<i>Hello, world!</i> (a) </h1> (b) </h2> (c) </i> (d) </small> - 30.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 31.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h3> (d) <h1>
- 32.📝 What does <p> make? (a) a picture (b) a link (c) a paragraph (d) a table
-
33.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Litchi</li>
</ol> - 34.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
- 35.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
-
36.📋 What number does the browser show next to “Orange”?
<ol start="2">
<li>Jamun</li>
<li>Orange</li>
<li>Litchi</li>
</ol> -
37.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Stars shine<br>Birds sing<br>Kites fly high</p> -
38.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> -->
<p>My best friend</p> (a) I love mangoes. (b) My best friend (c) Hello, world! - 39.True or false: HTML on its own can make bullet lists. (a) False (b) True
- 40.True or false: a code editor is where we type code. (a) True (b) False
Answer key
- saves our .html files
- <li>
- <h1>
- Markup
- 200
- <!DOCTYPE html>
- Visit the site
- </h3>
- an attribute
- 3
- Yes
- 1
- Maths fun
- 3
- 4
- to describe the image
- Play games
- 5
- 6
- </h2>
- <h6>
- True
- src
- False
- <h1>
- on the browser tab
- 7
- -->
- </h1>
- in the body
- <h6>
- a paragraph
- 2
- the body
- <a>
- 3
- 4
- I love mangoes.
- True
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids