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.🔠 Are headings shown in bold by default? (a) No (b) Yes
-
2.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>I love mangoes.</p>
<!-- <p>Fun facts</p> -->
<p>My pets</p> (a) The red kite (b) I love mangoes. (c) Fun facts (d) My pets - 3.Which of these is a closing tag? (a) <title> (b) <li> (c) </h1> (d) <h1>
- 4.True or false: HTML on its own can make bullet lists. (a) False (b) True
-
5.🔍 One closing tag is missing. Which one?
<u>I love mangoes.</u>
<h1>Fun facts</h1>
<strong>Good morning! (a) </u> (b) </h1> (c) </strong> (d) </i> - 6.True or false: <ul> has a closing tag. (a) False (b) True
-
7.🔍 Which line is missing its closing tag?
line 1: <h3>Good morning!</h3>
line 2: <small>The red kite
line 3: <b>Hello, world!</b> (a) line 1 (b) line 3 (c) line 2 - 8.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <br> (c) <p> (d) <h6>
-
9.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="200"> (a) cake.jpg (b) moon.png (c) Birthday cake (d) dog.jpg - 10.True or false: a web browser opens web pages for us. (a) False (b) True
- 11.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 12.True or false: a web server hosts websites online. (a) False (b) True
- 13.Which of these is true of a web server? (a) turns HTML into a page (b) is where we type code (c) opens web pages for us (d) sends pages over the net
- 14.💬 How does an HTML comment end? (a) // (b) */ (c) >> (d) -->
- 15.True or false: <ul> is an unordered list. (a) True (b) False
- 16.🔍 Which is the odd one out? (a) stores a website’s files (b) turns HTML into a page (c) sends pages over the net (d) hosts websites online
- 17.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 18.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h5> (b) <h1> (c) <h6> (d) <h4>
-
19.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="300"> (a) Birthday cake (b) cake.jpg (c) A happy dog (d) width -
20.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="50"> (a) width (b) bus.jpg (c) An old fort (d) Our school bus - 21.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 22.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) hosts websites online (d) colours code to help us
- 23.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
- 24.🖼️ Which attribute of <img> tells which image to load? (a) height (b) src (c) alt (d) width
- 25.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h5> or <h2>? (a) <h2> (b) <h5> (c) <h3> (d) <h1>
- 26.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 27.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
-
28.🔍 One closing tag is missing. Which one?
<u>My best friend</u>
<em>Fun facts</em>
<i>Our school trip (a) </u> (b) </p> (c) </em> (d) </i> - 29.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <p> (d) <ul>
- 30.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h5> (b) <h3> (c) <h2> (d) <h4>
-
31.🔍 Which line is missing its closing tag?
line 1: <h3>The red kite
line 2: <u>Hello, world!</u>
line 3: <h1>Our school trip</h1> (a) line 3 (b) line 1 (c) line 2 - 32.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 10 (d) 6
-
33.🔗 Where does this link open?
<a href="art.html" target="_blank">Contact us</a> (a) in a new tab (b) in the same tab -
34.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) href (b) games.html (c) Take the quiz (d) Play games -
35.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) games.html (b) About us (c) href (d) Play games - 36.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as 5 spaces (c) as a new line (d) as a dot
- 37.Which of these goes in the head? (a) <table> (b) <h1> (c) <p> (d) <meta charset="utf-8">
-
38.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>My best friend</p>
<p>Fun facts</p> (a) My best friend (b) Good morning! (c) Fun facts - 39.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
-
40.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Good morning!</p>
<p>Fun facts</p>
Answer key
- Yes
- Fun facts
- </h1>
- True
- </strong>
- True
- line 2
- <h1>
- cake.jpg
- True
- a closing tag
- True
- sends pages over the net
- -->
- True
- turns HTML into a page
- an opening tag
- <h1>
- Birthday cake
- Our school bus
- an empty tag
- colours code to help us
- in the body
- src
- <h1>
- Yes
- Markup
- </i>
- <li>
- <h2>
- line 1
- 1
- in a new tab
- Take the quiz
- Play games
- as one space
- <meta charset="utf-8">
- Good morning!
- <h6>
- 2
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids