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 items does this list show?
<ul>
<li>Guava</li>
<li>Mango</li>
</ul> - 2.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <p> (d) <h3>
- 3.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h5> or <h1>? (a) <h5> (b) <h2> (c) <h3> (d) <h1>
-
4.🖼️ How many pixels wide is the picture drawn?
<img src="dog.jpg" alt="A happy dog" width="100"> - 5.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h6>? (a) <h6> (b) <h4> (c) <h3> (d) <h2>
- 6.Which of these is an opening tag? (a) </p> (b) </h1> (c) <p> (d) </title>
- 7.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h2>? (a) <h6> (b) <h1> (c) <h5> (d) <h2>
-
8.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>My pets</p>
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> --> (a) My pets (b) Rain today (c) Hello, world! (d) I love mangoes. -
9.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) index.html (b) Thanks for visiting. (c) My Hobbies (d) Welcome! - 10.🏷️ Which is the closing tag for <i>? (a) <i/> (b) <i> (c) </i> (d) <\i>
- 11.🌐 Which one colours code to help us? (a) a code editor (b) a web server (c) a web browser
-
12.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Cricket is fun.</p>
<p>Our school trip</p> (a) Cricket is fun. (b) Our school trip (c) I love mangoes. - 13.Which of these is a closing tag? (a) <h1> (b) <li> (c) </b> (d) <body>
- 14.True or false: a web server saves our .html files. (a) True (b) False
- 15.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h4> or <h6>? (a) <h3> (b) <h6> (c) <h2> (d) <h4>
- 16.True or false: <li> is one item of a list. (a) True (b) False
- 17.Which of these is true of a web browser? (a) hosts websites online (b) opens web pages for us (c) saves our .html files (d) shows line numbers
- 18.True or false: a web server has an address bar. (a) True (b) False
- 19.Which of these goes in the head? (a) <table> (b) <a> (c) <p> (d) <link rel="stylesheet">
- 20.True or false: a code editor colours code to help us. (a) True (b) False
- 21.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 22.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 23.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an element name (d) an attribute
- 24.🧱 HTML gives a web page its ___. (a) structure (b) speed (c) sound (d) colours
- 25.True or false: <li> is an unordered list. (a) False (b) True
- 26.💬 How does an HTML comment start? (a) /* (b) // (c) <!-- (d) #
- 27.Which of these is true of a web browser? (a) shows pages from the web (b) sends pages over the net (c) stores a website’s files (d) shows line numbers
-
28.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<!-- <p>I love mangoes.</p> -->
<p>Cricket is fun.</p>
<p>Good morning!</p>
<!-- <p>Hello, world!</p> --> - 29.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
- 30.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) editor (c) attribute (d) address
-
31.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) About us (b) Play games (c) games.html (d) href -
32.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h2>My pets</h2>
<h3>Rain today</h3>
<p>Hello, world!</p>
<p>Good morning!</p> - 33.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h2> or <h3>? (a) <h1> (b) <h3> (c) <h2> (d) <h4>
- 34.Which of these is true of a web server? (a) answers page requests (b) saves our .html files (c) turns HTML into a page (d) opens web pages for us
-
35.🔗 Which address opens when you click this link?
<a href="news.html">Contact us</a> (a) Contact us (b) games.html (c) quiz.html (d) news.html - 36.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h1> or <h4>? (a) <h3> (b) <h2> (c) <h4> (d) <h1>
-
37.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<!-- <p>My pets</p> -->
<p>I love mangoes.</p> - 38.True or false: in <img>, alt describes the picture. (a) False (b) True
- 39.Which of these goes in the head? (a) <p> (b) <a> (c) <style> (d) <ul>
- 40.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
Answer key
- 2
- <h6>
- <h1>
- 100
- <h6>
- <p>
- <h6>
- I love mangoes.
- My Hobbies
- </i>
- a code editor
- I love mangoes.
- </b>
- False
- <h2>
- True
- opens web pages for us
- False
- <link rel="stylesheet">
- True
- a closing tag
- an opening tag
- an attribute
- structure
- False
- <!--
- shows pages from the web
- 2
- <h1>
- element
- Play games
- 3
- <h4>
- answers page requests
- news.html
- <h1>
- 2
- True
- <style>
- in the head
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids