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.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
- 2.💬 How does an HTML comment end? (a) --> (b) */ (c) >> (d) //
-
3.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>My best friend</p>
<p>The red kite</p>
<!-- <p>Fun facts</p> --> (a) Good morning! (b) Fun facts (c) The red kite (d) My best friend - 4.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <body> (d) <html>
- 5.Which of these is a closing tag? (a) <b> (b) <title> (c) </li> (d) <h1>
- 6.True or false: a web server hosts websites online. (a) False (b) True
-
7.📋 Does this list show bullets or numbers?
<ul>
<li>Mango</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers - 8.True or false: HTML on its own can make headings. (a) False (b) True
- 9.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
- 10.True or false: a web server answers page requests. (a) False (b) True
-
11.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>Good morning!</p>
<h2>Rain today</h2>
<p>Hello, world!</p>
<h2>My pets</h2>
<p>Rain today</p> -
12.🔗 Which address opens when you click this link?
<a href="news.html">Visit the site</a> (a) Visit the site (b) quiz.html (c) games.html (d) news.html -
13.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p>
<p>My best friend</p> -
14.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Mars is red.</p>
</body>
</html> (a) body (b) Mars is red. (c) Cricket Club (d) Easy snacks - 15.True or false: <li> lists things in any order. (a) True (b) False
- 16.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 17.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
18.💬 Which text will NOT show on the page?
<p>My pets</p>
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> --> (a) My pets (b) I love mangoes. (c) Hello, world! - 19.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
- 20.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h4>? (a) <h2> (b) <h1> (c) <h5> (d) <h4>
- 21.True or false: a web browser hosts websites online. (a) False (b) True
-
22.🔗 Which address opens when you click this link?
<a href="games.html">About us</a> (a) games.html (b) About us (c) about.html (d) contact.html - 23.True or false: <h1> is an empty tag. (a) True (b) False
- 24.Which of these is true of a web browser? (a) shows line numbers (b) opens web pages for us (c) is where we type code (d) saves our .html files
- 25.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
- 26.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a hash # (c) a slash / (d) a dollar $
- 27.True or false: <input> is an empty tag. (a) False (b) True
- 28.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 29.🔢 In a basic web page file, which comes first: “</html>” or “<head>”? (a) </html> (b) <head>
- 30.True or false: <p> goes in the head. (a) False (b) True
- 31.🌍 Which program shows a web page to us? (a) a web browser (b) a paint program (c) a calculator (d) a music player
-
32.📋 How many items does this list show?
<ul>
<li>Guava</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Mango</li>
<li>Banana</li>
<li>Litchi</li>
</ul> - 33.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 34.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
- 35.True or false: HTML on its own can make a form. (a) True (b) False
-
36.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>Hello, world!</p>
<p>Our school trip</p>
<!-- <p>The red kite</p> --> (a) The red kite (b) Hello, world! (c) Good morning! (d) Our school trip - 37.📝 Does <hr> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 38.Which of these is an opening tag? (a) </body> (b) </h1> (c) </li> (d) <p>
- 39.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
- 40.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h6> or <h3>? (a) <h2> (b) <h5> (c) <h3> (d) <h6>
Answer key
- in the head
- -->
- Fun facts
- <!DOCTYPE html>
- </li>
- True
- bullets
- True
- <
- True
- 4
- news.html
- 3
- Easy snacks
- False
- a closing tag
- Yes
- I love mangoes.
- <a href="about.html">
- <h1>
- False
- games.html
- False
- opens web pages for us
- <li>
- a slash /
- True
- an opening tag
- <head>
- False
- a web browser
- 6
- has a closing tag
- in the body
- True
- The red kite
- an empty tag
- <p>
- 1
- <h6>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids