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.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Stars shine</p> - 2.🧱 HTML gives a web page its ___. (a) colours (b) structure (c) sound (d) speed
-
3.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Kites fly high<br>Sky is blue<br>Stars shine<br>Roses are red</p> -
4.🔗 Which address opens when you click this link?
<a href="contact.html">Art corner</a> (a) Art corner (b) https://example.com (c) contact.html (d) maths.html -
5.🔗 Where does this link open?
<a href="news.html">Play games</a> (a) in the same tab (b) in a new tab - 6.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 7.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 8.🔢 In a basic web page file, which comes first: “<head>” or “<html>”? (a) <html> (b) <head>
- 9.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) </head> (b) <html>
- 10.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
-
11.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<p>Hello, world!</p>
<p>My pets</p>
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p> - 12.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
13.🔗 Which address opens when you click this link?
<a href="contact.html">Take the quiz</a> (a) maths.html (b) https://example.com (c) contact.html (d) Take the quiz - 14.📝 Does <hr> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 15.True or false: <img> is an empty tag. (a) True (b) False
-
16.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h2>Hello, world!</h2>
<h2>My best friend</h2> - 17.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 10 (d) 3
- 18.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
19.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Papaya</li>
</ol> (a) numbers (b) bullets - 20.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 21.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 22.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 23.True or false: <ul> goes inside ul or ol. (a) True (b) False
-
24.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>Hello, world!</p>
<p>The red kite</p>
<!-- <p>Rain today</p> -->
<p>Fun facts</p> - 25.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong/> (c) </strong> (d) <strong>
-
26.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) href (b) Play games (c) About us (d) games.html - 27.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <p> (d) <li>
- 28.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
- 29.Which of these is a closing tag? (a) <h1> (b) </b> (c) <p> (d) <b>
- 30.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h3>
- 31.💬 Does the browser show comments on the page? (a) No (b) Yes
- 32.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) colours code to help us (d) turns HTML into a page
- 33.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h6> or <h2>? (a) <h2> (b) <h6> (c) <h4> (d) <h3>
-
34.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red<br>Stars shine</p> - 35.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h6> or <h5>? (a) <h5> (b) <h3> (c) <h2> (d) <h6>
- 36.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
- 37.📛 In <a href="x.html">, what is href? (a) an element name (b) a closing tag (c) an attribute (d) a comment
- 38.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
- 39.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) attribute (d) element
-
40.🔍 One closing tag is missing. Which one?
<p>The red kite
<h2>Our school trip</h2>
<strong>Hello, world!</strong> (a) </strong> (b) </em> (c) </h2> (d) </p>
Answer key
- 2
- structure
- 5
- contact.html
- in the same tab
- in the head
- has a closing tag
- <html>
- <html>
- <a>
- 4
- an opening tag
- contact.html
- an empty tag
- True
- 3
- 1
- Yes
- numbers
- an opening tag
- a closing tag
- No
- False
- 4
- </strong>
- Play games
- <li>
- <ul>
- </b>
- <h6>
- No
- turns HTML into a page
- <h6>
- 3
- <h2>
- in the body
- an attribute
- <h6>
- element
- </p>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids