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) 10 (b) 6 (c) 4 (d) 3
- 2.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h4> or <h3>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
- 3.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
- 4.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
- 5.📄 Which part holds everything you see on the page? (a) the doctype (b) the head (c) the body (d) the title
- 6.💾 A web page file usually ends with which extension? (a) .html (b) .mp3 (c) .png (d) .txt
-
7.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>My pets</h2>
<h2>Fun facts</h2>
<p>The red kite</p> - 8.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) is where we type code (d) shows pages from the web
-
9.🔍 One closing tag is missing. Which one?
<b>Good morning!</b>
<small>I love mangoes.
<strong>Fun facts</strong> (a) </strong> (b) </h3> (c) </small> (d) </b> -
10.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="250"> - 11.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
- 12.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
-
13.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p> - 14.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
- 15.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to colour it (c) to load it faster (d) to describe the image
- 16.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h4> or <h3>? (a) <h2> (b) <h4> (c) <h1> (d) <h3>
- 17.🌐 Which one answers page requests? (a) a code editor (b) a web browser (c) a web server
- 18.True or false: <b> is an empty tag. (a) True (b) False
- 19.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the body (b) in the head
-
20.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<p>Rain today</p>
<!-- <p>My pets</p> -->
<p>Fun facts</p> (a) Rain today (b) Hello, world! (c) My pets (d) Fun facts - 21.💬 How does an HTML comment end? (a) --> (b) */ (c) // (d) >>
- 22.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
- 23.📄 Can HTML on its own pick a random number? (a) No (b) Yes
- 24.True or false: in <img>, alt tells which image to load. (a) False (b) True
-
25.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>Our school trip</p>
<p>Cricket is fun.</p> - 26.🌐 Which one has an address bar? (a) a code editor (b) a web browser (c) a web server
- 27.Which of these is true of a web server? (a) turns HTML into a page (b) stores a website’s files (c) shows line numbers (d) saves our .html files
- 28.🔢 In a basic web page file, which comes first: “<html>” or “<head>”? (a) <html> (b) <head>
- 29.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
-
30.🔗 Which address opens when you click this link?
<a href="games.html">Take the quiz</a> (a) games.html (b) Take the quiz (c) contact.html (d) about.html -
31.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="400"> (a) kite.png (b) cake.jpg (c) map.png (d) A red kite -
32.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="50"> -
33.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p>
<!-- <p>My pets</p> -->
<p>Fun facts</p>
<!-- <p>Good morning!</p> --> - 34.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server
- 35.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 36.True or false: <img> is an empty tag. (a) False (b) True
-
37.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) We won by 5 runs. (b) Class 7 Blog (c) All about me (d) index.html -
38.🔗 Where does this link open?
<a href="maths.html">About us</a> (a) in a new tab (b) in the same tab - 39.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 40.True or false: <ul> is an ordered list. (a) True (b) False
Answer key
- 6
- <h4>
- <ol>
- <ol>
- the body
- .html
- 2
- is where we type code
- </small>
- 250
- <h1>
- in the body
- 1
- in the body
- to describe the image
- <h1>
- a web server
- False
- in the head
- My pets
- -->
- <a>
- No
- False
- 2
- a web browser
- stores a website’s files
- <html>
- Yes
- games.html
- kite.png
- 50
- 2
- a code editor
- a closing tag
- True
- Class 7 Blog
- in the same tab
- a closing tag
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids