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.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h4> or <h3>? (a) <h4> (b) <h3> (c) <h5> (d) <h1>
-
2.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Banana</li>
<li>Guava</li>
<li>Grapes</li>
</ul> - 3.Which of these is true of a web browser? (a) opens web pages for us (b) saves our .html files (c) sends pages over the net (d) answers page requests
- 4.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h3> or <h2>? (a) <h2> (b) <h3> (c) <h5> (d) <h1>
-
5.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<h2>My best friend</h2>
<h2>I love mangoes.</h2>
<h2>Our school trip</h2>
<p>My pets</p>
<h2>Hello, world!</h2> -
6.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Planets</h1>
<p>Try this poha.</p>
</body>
</html> (a) Space Facts (b) Planets (c) index.html (d) Try this poha. - 7.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 10 (d) 3
- 8.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
-
9.💬 Which text will NOT show on the page?
<p>My best friend</p>
<p>Good morning!</p>
<!-- <p>Cricket is fun.</p> --> (a) Cricket is fun. (b) My best friend (c) Good morning! -
10.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="300"> (a) cake.jpg (b) width (c) Birthday cake (d) A happy dog - 11.Which of these is an opening tag? (a) <p> (b) </body> (c) </h1> (d) </title>
- 12.🔢 In a basic web page file, which comes LAST? (a) <!DOCTYPE html> (b) <html> (c) </head> (d) </html>
- 13.🔢 In a basic web page file, which comes first: “</head>” or “</html>”? (a) </head> (b) </html>
-
14.🖼️ Which picture file does the browser load?
<img src="dog.jpg" alt="A happy dog" width="300"> (a) bus.jpg (b) dog.jpg (c) moon.png (d) A happy dog - 15.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <h3> (d) <p>
-
16.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) href (b) School news (c) Take the quiz (d) art.html - 17.🔗 What does HyperText mean? (a) secret text (b) text in colour (c) very big text (d) text with links
-
18.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>The red kite</p>
<p>I love mangoes.</p> -
19.🔗 Which address opens when you click this link?
<a href="games.html">School news</a> (a) School news (b) games.html (c) about.html (d) contact.html -
20.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Mango</li>
</ol> (a) bullets (b) numbers -
21.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>My best friend</p>
<p>Our school trip</p> (a) My best friend (b) Our school trip (c) Hello, world! - 22.True or false: a web browser turns HTML into a page. (a) True (b) False
-
23.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Stars shine<br>Rivers flow<br>Birds sing<br>Roses are red</p> - 24.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
25.🔍 One closing tag is missing. Which one?
<p>My best friend
<u>Rain today</u>
<h1>My pets</h1> (a) </h1> (b) </p> (c) </u> (d) </small> -
26.🔗 Which words do you click on?
<a href="contact.html">Contact us</a> (a) contact.html (b) Visit the site (c) href (d) Contact us -
27.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
<p>Rain today</p>
<p>My best friend</p> -
28.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Good morning!</p>
<h2>I love mangoes.</h2>
<p>Our school trip</p>
<h2>My pets</h2> -
29.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>The red kite</p> -->
<p>Fun facts</p>
<p>I love mangoes.</p> (a) I love mangoes. (b) The red kite (c) My pets (d) Fun facts - 30.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>
-
31.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<!-- <p>My pets</p> -->
<p>Hello, world!</p>
<p>Good morning!</p> (a) Hello, world! (b) Fun facts (c) Good morning! (d) My pets - 32.💬 How does an HTML comment end? (a) */ (b) >> (c) // (d) -->
- 33.True or false: <ol> is an ordered list. (a) False (b) True
- 34.True or false: in <img>, src tells which image to load. (a) True (b) False
- 35.📄 Which part holds everything you see on the page? (a) the head (b) the body (c) the title (d) the doctype
- 36.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
- 37.📄 Can HTML on its own make a form? (a) No (b) Yes
-
38.🔍 One closing tag is missing. Which one?
<h2>My pets</h2>
<strong>I love mangoes.
<b>Rain today</b> (a) </h2> (b) </h3> (c) </b> (d) </strong> - 39.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 40.True or false: <ul> shows bullet points. (a) False (b) True
Answer key
- <h1>
- 4
- opens web pages for us
- <h1>
- 2
- Space Facts
- 1
- Yes
- Cricket is fun.
- Birthday cake
- <p>
- </html>
- </head>
- dog.jpg
- <h6>
- School news
- text with links
- 3
- games.html
- numbers
- Hello, world!
- True
- 5
- an empty tag
- </p>
- Contact us
- 3
- 3
- The red kite
- <ol>
- My pets
- -->
- True
- True
- the body
- in the body
- Yes
- </strong>
- an opening tag
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids