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.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Papaya</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets - 2.True or false: a web browser answers page requests. (a) False (b) True
- 3.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <table> (c) <style> (d) <title>
- 4.True or false: <ul> goes in the head. (a) True (b) False
-
5.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>The red kite</p>
<h2>My pets</h2>
<p>My pets</p>
<h2>I love mangoes.</h2>
<h2>Rain today</h2> -
6.🔗 Which words do you click on?
<a href="art.html">About us</a> (a) art.html (b) Contact us (c) href (d) About us - 7.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
- 8.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h3>? (a) <h1> (b) <h2> (c) <h5> (d) <h3>
- 9.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
- 10.💬 How does an HTML comment start? (a) /* (b) // (c) <!-- (d) #
- 11.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) opens web pages for us (d) stores a website’s files
-
12.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Orange</li>
<li>Mango</li>
<li>Litchi</li>
</ol> - 13.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 14.Which of these goes in the head? (a) <a> (b) <img> (c) <style> (d) <table>
- 15.True or false: <ul> is one item of a list. (a) False (b) True
- 16.Which of these goes in the body? (a) <style> (b) <title> (c) <meta charset="utf-8"> (d) <ul>
- 17.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 18.True or false: in <img>, alt is read by screen readers. (a) True (b) False
-
19.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<p>Good morning!</p>
<p>My best friend</p>
<p>Cricket is fun.</p> - 20.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 21.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
22.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>My pets</p>
<p>My best friend</p> (a) My pets (b) My best friend (c) Hello, world! - 23.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h1>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
- 24.Which of these is an empty tag? (a) <h1> (b) <p> (c) <title> (d) <hr>
- 25.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 10 (d) 3
- 26.🌐 Which one shows pages from the web? (a) a code editor (b) a web browser (c) a web server
- 27.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h2> or <h4>? (a) <h2> (b) <h4> (c) <h6> (d) <h3>
- 28.🏷️ HTML marks up text using ___. (a) keys (b) tags (c) pixels (d) wires
- 29.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
-
30.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<!-- <p>Good morning!</p> -->
<p>Rain today</p>
<p>The red kite</p> -
31.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Rivers flow<br>Stars shine<br>Birds sing</p> -
32.🔗 Which words do you click on?
<a href="games.html">Maths fun</a> (a) href (b) Art corner (c) games.html (d) Maths fun -
33.🔗 Where does this link open?
<a href="contact.html">Play games</a> (a) in the same tab (b) in a new tab - 34.True or false: <li> shows 1, 2, 3 numbers. (a) True (b) False
- 35.📝 What does <hr> draw? (a) a line across the page (b) a table (c) a picture (d) a link
-
36.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<p>My best friend</p>
<!-- <p>I love mangoes.</p> --> - 37.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <head> (d) <html>
-
38.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>My best friend</p>
<p>Fun facts</p>
<p>Hello, world!</p> (a) Fun facts (b) My best friend (c) Rain today (d) Hello, world! - 39.Which of these is an opening tag? (a) <li> (b) </h1> (c) </p> (d) </body>
- 40.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>
Answer key
- bullets
- False
- <table>
- False
- 3
- About us
- <h6>
- <h1>
- in the head
- <!--
- stores a website’s files
- 4
- an opening tag
- <style>
- False
- <ul>
- No
- True
- 4
- a closing tag
- Yes
- Hello, world!
- <h5>
- <hr>
- 1
- a web browser
- <h6>
- tags
- Yes
- 2
- 5
- Maths fun
- in the same tab
- False
- a line across the page
- 2
- <!DOCTYPE html>
- Rain today
- <li>
- <ol>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids