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.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="350"> (a) map.png (b) kite.png (c) A red kite (d) cake.jpg -
2.🔍 One closing tag is missing. Which one?
<h2>The red kite</h2>
<p>Fun facts
<u>Good morning!</u> (a) </u> (b) </h2> (c) </h1> (d) </p> -
3.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Take the quiz (b) games.html (c) Play games (d) href - 4.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h5>? (a) <h4> (b) <h1> (c) <h2> (d) <h5>
- 5.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h1> or <h3>? (a) <h6> (b) <h1> (c) <h3> (d) <h2>
-
6.🔍 One closing tag is missing. Which one?
<em>I love mangoes.</em>
<h2>My best friend</h2>
<b>Hello, world! (a) </small> (b) </b> (c) </h2> (d) </em> -
7.🔗 Which address opens when you click this link?
<a href="art.html">School news</a> (a) news.html (b) art.html (c) quiz.html (d) School news - 8.Which of these is true of a web browser? (a) sends pages over the net (b) colours code to help us (c) shows line numbers (d) shows pages from the web
-
9.🔍 One closing tag is missing. Which one?
<h1>Hello, world!
<b>Cricket is fun.</b>
<small>I love mangoes.</small> (a) </small> (b) </h3> (c) </h1> (d) </b> - 10.🏷️ Which is the closing tag for <u>? (a) </u> (b) <u> (c) <u/> (d) <\u>
- 11.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
- 12.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 13.Which of these is true of a code editor? (a) opens web pages for us (b) is where we type code (c) answers page requests (d) sends pages over the net
- 14.📋 Which tag goes around each item of a list? (a) <ul> (b) <p> (c) <li> (d) <ol>
- 15.🔗 Which attribute holds the address of a link? (a) href (b) src (c) alt (d) id
- 16.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h2> or <h4>? (a) <h4> (b) <h2> (c) <h3> (d) <h6>
- 17.True or false: a web server sends pages over the net. (a) True (b) False
-
18.📋 What number does the browser show next to “Guava”?
<ol start="8">
<li>Papaya</li>
<li>Banana</li>
<li>Guava</li>
<li>Litchi</li>
</ol> - 19.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 20.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
21.🔍 One closing tag is missing. Which one?
<em>The red kite</em>
<u>Our school trip</u>
<small>Hello, world! (a) </small> (b) </u> (c) </h2> (d) </em> - 22.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <br> (c) <ul> (d) <hr>
-
23.📋 Does this list show bullets or numbers?
<ul>
<li>Mango</li>
<li>Banana</li>
</ul> (a) numbers (b) bullets -
24.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>My pets</p>
<p>Cricket is fun.</p>
<p>I love mangoes.</p>
<p>Fun facts</p> -
25.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>All about me</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) All about me (b) index.html (c) Thanks for visiting. (d) Art Gallery - 26.True or false: HTML on its own can make tables. (a) False (b) True
- 27.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 28.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h2>? (a) <h1> (b) <h5> (c) <h6> (d) <h2>
- 29.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a closing tag (d) a comment
- 30.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
-
31.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<h2>My best friend</h2>
<h2>I love mangoes.</h2>
<h4>Good morning!</h4> - 32.🔢 In a basic web page file, which comes first: “</html>” or “</body>”? (a) </body> (b) </html>
-
33.📋 What number does the browser show next to “Grapes”?
<ol start="5">
<li>Papaya</li>
<li>Grapes</li>
<li>Orange</li>
<li>Jamun</li>
<li>Banana</li>
</ol> -
34.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<p>Cricket is fun.</p> (a) I love mangoes. (b) Hello, world! (c) Cricket is fun. -
35.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<h2>Our school trip</h2>
<h2>Hello, world!</h2>
<h2>Our school trip</h2>
<p>I love mangoes.</p> - 36.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
-
37.🔍 One closing tag is missing. Which one?
<h1>Good morning!</h1>
<u>The red kite</u>
<i>Hello, world! (a) </u> (b) </i> (c) </h1> (d) </em> -
38.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>Hello, world!</p>
<p>My pets</p> -
39.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>Good morning!</p> -->
<p>Cricket is fun.</p> -
40.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="200">
Answer key
- kite.png
- </p>
- Take the quiz
- <h5>
- <h6>
- </b>
- art.html
- shows pages from the web
- </h1>
- </u>
- in the head
- has a closing tag
- is where we type code
- <li>
- href
- <h6>
- True
- 10
- Yes
- No
- </small>
- <ol>
- bullets
- 5
- Art Gallery
- True
- Yes
- <h1>
- an attribute
- <ul>
- 4
- </body>
- 6
- Hello, world!
- 2
- a web browser
- </i>
- 3
- 1
- 200
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids