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 words do you click on?
<a href="maths.html">Art corner</a> (a) School news (b) maths.html (c) href (d) Art corner - 2.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) < (d) {
- 3.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <ol> (d) <p>
- 4.🖼️ Which attribute of <img> tells which image to load? (a) src (b) alt (c) width (d) height
- 5.True or false: in <img>, height sets how tall it is. (a) False (b) True
- 6.True or false: in <img>, src is read by screen readers. (a) True (b) False
-
7.🔗 Which address opens when you click this link?
<a href="maths.html">Visit the site</a> (a) Visit the site (b) art.html (c) maths.html (d) news.html - 8.📝 What do we need to write HTML? (a) a printer (b) a paintbrush (c) a microphone (d) a plain text editor
-
9.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Kites fly high<br>Roses are red</p> - 10.True or false: <img> has a closing tag. (a) True (b) False
-
11.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Orange</li>
<li>Jamun</li>
</ol> - 12.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h4> or <h1>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
-
13.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="250"> (a) width (b) A red kite (c) tiger.jpg (d) A tiger asleep - 14.📄 Can HTML on its own pick a random number? (a) Yes (b) No
- 15.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h1> (d) <h6>
-
16.📋 What number does the browser show next to “Jamun”?
<ol start="8">
<li>Guava</li>
<li>Orange</li>
<li>Banana</li>
<li>Mango</li>
<li>Jamun</li>
<li>Litchi</li>
</ol> - 17.💬 Does the browser show comments on the page? (a) No (b) Yes
-
18.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>The red kite</p>
<p>Hello, world!</p>
<p>I love mangoes.</p> - 19.True or false: in <img>, height describes the picture. (a) True (b) False
- 20.True or false: HTML on its own can make bullet lists. (a) False (b) True
- 21.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <br> (d) <hr>
- 22.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
- 23.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 24.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h5> or <h1>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
- 25.Which of these is true of a web browser? (a) turns HTML into a page (b) shows line numbers (c) hosts websites online (d) colours code to help us
-
26.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="50"> (a) kite.png (b) tiger.jpg (c) map.png (d) A tiger asleep - 27.📄 What is the first line of an HTML5 page? (a) <html> (b) <!DOCTYPE html> (c) <body> (d) <head>
-
28.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) games.html (b) href (c) Contact us (d) About us - 29.True or false: <ol> lists steps in order. (a) False (b) True
- 30.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <head> (c) <html> (d) </body>
- 31.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 32.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h4> or <h6>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
- 33.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
-
34.🔗 Which address opens when you click this link?
<a href="maths.html">About us</a> (a) news.html (b) maths.html (c) About us (d) art.html - 35.Which of these has a closing tag? (a) <meta> (b) <p> (c) <input> (d) <hr>
- 36.📄 Which part holds everything you see on the page? (a) the head (b) the body (c) the title (d) the doctype
- 37.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
- 38.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
- 39.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h6> or <h1>? (a) <h5> (b) <h3> (c) <h1> (d) <h6>
- 40.True or false: in <img>, src tells which image to load. (a) False (b) True
Answer key
- Art corner
- <
- <li>
- src
- True
- False
- maths.html
- a plain text editor
- 3
- False
- 3
- <h5>
- A tiger asleep
- No
- <h1>
- 12
- No
- 4
- False
- True
- <ol>
- in the head
- Yes
- <h5>
- turns HTML into a page
- tiger.jpg
- <!DOCTYPE html>
- About us
- True
- </html>
- No
- <h1>
- <ul>
- maths.html
- <p>
- the body
- -->
- <a>
- <h1>
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids