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.💬 How many paragraphs show on the page?
<p>Rain today</p>
<!-- <p>Our school trip</p> -->
<p>The red kite</p>
<p>Cricket is fun.</p> -
2.📋 Does this list show bullets or numbers?
<ul>
<li>Papaya</li>
<li>Grapes</li>
</ul> (a) numbers (b) bullets - 3.📝 What does <hr> draw? (a) a line across the page (b) a picture (c) a table (d) a link
-
4.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<h2>The red kite</h2>
<h2>Cricket is fun.</h2> - 5.📝 What does <br> do? (a) makes text bold (b) starts a new line (c) adds a picture (d) makes a list
- 6.True or false: <p> has a closing tag. (a) True (b) False
-
7.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<!-- <p>My best friend</p> -->
<p>Hello, world!</p>
<!-- <p>Good morning!</p> -->
<p>My pets</p> - 8.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as one space (c) as a dot (d) as a new line
- 9.True or false: <ul> shows 1, 2, 3 numbers. (a) True (b) False
-
10.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>My best friend</p>
<p>The red kite</p> - 11.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h3>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
- 12.Which of these has a closing tag? (a) <img> (b) <hr> (c) <title> (d) <br>
-
13.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Rivers flow<br>Birds sing</p> - 14.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h1> or <h3>? (a) <h1> (b) <h3> (c) <h4> (d) <h2>
- 15.True or false: HTML on its own cannot keep a high score. (a) False (b) True
-
16.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) About us (b) Play games (c) contact.html (d) href -
17.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Play games (b) href (c) games.html (d) Take the quiz -
18.📋 What number does the browser show next to “Grapes”?
<ol>
<li>Orange</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Mango</li>
</ol> -
19.💬 How many paragraphs show on the page?
<p>Rain today</p>
<p>I love mangoes.</p>
<p>Fun facts</p>
<!-- <p>Hello, world!</p> --> -
20.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Litchi</li>
<li>Orange</li>
</ol> -
21.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<p>Good morning!</p>
<p>The red kite</p>
<!-- <p>My best friend</p> -->
<!-- <p>I love mangoes.</p> --> - 22.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 23.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
- 24.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h3> or <h4>? (a) <h4> (b) <h1> (c) <h2> (d) <h3>
- 25.True or false: a web server stores a website’s files. (a) True (b) False
- 26.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 27.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 28.🔗 Which attribute holds the address of a link? (a) src (b) href (c) id (d) alt
- 29.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h4> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
- 30.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it bold (c) makes it blank (d) opens it in a new tab
-
31.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Banana</li>
<li>Litchi</li>
</ol> (a) bullets (b) numbers -
32.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<!-- <p>My pets</p> -->
<p>Hello, world!</p>
<p>Good morning!</p>
<p>Cricket is fun.</p> - 33.Which of these is true of a code editor? (a) is where we type code (b) has an address bar (c) sends pages over the net (d) shows pages from the web
- 34.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 1 (d) 6
-
35.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<h4>My pets</h4>
<p>The red kite</p>
<p>My best friend</p>
<p>Fun facts</p> - 36.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h3> (d) <h1>
- 37.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) has an address bar (d) colours code to help us
- 38.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
-
39.🔗 Where does this link open?
<a href="games.html">About us</a> (a) in a new tab (b) in the same tab - 40.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h4> or <h2>? (a) <h3> (b) <h2> (c) <h1> (d) <h4>
Answer key
- 3
- bullets
- a line across the page
- 1
- starts a new line
- True
- 2
- as one space
- False
- 2
- <h1>
- <title>
- 3
- <h4>
- True
- Play games
- Take the quiz
- 3
- 3
- 3
- 3
- in the head
- </b>
- <h1>
- True
- a closing tag
- has a closing tag
- href
- <h6>
- opens it in a new tab
- numbers
- 4
- is where we type code
- 1
- 2
- <h1>
- has an address bar
- <ul>
- in the same tab
- <h1>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids