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.📋 What number does the browser show next to “Banana”?
<ol start="9">
<li>Jamun</li>
<li>Mango</li>
<li>Banana</li>
<li>Papaya</li>
</ol> - 2.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 3.Which of these is true of a web browser? (a) stores a website’s files (b) opens web pages for us (c) is where we type code (d) answers page requests
-
4.📋 How many items does this list show?
<ol>
<li>Mango</li>
<li>Banana</li>
<li>Guava</li>
</ol> - 5.Which of these is true of a web browser? (a) turns HTML into a page (b) is where we type code (c) answers page requests (d) stores a website’s files
- 6.True or false: a code editor colours code to help us. (a) True (b) False
- 7.Which of these is true of a code editor? (a) hosts websites online (b) has an address bar (c) sends pages over the net (d) shows line numbers
-
8.🔍 One closing tag is missing. Which one?
<b>Our school trip</b>
<i>Hello, world!
<u>Good morning!</u> (a) </b> (b) </u> (c) </h1> (d) </i> - 9.Which of these is an opening tag? (a) <li> (b) </body> (c) </title> (d) </h1>
-
10.🔗 Which words do you click on?
<a href="news.html">Contact us</a> (a) news.html (b) Contact us (c) href (d) Visit the site -
11.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="50"> (a) The full moon (b) dog.jpg (c) width (d) A happy dog -
12.🔗 Which words do you click on?
<a href="games.html">Maths fun</a> (a) href (b) Maths fun (c) Art corner (d) games.html -
13.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>Fun facts</p>
<p>The red kite</p>
<p>Cricket is fun.</p> - 14.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 15.Which of these is an empty tag? (a) <b> (b) <li> (c) <img> (d) <p>
-
16.🔗 Which words do you click on?
<a href="quiz.html">About us</a> (a) Contact us (b) href (c) About us (d) quiz.html - 17.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 18.Which of these is true of a web server? (a) has an address bar (b) answers page requests (c) colours code to help us (d) shows pages from the web
- 19.True or false: HTML on its own can make bullet lists. (a) True (b) False
- 20.Which of these is a closing tag? (a) <body> (b) <b> (c) <p> (d) </p>
- 21.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <head> (c) <html> (d) <body>
- 22.True or false: <title> goes in the body. (a) True (b) False
- 23.📄 Can HTML on its own keep a high score? (a) Yes (b) No
-
24.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>Good morning!</p>
<h3>Good morning!</h3>
<p>Hello, world!</p> - 25.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h2> (b) <h5> (c) <h6> (d) <h1>
- 26.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 27.Which of these goes in the head? (a) <h1> (b) <ul> (c) <title> (d) <p>
- 28.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 29.True or false: in <img>, src names the picture file. (a) False (b) True
- 30.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
- 31.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h3>? (a) <h3> (b) <h2> (c) <h5> (d) <h1>
- 32.Which of these is true of a code editor? (a) opens web pages for us (b) has an address bar (c) shows pages from the web (d) colours code to help us
- 33.True or false: in <img>, height sets how wide it is. (a) True (b) False
- 34.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h3> or <h6>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
- 35.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <html> (c) </html> (d) <head>
-
36.🔗 Which words do you click on?
<a href="art.html">Maths fun</a> (a) href (b) Maths fun (c) Art corner (d) art.html -
37.🔗 Which address opens when you click this link?
<a href="news.html">Play games</a> (a) quiz.html (b) games.html (c) Play games (d) news.html - 38.📝 Does <meta> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
39.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Litchi</li>
</ol> (a) bullets (b) numbers -
40.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>The red kite</p> -->
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
Answer key
- 11
- has a closing tag
- opens web pages for us
- 3
- turns HTML into a page
- True
- shows line numbers
- </i>
- <li>
- Contact us
- A happy dog
- Maths fun
- 3
- has a closing tag
- <img>
- About us
- has a closing tag
- answers page requests
- True
- </p>
- <!DOCTYPE html>
- False
- No
- 2
- <h1>
- an empty tag
- <title>
- an opening tag
- True
- <ul>
- <h1>
- colours code to help us
- False
- <h1>
- </html>
- Maths fun
- news.html
- an empty tag
- numbers
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids