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 is used for the main title on a page? (a) <h1> (b) <br> (c) <h6> (d) <p>
-
2.🔗 Which words do you click on?
<a href="https://example.com">Maths fun</a> (a) https://example.com (b) Art corner (c) href (d) Maths fun - 3.🌐 Which one colours code to help us? (a) a web server (b) a web browser (c) a code editor
-
4.🔗 Where does this link open?
<a href="maths.html">Play games</a> (a) in the same tab (b) in a new tab -
5.📋 What number does the browser show next to “Guava”?
<ol>
<li>Mango</li>
<li>Grapes</li>
<li>Jamun</li>
<li>Papaya</li>
<li>Guava</li>
<li>Banana</li>
</ol> - 6.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 6 (d) 10
-
7.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h2>Cricket is fun.</h2>
<h4>I love mangoes.</h4>
<p>Fun facts</p> -
8.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Grapes</li>
<li>Banana</li>
<li>Guava</li>
</ul> -
9.🔗 Which words do you click on?
<a href="games.html">Visit the site</a> (a) Maths fun (b) Visit the site (c) games.html (d) href -
10.🔍 One closing tag is missing. Which one?
<i>The red kite</i>
<h1>Fun facts
<u>Hello, world!</u> (a) </h1> (b) </i> (c) </u> (d) </b> -
11.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Grapes</li>
<li>Guava</li>
</ol> - 12.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an element name (c) an attribute (d) a comment
- 13.Which of these is true of a web server? (a) shows line numbers (b) opens web pages for us (c) shows pages from the web (d) answers page requests
- 14.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
- 15.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
-
16.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<h2>Cricket is fun.</h2>
<p>The red kite</p>
<p>Cricket is fun.</p> - 17.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <hr> (d) <br>
- 18.True or false: a web browser shows pages from the web. (a) False (b) True
- 19.True or false: <table> goes in the body. (a) False (b) True
-
20.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<!-- <p>Good morning!</p> -->
<p>Rain today</p>
<p>My pets</p> (a) Our school trip (b) My pets (c) Rain today (d) Good morning! -
21.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing<br>Stars shine</p> - 22.📝 What does <p> make? (a) a picture (b) a table (c) a link (d) a paragraph
- 23.True or false: HTML on its own cannot add up two numbers. (a) False (b) True
- 24.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
- 25.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <li> (c) <ol>
- 26.True or false: <meta> is an empty tag. (a) False (b) True
- 27.Which of these is an opening tag? (a) </p> (b) <b> (c) </title> (d) </body>
- 28.🔢 In a basic web page file, which comes FIRST? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) </head>
- 29.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
-
30.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="50"> (a) width (b) A happy dog (c) dog.jpg (d) The full moon -
31.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) Play games (b) href (c) contact.html (d) About us - 32.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) on the browser tab (d) at the bottom
-
33.🔍 Which line is missing its closing tag?
line 1: <u>Rain today</u>
line 2: <h2>The red kite</h2>
line 3: <h1>I love mangoes. (a) line 2 (b) line 1 (c) line 3 - 34.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
-
35.🔗 Which address opens when you click this link?
<a href="about.html">Visit the site</a> (a) Visit the site (b) contact.html (c) https://example.com (d) about.html - 36.📄 What is the first line of an HTML5 page? (a) <body> (b) <html> (c) <!DOCTYPE html> (d) <head>
-
37.🔗 Which address opens when you click this link?
<a href="about.html">About us</a> (a) https://example.com (b) about.html (c) About us (d) contact.html - 38.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a href="about.html"> (d) <a alt="about.html">
- 39.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h3> or <h1>? (a) <h4> (b) <h1> (c) <h5> (d) <h3>
- 40.🏷️ Which is the closing tag for <em>? (a) <em> (b) <\em> (c) </em> (d) <em/>
Answer key
- <h1>
- Maths fun
- a code editor
- in the same tab
- 5
- 6
- 3
- 4
- Visit the site
- </h1>
- 4
- an attribute
- answers page requests
- <img>
- in the head
- 3
- <ol>
- True
- True
- Good morning!
- 3
- a paragraph
- True
- <ul>
- <li>
- True
- <b>
- <!DOCTYPE html>
- <ol>
- A happy dog
- Play games
- on the browser tab
- line 3
- <ul>
- about.html
- <!DOCTYPE html>
- about.html
- <a href="about.html">
- <h1>
- </em>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids