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.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 2.🌐 Which one is where we type code? (a) a web browser (b) a web server (c) a code editor
-
3.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Mango</li>
<li>Papaya</li>
</ul> (a) numbers (b) bullets -
4.🔍 One closing tag is missing. Which one?
<u>Our school trip</u>
<p>The red kite</p>
<em>Fun facts (a) </h2> (b) </u> (c) </p> (d) </em> - 5.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
- 6.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h3> or <h2>? (a) <h3> (b) <h6> (c) <h5> (d) <h2>
- 7.Which of these has a closing tag? (a) <hr> (b) <br> (c) <img> (d) <li>
- 8.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 9.True or false: a web server colours code to help us. (a) True (b) False
-
10.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Rivers flow</p> -
11.🔍 One closing tag is missing. Which one?
<i>I love mangoes.</i>
<b>Good morning!
<strong>My pets</strong> (a) </strong> (b) </h3> (c) </b> (d) </i> -
12.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Orange</li>
</ol> - 13.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h1> or <h6>? (a) <h4> (b) <h2> (c) <h6> (d) <h1>
- 14.Which of these is an empty tag? (a) <p> (b) <h1> (c) <title> (d) <meta>
-
15.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<!-- <p>My pets</p> -->
<p>Hello, world!</p>
<p>Cricket is fun.</p> (a) Cricket is fun. (b) My pets (c) Hello, world! (d) Fun facts -
16.📋 Does this list show bullets or numbers?
<ol>
<li>Papaya</li>
<li>Orange</li>
</ol> (a) numbers (b) bullets - 17.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 18.True or false: in <img>, width sets how wide it is. (a) True (b) False
- 19.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h3>? (a) <h3> (b) <h1> (c) <h6> (d) <h5>
- 20.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 21.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
-
22.🔗 Which address opens when you click this link?
<a href="art.html">Take the quiz</a> (a) Take the quiz (b) art.html (c) news.html (d) quiz.html -
23.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Guava</li>
</ul> -
24.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>All about me</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) All about me (c) Space Facts (d) body - 25.Which of these goes in the head? (a) <img> (b) <title> (c) <a> (d) <h1>
-
26.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Stars shine<br>Roses are red<br>Rivers flow</p> - 27.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
- 28.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 29.Which of these is true of a web browser? (a) shows line numbers (b) stores a website’s files (c) shows pages from the web (d) saves our .html files
- 30.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as a dot (c) as 5 spaces (d) as a new line
- 31.Which of these goes in the body? (a) <h1> (b) <link rel="stylesheet"> (c) <meta charset="utf-8"> (d) <title>
-
32.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="200"> (a) bus.jpg (b) tiger.jpg (c) Our school bus (d) fort.jpg - 33.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
- 34.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <h1> (d) <br>
- 35.🔗 Which attribute holds the address of a link? (a) id (b) href (c) src (d) alt
- 36.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h3>? (a) <h6> (b) <h5> (c) <h3> (d) <h2>
- 37.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <link about.html>
- 38.True or false: <br> has a closing tag. (a) True (b) False
- 39.🖼️ Which attribute of <img> sets how wide it is? (a) src (b) alt (c) height (d) width
- 40.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <hr> (c) <br> (d) <ul>
Answer key
- an opening tag
- a code editor
- bullets
- </em>
- <a>
- <h2>
- <li>
- Yes
- False
- 2
- </b>
- 2
- <h1>
- <meta>
- My pets
- numbers
- No
- True
- <h6>
- a closing tag
- <img>
- art.html
- 2
- All about me
- <title>
- 4
- <h6>
- Yes
- shows pages from the web
- as one space
- <h1>
- bus.jpg
- in the body
- <h1>
- href
- <h2>
- <a href="about.html">
- False
- width
- <ol>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids