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.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Papaya</li>
<li>Litchi</li>
</ul> (a) bullets (b) numbers - 2.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
3.🔍 One closing tag is missing. Which one?
<i>Cricket is fun.</i>
<small>I love mangoes.</small>
<p>Our school trip (a) </small> (b) </p> (c) </h2> (d) </i> -
4.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Planets</h1>
<p>Try this poha.</p>
</body>
</html> (a) Class 7 Blog (b) index.html (c) Planets (d) Try this poha. - 5.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 10 (d) 3
- 6.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <table> (c) <img> (d) <a>
-
7.🔗 Which words do you click on?
<a href="news.html">Take the quiz</a> (a) Play games (b) news.html (c) Take the quiz (d) href -
8.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Cricket is fun.</p>
<p>I love mangoes.</p> (a) Cricket is fun. (b) I love mangoes. (c) Good morning! - 9.Which of these is an empty tag? (a) <title> (b) <img> (c) <p> (d) <b>
- 10.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
-
11.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>I love mangoes.</p>
<!-- <p>Fun facts</p> --> (a) Good morning! (b) Fun facts (c) I love mangoes. - 12.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
-
13.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Banana</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers -
14.🔗 Which words do you click on?
<a href="https://example.com">Visit the site</a> (a) Visit the site (b) https://example.com (c) Maths fun (d) href -
15.📋 What number does the browser show next to “Guava”?
<ol start="4">
<li>Orange</li>
<li>Jamun</li>
<li>Banana</li>
<li>Litchi</li>
<li>Guava</li>
<li>Papaya</li>
</ol> -
16.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>My best friend</p>
<!-- <p>Fun facts</p> --> (a) Good morning! (b) Fun facts (c) My best friend - 17.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
- 18.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it blank (c) opens it in a new tab (d) makes it bold
- 19.True or false: HTML on its own can make headings. (a) True (b) False
- 20.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p> (c) </p> (d) <p/>
- 21.💬 Does the browser show comments on the page? (a) Yes (b) No
- 22.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
23.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Banana</li>
</ul> - 24.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) <\h1> (c) <h1/> (d) </h1>
- 25.Which of these goes in the head? (a) <h1> (b) <img> (c) <link rel="stylesheet"> (d) <ul>
-
26.🔗 Where does this link open?
<a href="news.html" target="_blank">Play games</a> (a) in the same tab (b) in a new tab - 27.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 28.True or false: <ul> is an unordered list. (a) False (b) True
-
29.🔗 Which words do you click on?
<a href="news.html">About us</a> (a) href (b) Contact us (c) news.html (d) About us - 30.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <ol> (d) <hr>
-
31.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> (a) A tiger asleep (b) tiger.jpg (c) map.png (d) kite.png - 32.True or false: <ul> shows bullet points. (a) False (b) True
- 33.📛 In <a href="x.html">, what is href? (a) an attribute (b) an element name (c) a comment (d) a closing tag
- 34.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
-
35.🔗 Which words do you click on?
<a href="news.html">Art corner</a> (a) School news (b) news.html (c) Art corner (d) href - 36.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h3> or <h5>? (a) <h4> (b) <h6> (c) <h3> (d) <h5>
-
37.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>My pets</p>
<p>I love mangoes.</p>
<h2>My best friend</h2>
<p>Fun facts</p> - 38.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
-
39.💬 How many paragraphs show on the page?
<p>The red kite</p>
<p>I love mangoes.</p>
<!-- <p>Cricket is fun.</p> --> - 40.Which of these has a closing tag? (a) <img> (b) <ul> (c) <input> (d) <meta>
Answer key
- bullets
- No
- </p>
- Class 7 Blog
- 6
- <meta charset="utf-8">
- Take the quiz
- Good morning!
- <img>
- in the body
- Fun facts
- False
- bullets
- Visit the site
- 8
- Fun facts
- <ul>
- opens it in a new tab
- True
- </p>
- No
- an opening tag
- 2
- </h1>
- <link rel="stylesheet">
- in a new tab
- an opening tag
- True
- About us
- <ol>
- tiger.jpg
- True
- an attribute
- <ul>
- Art corner
- <h6>
- 4
- in the body
- 2
- <ul>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids