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.True or false: a web browser opens web pages for us. (a) True (b) False
- 2.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h5> or <h1>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
-
3.🔍 One closing tag is missing. Which one?
<b>Cricket is fun.</b>
<h1>Fun facts</h1>
<em>Hello, world! (a) </small> (b) </h1> (c) </em> (d) </b> - 4.True or false: HTML on its own cannot make links to pages. (a) True (b) False
- 5.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 6.🏷️ HTML marks up text using ___. (a) pixels (b) tags (c) wires (d) keys
- 7.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 8.🏷️ Which is the closing tag for <u>? (a) <\u> (b) </u> (c) <u/> (d) <u>
-
9.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Stars shine</p> - 10.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h2>? (a) <h6> (b) <h2> (c) <h1> (d) <h5>
-
11.🔍 One closing tag is missing. Which one?
<h3>The red kite</h3>
<b>My best friend
<h2>Hello, world!</h2> (a) </h2> (b) </b> (c) </h1> (d) </h3> - 12.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 10 (d) 3
-
13.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<!-- <p>Our school trip</p> -->
<p>Good morning!</p> (a) Our school trip (b) Good morning! (c) Fun facts - 14.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 15.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h6> or <h1>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
- 16.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
- 17.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <body> (c) </html> (d) <!DOCTYPE html>
- 18.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 3 (d) 6
- 19.Which of these is true of a web server? (a) opens web pages for us (b) hosts websites online (c) shows pages from the web (d) has an address bar
-
20.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<p>Hello, world!</p>
<p>The red kite</p>
<!-- <p>Fun facts</p> --> -
21.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>I love mangoes.</p>
<p>My pets</p>
<p>I love mangoes.</p>
<p>Our school trip</p> - 22.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
- 23.True or false: in <img>, width tells which image to load. (a) False (b) True
- 24.True or false: <table> goes in the body. (a) False (b) True
- 25.True or false: a web browser sends pages over the net. (a) False (b) True
- 26.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) hosts websites online (d) saves our .html files
-
27.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Birds sing<br>Kites fly high<br>Sky is blue</p> - 28.💬 How does an HTML comment end? (a) >> (b) // (c) */ (d) -->
-
29.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Stars shine</p> -
30.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Our school trip</p> -->
<p>Hello, world!</p> (a) Hello, world! (b) Our school trip (c) I love mangoes. - 31.📋 Which list suits a shopping list in any order? (a) <ul> (b) <ol> (c) <br> (d) <hr>
- 32.Which of these is an empty tag? (a) <br> (b) <title> (c) <ul> (d) <p>
- 33.True or false: <ol> shows bullet points. (a) True (b) False
- 34.True or false: a web browser stores a website’s files. (a) True (b) False
- 35.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) address (c) attribute (d) editor
- 36.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 37.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h1> or <h3>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
-
38.🔗 Which address opens when you click this link?
<a href="https://example.com">Visit the site</a> (a) https://example.com (b) Visit the site (c) art.html (d) maths.html -
39.💬 How many paragraphs show on the page?
<p>Rain today</p>
<p>My best friend</p>
<p>My pets</p>
<p>Fun facts</p>
<!-- <p>Hello, world!</p> --> - 40.💬 How does an HTML comment start? (a) <!-- (b) // (c) /* (d) #
Answer key
- True
- <h1>
- </em>
- False
- a closing tag
- tags
- an empty tag
- </u>
- 2
- <h1>
- </b>
- 1
- Our school trip
- has a closing tag
- <h1>
- True
- </html>
- 6
- hosts websites online
- 3
- 1
- <h6>
- False
- True
- False
- saves our .html files
- 4
- -->
- 2
- Our school trip
- <ul>
- <br>
- False
- False
- element
- No
- <h5>
- https://example.com
- 4
- <!--
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids