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>Cricket is fun.</p> -->
<!-- <p>Good morning!</p> -->
<p>I love mangoes.</p> - 2.True or false: <p> is an empty tag. (a) True (b) False
- 3.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) High Tech (c) HyperText (d) Hot Tags
-
4.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Orange</li>
<li>Mango</li>
<li>Papaya</li>
<li>Guava</li>
</ol> - 5.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 6.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h4>? (a) <h4> (b) <h1> (c) <h2> (d) <h6>
-
7.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Try this poha.</p>
</body>
</html> (a) Try this poha. (b) Easy snacks (c) index.html (d) Art Gallery - 8.📋 Which list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ol> (d) <ul>
- 9.🌐 Which one shows line numbers? (a) a web browser (b) a code editor (c) a web server
-
10.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>My drawings</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) My drawings (b) Class 7 Blog (c) body (d) Thanks for visiting. - 11.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h4>? (a) <h2> (b) <h6> (c) <h4> (d) <h5>
-
12.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Rivers flow<br>Sky is blue<br>Birds sing<br>Roses are red</p> -
13.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<!-- <p>Hello, world!</p> -->
<p>My pets</p> (a) My pets (b) Hello, world! (c) Our school trip - 14.True or false: <ul> is an ordered list. (a) False (b) True
- 15.📄 Which part holds everything you see on the page? (a) the doctype (b) the body (c) the head (d) the title
-
16.🔠 How many headings are in this code?
<h1>Our school trip</h1>
<h4>My best friend</h4>
<p>My best friend</p> - 17.🌐 Which one shows pages from the web? (a) a web browser (b) a code editor (c) a web server
-
18.📋 What number does the browser show next to “Papaya”?
<ol start="3">
<li>Guava</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Orange</li>
<li>Mango</li>
</ol> - 19.True or false: <ul> has a closing tag. (a) True (b) False
-
20.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Banana</li>
<li>Guava</li>
</ul> - 21.Which of these has a closing tag? (a) <img> (b) <title> (c) <br> (d) <input>
- 22.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 23.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 1 (d) 3
- 24.True or false: in <img>, width sets how wide it is. (a) False (b) True
- 25.🏷️ Every HTML tag starts with which sign? (a) { (b) < (c) ( (d) [
- 26.🔢 In a basic web page file, which comes FIRST? (a) </head> (b) <html> (c) </html> (d) <!DOCTYPE html>
- 27.💬 Why do coders write comments? (a) to show pictures (b) to make links (c) to leave notes (d) to add colour
-
28.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="250"> (a) Map of India (b) map.png (c) width (d) Birthday cake - 29.True or false: <style> goes in the body. (a) False (b) True
- 30.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
- 31.📄 Can HTML on its own make a form? (a) No (b) Yes
- 32.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h4> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
- 33.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
- 34.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) sends pages over the net (d) is where we type code
-
35.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Stars shine<br>Kites fly high<br>Birds sing<br>Rivers flow</p> -
36.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Rain today</p>
<p>Cricket is fun.</p>
<p>The red kite</p> (a) Rain today (b) Good morning! (c) Cricket is fun. (d) The red kite -
37.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>Cricket is fun.</p>
<p>Rain today</p>
<p>My pets</p> -
38.💬 How many paragraphs show on the page?
<p>The red kite</p>
<!-- <p>Our school trip</p> -->
<!-- <p>My pets</p> -->
<p>Fun facts</p>
<!-- <p>Good morning!</p> --> - 39.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h2> or <h4>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>
- 40.🖼️ Which attribute of <img> shows if the image fails? (a) height (b) width (c) src (d) alt
Answer key
- 1
- False
- HyperText
- 5
- in the head
- <h1>
- Art Gallery
- <ol>
- a code editor
- My drawings
- <h2>
- 5
- Hello, world!
- False
- the body
- 2
- a web browser
- 6
- True
- 3
- <title>
- has a closing tag
- 1
- True
- <
- <!DOCTYPE html>
- to leave notes
- Map of India
- False
- in the body
- Yes
- <h1>
- Yes
- is where we type code
- 5
- Good morning!
- 3
- 2
- <h5>
- alt
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids