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.🔍 One closing tag is missing. Which one?
<u>Our school trip</u>
<strong>Good morning!</strong>
<h2>Rain today (a) </i> (b) </strong> (c) </u> (d) </h2> - 2.💬 Does the browser show comments on the page? (a) No (b) Yes
-
3.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>Rain today</p>
<p>Good morning!</p> - 4.🔍 Which is the odd one out? (a) sends pages over the net (b) stores a website’s files (c) has an address bar (d) answers page requests
-
5.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Orange</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers - 6.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 7.💬 How does an HTML comment start? (a) # (b) // (c) <!-- (d) /*
- 8.True or false: <ul> goes in the head. (a) True (b) False
-
9.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>My drawings</h1>
<p>Try this poha.</p>
</body>
</html> (a) body (b) Art Gallery (c) My drawings (d) Try this poha. -
10.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>My pets</p>
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> --> (a) I love mangoes. (b) Hello, world! (c) My pets (d) Rain today - 11.Which of these is true of a web browser? (a) stores a website’s files (b) is where we type code (c) has an address bar (d) answers page requests
-
12.📋 How many items does this list show?
<ol>
<li>Mango</li>
<li>Banana</li>
</ol> - 13.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
- 14.True or false: <ul> is an empty tag. (a) False (b) True
-
15.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>Rain today</p>
<h2>The red kite</h2> -
16.🔍 One closing tag is missing. Which one?
<i>I love mangoes.
<em>Good morning!</em>
<u>My pets</u> (a) </small> (b) </u> (c) </em> (d) </i> - 17.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h3> or <h1>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
- 18.True or false: a code editor stores a website’s files. (a) True (b) False
- 19.🔠 Which heading shows the SMALLEST text: <h5>, <h4>, <h2> or <h3>? (a) <h3> (b) <h2> (c) <h5> (d) <h4>
- 20.🔢 In a basic web page file, which comes first: “<html>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) <html>
-
21.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Banana</li>
<li>Litchi</li>
<li>Mango</li>
<li>Orange</li>
</ol> - 22.📝 Does <meta> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 23.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ul> (d) <ol>
- 24.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
- 25.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h2> or <h3>? (a) <h5> (b) <h3> (c) <h2> (d) <h1>
- 26.🖼️ Which attribute of <img> sets how wide it is? (a) height (b) src (c) width (d) alt
- 27.Which of these goes in the head? (a) <table> (b) <style> (c) <p> (d) <a>
- 28.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
- 29.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h1> or <h6>? (a) <h4> (b) <h1> (c) <h2> (d) <h6>
- 30.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) element (c) attribute (d) editor
- 31.True or false: <li> has a closing tag. (a) True (b) False
- 32.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
- 33.Which of these is an opening tag? (a) </body> (b) </p> (c) </h1> (d) <h1>
- 34.Which of these is true of a web server? (a) stores a website’s files (b) opens web pages for us (c) shows line numbers (d) turns HTML into a page
- 35.Which of these is an empty tag? (a) <title> (b) <b> (c) <img> (d) <h1>
-
36.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) Riya’s Recipes (b) My drawings (c) body (d) I like to read. - 37.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) an attribute (d) a closing tag
-
38.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>Our school trip</p>
<h2>Our school trip</h2>
<h2>The red kite</h2>
<h3>Good morning!</h3> - 39.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
40.🔠 How many headings are in this code?
<h1>Our school trip</h1>
<p>Rain today</p>
<h2>My pets</h2>
<p>My pets</p>
Answer key
- </h2>
- No
- 2
- has an address bar
- bullets
- an opening tag
- <!--
- False
- My drawings
- Hello, world!
- has an address bar
- 2
- a web browser
- False
- 2
- </i>
- <h1>
- False
- <h5>
- <!DOCTYPE html>
- 5
- an empty tag
- <ul>
- <ul>
- <h5>
- width
- <style>
- <img>
- <h1>
- element
- True
- True
- <h1>
- stores a website’s files
- <img>
- My drawings
- an attribute
- 4
- an empty tag
- 2
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids