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="contact.html">Take the quiz</a> (a) href (b) contact.html (c) Play games (d) Take the quiz - 2.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 6 (d) 10
-
3.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Our school trip</p>
<h2>My best friend</h2> - 4.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h5>? (a) <h1> (b) <h6> (c) <h3> (d) <h5>
-
5.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Hello, world!</p>
<p>The red kite</p>
<h4>The red kite</h4>
<p>Rain today</p> -
6.📋 What number does the browser show next to “Papaya”?
<ol start="2">
<li>Mango</li>
<li>Papaya</li>
<li>Orange</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 7.True or false: HTML on its own can run a game loop. (a) False (b) True
- 8.🔢 In a basic web page file, which comes LAST? (a) </body> (b) <!DOCTYPE html> (c) </html> (d) <html>
- 9.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
-
10.🔍 One closing tag is missing. Which one?
<em>Cricket is fun.</em>
<p>Rain today</p>
<strong>I love mangoes. (a) </strong> (b) </em> (c) </h3> (d) </p> - 11.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 10 (d) 3
- 12.📄 Can HTML on its own add up two numbers? (a) No (b) Yes
- 13.True or false: a web server shows line numbers. (a) False (b) True
- 14.True or false: <br> has a closing tag. (a) True (b) False
- 15.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) [ (d) (
- 16.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
17.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>My pets</p>
<p>Hello, world!</p>
<p>My best friend</p> - 18.True or false: <hr> is an empty tag. (a) False (b) True
-
19.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="50"> (a) cake.jpg (b) A red kite (c) map.png (d) kite.png - 20.🧱 HTML gives a web page its ___. (a) colours (b) sound (c) speed (d) structure
- 21.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
-
22.🔗 Where does this link open?
<a href="art.html" target="_blank">Play games</a> (a) in a new tab (b) in the same tab - 23.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
- 24.📄 Where does the text of <title> appear? (a) in a big heading (b) at the bottom (c) on the browser tab (d) nowhere
-
25.🔍 One closing tag is missing. Which one?
<h2>My best friend</h2>
<em>My pets</em>
<small>Hello, world! (a) </h2> (b) </em> (c) </h3> (d) </small> -
26.🔗 Which words do you click on?
<a href="maths.html">Visit the site</a> (a) maths.html (b) href (c) Maths fun (d) Visit the site - 27.True or false: HTML on its own cannot make tables. (a) True (b) False
-
28.🔍 One closing tag is missing. Which one?
<h2>My best friend</h2>
<h1>My pets</h1>
<strong>Rain today (a) </h1> (b) </strong> (c) </h2> (d) </small> - 29.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h1> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
- 30.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h2> or <h6>? (a) <h1> (b) <h6> (c) <h2> (d) <h3>
-
31.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) School news (b) Take the quiz (c) art.html (d) href - 32.🔍 Which is the odd one out? (a) shows pages from the web (b) opens web pages for us (c) answers page requests (d) turns HTML into a page
-
33.🔍 One closing tag is missing. Which one?
<small>My pets</small>
<p>The red kite</p>
<u>Hello, world! (a) </h1> (b) </u> (c) </p> (d) </small> -
34.💬 Which text will NOT show on the page?
<p>My best friend</p>
<p>Our school trip</p>
<!-- <p>Cricket is fun.</p> --> (a) My best friend (b) Cricket is fun. (c) Our school trip -
35.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="250"> -
36.🔗 Where does this link open?
<a href="art.html" target="_blank">Maths fun</a> (a) in a new tab (b) in the same tab - 37.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <img> (d) <p>
- 38.Which of these is an opening tag? (a) <body> (b) </b> (c) </h1> (d) </li>
-
39.🔠 How many headings are in this code?
<h1>My best friend</h1>
<p>My best friend</p>
<p>Cricket is fun.</p>
<h3>My best friend</h3>
<h3>Good morning!</h3> -
40.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Fun facts</p>
<p>Our school trip</p>
<p>Rain today</p> (a) Our school trip (b) Good morning! (c) Fun facts (d) Rain today
Answer key
- Take the quiz
- 1
- 2
- <h6>
- 2
- 3
- False
- </html>
- Yes
- </strong>
- 6
- No
- False
- False
- <
- a closing tag
- 4
- True
- kite.png
- structure
- in the body
- in a new tab
- in the body
- on the browser tab
- </small>
- Visit the site
- False
- </strong>
- <h5>
- <h6>
- School news
- answers page requests
- </u>
- Cricket is fun.
- 250
- in a new tab
- <img>
- <body>
- 3
- Good morning!
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids