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.📄 Can HTML on its own make tables? (a) Yes (b) No
- 2.🏷️ Every HTML tag starts with which sign? (a) < (b) [ (c) { (d) (
- 3.True or false: HTML on its own cannot pick a random number. (a) True (b) False
- 4.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to make it bigger (d) to describe the image
- 5.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
6.📋 Does this list show bullets or numbers?
<ol>
<li>Papaya</li>
<li>Guava</li>
</ol> (a) numbers (b) bullets - 7.True or false: HTML on its own can make links to pages. (a) True (b) False
- 8.Which of these is true of a web browser? (a) shows line numbers (b) answers page requests (c) colours code to help us (d) shows pages from the web
-
9.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="100"> (a) fort.jpg (b) kite.png (c) An old fort (d) tiger.jpg - 10.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <ul> (d) <hr>
-
11.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<!-- <p>The red kite</p> -->
<!-- <p>Our school trip</p> --> -
12.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<p>Good morning!</p>
<p>My best friend</p> (a) My best friend (b) Good morning! (c) Hello, world! (d) I love mangoes. - 13.Which of these is true of a web server? (a) sends pages over the net (b) has an address bar (c) shows line numbers (d) opens web pages for us
-
14.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> -->
<!-- <p>I love mangoes.</p> --> -
15.🔗 Which words do you click on?
<a href="news.html">Play games</a> (a) href (b) news.html (c) Play games (d) About us - 16.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h6> (d) <h1>
- 17.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h2>? (a) <h3> (b) <h2> (c) <h5> (d) <h1>
- 18.True or false: <h1> goes in the head. (a) False (b) True
-
19.🔗 Where does this link open?
<a href="art.html">Take the quiz</a> (a) in a new tab (b) in the same tab -
20.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> --> (a) Fun facts (b) Hello, world! (c) I love mangoes. - 21.🏷️ Which is the closing tag for <u>? (a) <\u> (b) <u> (c) </u> (d) <u/>
- 22.📋 Which list tag is an unordered list? (a) <li> (b) <ol> (c) <ul>
- 23.🏷️ Which is the closing tag for <p>? (a) </p> (b) <\p> (c) <p> (d) <p/>
- 24.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a closing tag (d) a comment
- 25.Which of these goes in the head? (a) <p> (b) <ul> (c) <a> (d) <style>
-
26.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) href (b) Take the quiz (c) School news (d) art.html - 27.True or false: <h1> is an empty tag. (a) False (b) True
-
28.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<h2>Cricket is fun.</h2>
<h2>My best friend</h2>
<p>Hello, world!</p> - 29.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h3> or <h1>? (a) <h4> (b) <h5> (c) <h3> (d) <h1>
- 30.📋 Which list tag lists things in any order? (a) <li> (b) <ul> (c) <ol>
- 31.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
- 32.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
33.🔠 How many headings are in this code?
<h1>My pets</h1>
<h3>My best friend</h3>
<h2>My pets</h2> -
34.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Jamun</li>
</ul> - 35.📄 Can HTML on its own make headings? (a) Yes (b) No
- 36.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
-
37.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="200"> (a) map.png (b) Birthday cake (c) width (d) Map of India -
38.🔗 Which address opens when you click this link?
<a href="news.html">Maths fun</a> (a) Maths fun (b) news.html (c) quiz.html (d) games.html -
39.🔗 Which words do you click on?
<a href="games.html">Maths fun</a> (a) Maths fun (b) Art corner (c) href (d) games.html - 40.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h4>? (a) <h3> (b) <h4> (c) <h5> (d) <h6>
Answer key
- Yes
- <
- True
- to describe the image
- has a closing tag
- numbers
- True
- shows pages from the web
- fort.jpg
- <ol>
- 1
- Hello, world!
- sends pages over the net
- 1
- Play games
- <h6>
- <h1>
- False
- in the same tab
- I love mangoes.
- </u>
- <ul>
- </p>
- an attribute
- <style>
- School news
- False
- 2
- <h1>
- <ul>
- <li>
- a closing tag
- 3
- 2
- Yes
- in the body
- Map of India
- news.html
- Maths fun
- <h3>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids