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 paragraphs show on the page?
<p>The red kite</p>
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p> - 2.🏷️ Which is the closing tag for <i>? (a) <\i> (b) </i> (c) <i/> (d) <i>
- 3.🔍 Which is the odd one out? (a) is where we type code (b) opens web pages for us (c) turns HTML into a page (d) has an address bar
- 4.🌐 Which one is where we type code? (a) a web browser (b) a web server (c) a code editor
- 5.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 6.True or false: <p> has a closing tag. (a) True (b) False
-
7.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Match report</h1>
<p>Mars is red.</p>
</body>
</html> (a) Mars is red. (b) Match report (c) My Hobbies (d) body -
8.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Papaya</li>
<li>Guava</li>
</ol> (a) numbers (b) bullets - 9.True or false: <ul> is an empty tag. (a) True (b) False
- 10.🔗 Which tag makes a clickable link? (a) <p> (b) <a> (c) <img> (d) <link>
- 11.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
-
12.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Jamun</li>
<li>Guava</li>
<li>Litchi</li>
</ul> - 13.Which of these is an empty tag? (a) <ul> (b) <h1> (c) <title> (d) <meta>
- 14.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h4>
-
15.🔍 One closing tag is missing. Which one?
<h3>My pets</h3>
<p>Hello, world!
<i>Fun facts</i> (a) </p> (b) </i> (c) </small> (d) </h3> -
16.🔍 Which line is missing its closing tag?
line 1: <h2>Good morning!</h2>
line 2: <h1>Rain today</h1>
line 3: <p>Hello, world! (a) line 2 (b) line 1 (c) line 3 - 17.True or false: in <img>, src names the picture file. (a) True (b) False
- 18.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <ol> (d) <p>
- 19.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 20.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
-
21.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="100"> -
22.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Our school trip</p>
<h2>Cricket is fun.</h2>
<p>My pets</p> - 23.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
- 24.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
- 25.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
-
26.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>My pets</p> -->
<p>Hello, world!</p> - 27.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h5>? (a) <h1> (b) <h5> (c) <h4> (d) <h2>
- 28.🔠 How many heading levels does HTML have? (a) 4 (b) 3 (c) 6 (d) 10
- 29.Which of these is an opening tag? (a) </p> (b) <p> (c) </body> (d) </title>
-
30.🔗 Where does this link open?
<a href="games.html" target="_blank">About us</a> (a) in the same tab (b) in a new tab -
31.🔍 Which line is missing its closing tag?
line 1: <i>My pets</i>
line 2: <u>I love mangoes.</u>
line 3: <h3>Our school trip (a) line 1 (b) line 3 (c) line 2 - 32.🔢 In a basic web page file, which comes first: “</head>” or “<body>”? (a) <body> (b) </head>
- 33.🔠 Are headings shown in bold by default? (a) No (b) Yes
-
34.📋 How many items does this list show?
<ol>
<li>Banana</li>
<li>Jamun</li>
<li>Mango</li>
</ol> - 35.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 10 (d) 6
- 36.True or false: a code editor hosts websites online. (a) True (b) False
-
37.📋 What number does the browser show next to “Banana”?
<ol start="8">
<li>Mango</li>
<li>Banana</li>
<li>Guava</li>
</ol> -
38.🔗 Which address opens when you click this link?
<a href="games.html">About us</a> (a) about.html (b) contact.html (c) About us (d) games.html - 39.📄 Can HTML on its own make a form? (a) Yes (b) No
- 40.📝 What does <hr> draw? (a) a link (b) a line across the page (c) a table (d) a picture
Answer key
- 2
- </i>
- is where we type code
- a code editor
- an empty tag
- True
- Match report
- numbers
- False
- <a>
- a web browser
- 4
- <meta>
- <h6>
- </p>
- line 3
- True
- <li>
- a closing tag
- a web server
- 100
- 2
- <ul>
- <img>
- in the body
- 2
- <h5>
- 6
- <p>
- in a new tab
- line 3
- </head>
- Yes
- 3
- 1
- False
- 9
- games.html
- Yes
- a line across the page
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids