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.True or false: a web browser saves our .html files. (a) False (b) True
- 2.📄 Can HTML on its own make tables? (a) Yes (b) No
- 3.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h1> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
- 4.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <h6> (d) <br>
- 5.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) has an address bar (d) saves our .html files
-
6.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Cricket is fun.</p>
<h3>Cricket is fun.</h3> -
7.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Fun facts</p>
<p>I love mangoes.</p> - 8.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes text bold (d) makes a list
- 9.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
10.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue</p> -
11.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>I love mangoes.</p> -->
<!-- <p>Good morning!</p> -->
<p>Rain today</p> -
12.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Play games (b) games.html (c) href (d) Take the quiz - 13.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h1> or <h3>? (a) <h6> (b) <h4> (c) <h3> (d) <h1>
- 14.Which of these is true of a code editor? (a) sends pages over the net (b) shows pages from the web (c) turns HTML into a page (d) saves our .html files
- 15.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h4> or <h5>? (a) <h6> (b) <h4> (c) <h2> (d) <h5>
- 16.True or false: in <img>, alt shows if the image fails. (a) True (b) False
- 17.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
-
18.📋 Does this list show bullets or numbers?
<ul>
<li>Mango</li>
<li>Grapes</li>
</ul> (a) bullets (b) numbers - 19.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
- 20.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 21.🔠 How many heading levels does HTML have? (a) 10 (b) 6 (c) 4 (d) 3
-
22.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) My drawings (b) Riya’s Recipes (c) I like to read. (d) index.html - 23.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
- 24.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 25.📝 What does <hr> draw? (a) a table (b) a link (c) a picture (d) a line across the page
- 26.🔍 Which is the odd one out? (a) has an address bar (b) hosts websites online (c) opens web pages for us (d) shows pages from the web
- 27.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
- 28.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
29.🔗 Which words do you click on?
<a href="about.html">School news</a> (a) School news (b) Take the quiz (c) href (d) about.html - 30.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h1> or <h5>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
- 31.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
-
32.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="300"> (a) bus.jpg (b) fort.jpg (c) Our school bus (d) tiger.jpg -
33.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Grapes</li>
<li>Litchi</li>
<li>Guava</li>
</ol> - 34.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
-
35.🔍 One closing tag is missing. Which one?
<small>Rain today
<i>Cricket is fun.</i>
<h1>My best friend</h1> (a) </p> (b) </h1> (c) </small> (d) </i> -
36.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<!-- <p>Rain today</p> -->
<p>Fun facts</p>
<p>I love mangoes.</p> -
37.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Cricket is fun.</p>
<p>My pets</p> - 38.🌐 Which one sends pages over the net? (a) a web browser (b) a code editor (c) a web server
-
39.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>Fun facts</h2>
<h2>Fun facts</h2> - 40.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
Answer key
- False
- Yes
- <h6>
- <h1>
- saves our .html files
- 2
- 1
- starts a new line
- a closing tag
- 2
- 1
- Take the quiz
- <h6>
- saves our .html files
- <h6>
- True
- Yes
- bullets
- <ol>
- Yes
- 6
- Riya’s Recipes
- in the body
- in the head
- a line across the page
- hosts websites online
- <ol>
- an opening tag
- School news
- <h5>
- in the body
- bus.jpg
- 2
- <
- </small>
- 2
- 1
- a web server
- 1
- has a closing tag
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids