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 heading levels does HTML have? (a) 3 (b) 4 (c) 6 (d) 10
- 2.🏷️ Every HTML tag starts with which sign? (a) ( (b) [ (c) { (d) <
- 3.🌍 Which program shows a web page to us? (a) a calculator (b) a music player (c) a web browser (d) a paint program
-
4.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>Fun facts</p> -->
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p> - 5.📝 What does <br> do? (a) starts a new line (b) makes text bold (c) makes a list (d) adds a picture
- 6.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
- 7.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h3> (d) <h4>
-
8.🔗 Which address opens when you click this link?
<a href="about.html">Play games</a> (a) about.html (b) Play games (c) https://example.com (d) contact.html -
9.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Our school trip</p>
<h3>I love mangoes.</h3> -
10.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h3>I love mangoes.</h3>
<h2>The red kite</h2>
<h3>My best friend</h3>
<p>Good morning!</p> - 11.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h2> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
-
12.📋 What number does the browser show next to “Litchi”?
<ol start="3">
<li>Banana</li>
<li>Papaya</li>
<li>Litchi</li>
</ol> - 13.Which of these goes in the head? (a) <h1> (b) <link rel="stylesheet"> (c) <a> (d) <table>
- 14.📄 Can HTML on its own make links to pages? (a) Yes (b) No
- 15.True or false: <title> goes in the body. (a) True (b) False
- 16.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) address (c) editor (d) element
- 17.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h2> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h4>
-
18.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="400"> - 19.True or false: a web server opens web pages for us. (a) True (b) False
- 20.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
21.🔗 Which address opens when you click this link?
<a href="maths.html">About us</a> (a) news.html (b) maths.html (c) About us (d) art.html -
22.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Orange</li>
<li>Jamun</li>
<li>Banana</li>
<li>Guava</li>
<li>Grapes</li>
</ol> -
23.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Banana</li>
</ol> (a) numbers (b) bullets - 24.True or false: a code editor has an address bar. (a) True (b) False
-
25.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Try this poha.</p>
</body>
</html> (a) Riya’s Recipes (b) Welcome! (c) Try this poha. (d) body - 26.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h1> or <h4>? (a) <h5> (b) <h2> (c) <h1> (d) <h4>
-
27.🔗 Which address opens when you click this link?
<a href="quiz.html">Play games</a> (a) games.html (b) Play games (c) quiz.html (d) about.html - 28.Which of these goes in the body? (a) <h1> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <style>
-
29.🔗 Which address opens when you click this link?
<a href="maths.html">School news</a> (a) news.html (b) maths.html (c) School news (d) art.html - 30.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 31.True or false: <table> goes in the body. (a) False (b) True
-
32.💬 Which text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>I love mangoes.</p>
<p>Hello, world!</p> (a) Hello, world! (b) I love mangoes. (c) The red kite - 33.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 34.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h4> or <h3>? (a) <h3> (b) <h1> (c) <h2> (d) <h4>
-
35.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="300"> -
36.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>My pets</p>
<p>The red kite</p> (a) My pets (b) Hello, world! (c) The red kite - 37.💾 A web page file usually ends with which extension? (a) .png (b) .html (c) .txt (d) .mp3
- 38.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
-
39.📋 What number does the browser show next to “Mango”?
<ol start="3">
<li>Banana</li>
<li>Orange</li>
<li>Guava</li>
<li>Mango</li>
</ol> - 40.Which of these is an empty tag? (a) <title> (b) <ul> (c) <li> (d) <img>
Answer key
- 6
- <
- a web browser
- 2
- starts a new line
- <ul>
- <h2>
- about.html
- 2
- 4
- <h6>
- 5
- <link rel="stylesheet">
- Yes
- False
- element
- <h1>
- 400
- False
- a closing tag
- maths.html
- 6
- numbers
- False
- Welcome!
- <h5>
- quiz.html
- <h1>
- maths.html
- in the head
- True
- The red kite
- an opening tag
- <h4>
- 300
- Hello, world!
- .html
- <a>
- 6
- <img>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids