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>Good morning!</p>
<p>My best friend</p>
<p>My pets</p>
<!-- <p>I love mangoes.</p> --> -
2.🔗 Which words do you click on?
<a href="news.html">Art corner</a> (a) href (b) Art corner (c) School news (d) news.html - 3.True or false: HTML on its own cannot count button clicks. (a) False (b) True
- 4.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) has an address bar (d) stores a website’s files
- 5.🖼️ Which tag puts a picture on a page? (a) <a> (b) <img> (c) <p> (d) <pic>
- 6.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h1>? (a) <h4> (b) <h1> (c) <h6> (d) <h2>
- 7.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
- 8.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h6> (b) <h1> (c) <h2> (d) <h3>
-
9.🔗 Which words do you click on?
<a href="quiz.html">Maths fun</a> (a) Art corner (b) Maths fun (c) href (d) quiz.html -
10.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Hello, world!</p>
<p>Good morning!</p>
<!-- <p>Rain today</p> -->
<p>Fun facts</p> -
11.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="50"> - 12.True or false: <ol> is an ordered list. (a) True (b) False
-
13.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> -
14.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Grapes</li>
<li>Litchi</li>
<li>Jamun</li>
<li>Papaya</li>
<li>Mango</li>
</ol> - 15.True or false: in <img>, alt shows if the image fails. (a) True (b) False
- 16.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 17.🔗 Which attribute holds the address of a link? (a) src (b) id (c) alt (d) href
- 18.True or false: in <img>, height describes the picture. (a) True (b) False
- 19.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 20.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) an element name (d) a comment
- 21.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
- 22.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <body> (c) <!DOCTYPE html> (d) <head>
- 23.💬 Does the browser show comments on the page? (a) Yes (b) No
- 24.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
-
25.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h4>Rain today</h4>
<p>Good morning!</p> - 26.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h3>? (a) <h2> (b) <h6> (c) <h3> (d) <h1>
- 27.Which of these is an empty tag? (a) <li> (b) <hr> (c) <p> (d) <h1>
- 28.Which of these is true of a web browser? (a) colours code to help us (b) is where we type code (c) answers page requests (d) turns HTML into a page
- 29.True or false: in <img>, src shows if the image fails. (a) True (b) False
- 30.True or false: a code editor opens web pages for us. (a) False (b) True
- 31.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h3>? (a) <h4> (b) <h3> (c) <h5> (d) <h1>
-
32.🔗 Which address opens when you click this link?
<a href="art.html">Art corner</a> (a) news.html (b) art.html (c) quiz.html (d) Art corner - 33.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h1> or <h5>? (a) <h4> (b) <h2> (c) <h1> (d) <h5>
-
34.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>Cricket is fun.</p>
<p>My pets</p>
<!-- <p>Rain today</p> -->
<!-- <p>Our school trip</p> --> - 35.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <h3> (d) <p>
- 36.True or false: a web browser saves our .html files. (a) True (b) False
- 37.True or false: a web browser sends pages over the net. (a) True (b) False
- 38.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
- 39.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h1> or <h5>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
- 40.Which of these has a closing tag? (a) <img> (b) <br> (c) <meta> (d) <ul>
Answer key
- 3
- Art corner
- True
- has an address bar
- <img>
- <h1>
- <ul>
- <h6>
- Maths fun
- 3
- 50
- True
- 100
- 3
- True
- in the body
- href
- False
- a closing tag
- an attribute
- the body
- </html>
- No
- <a>
- 2
- <h1>
- <hr>
- turns HTML into a page
- False
- False
- <h1>
- art.html
- <h5>
- 2
- <h6>
- False
- False
- a web server
- <h1>
- <ul>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids