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 headings are in this code?
<h1>Hello, world!</h1>
<h3>Cricket is fun.</h3>
<p>Good morning!</p>
<h2>Cricket is fun.</h2>
<p>The red kite</p> - 2.🔤 In “HTML”, what does the L stand for? (a) Link (b) Language (c) Laptop (d) Line
- 3.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h4> or <h1>? (a) <h1> (b) <h2> (c) <h3> (d) <h4>
-
4.🔍 One closing tag is missing. Which one?
<h1>I love mangoes.</h1>
<b>Cricket is fun.</b>
<small>My pets (a) </b> (b) </strong> (c) </h1> (d) </small> -
5.🔗 Which address opens when you click this link?
<a href="contact.html">School news</a> (a) https://example.com (b) maths.html (c) School news (d) contact.html - 6.Which of these is an empty tag? (a) <title> (b) <br> (c) <li> (d) <h1>
- 7.📄 Where does the text of <title> appear? (a) nowhere (b) at the bottom (c) in a big heading (d) on the browser tab
-
8.🔗 Where does this link open?
<a href="maths.html">Contact us</a> (a) in the same tab (b) in a new tab -
9.🔍 Which line is missing its closing tag?
line 1: <u>Hello, world!</u>
line 2: <i>Cricket is fun.
line 3: <h1>Rain today</h1> (a) line 3 (b) line 1 (c) line 2 - 10.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h1> or <h6>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
-
11.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>I like to read.</p>
</body>
</html> (a) index.html (b) I like to read. (c) Easy snacks (d) Cricket Club -
12.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>Fun facts</p> -->
<p>My best friend</p> (a) Fun facts (b) My pets (c) My best friend - 13.True or false: a web server has an address bar. (a) True (b) False
- 14.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 15.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes text bold (d) makes a list
-
16.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> - 17.Which of these is true of a web browser? (a) shows line numbers (b) shows pages from the web (c) saves our .html files (d) is where we type code
- 18.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
- 19.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 20.📄 Can HTML on its own make a form? (a) No (b) Yes
- 21.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 22.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
- 23.True or false: HTML on its own can make links to pages. (a) True (b) False
- 24.Which of these is a closing tag? (a) <b> (b) <h1> (c) </h1> (d) <p>
-
25.💬 How many paragraphs show on the page?
<p>The red kite</p>
<!-- <p>Cricket is fun.</p> -->
<p>I love mangoes.</p>
<p>Rain today</p> - 26.🌐 Which one saves our .html files? (a) a web browser (b) a code editor (c) a web server
- 27.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
- 28.📋 Which list tag lists things in any order? (a) <li> (b) <ul> (c) <ol>
- 29.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
30.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Guava</li>
</ol> -
31.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Stars shine<br>Roses are red</p> -
32.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) href (b) Play games (c) contact.html (d) About us -
33.🔗 Which address opens when you click this link?
<a href="news.html">School news</a> (a) School news (b) games.html (c) news.html (d) quiz.html - 34.True or false: <input> is an empty tag. (a) False (b) True
- 35.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it blank (c) makes it bold (d) opens it in a new tab
-
36.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>I love mangoes.</p> -->
<p>My best friend</p> - 37.True or false: <li> is one item of a list. (a) False (b) True
- 38.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h5> or <h2>? (a) <h3> (b) <h4> (c) <h2> (d) <h5>
-
39.💬 Which text will NOT show on the page?
<!-- <p>My pets</p> -->
<p>I love mangoes.</p>
<p>My best friend</p> (a) I love mangoes. (b) My best friend (c) My pets - 40.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) an element name (d) a comment
Answer key
- 3
- Language
- <h1>
- </small>
- contact.html
- <br>
- on the browser tab
- in the same tab
- line 2
- <h1>
- Cricket Club
- Fun facts
- False
- an opening tag
- starts a new line
- 200
- shows pages from the web
- in the body
- an opening tag
- Yes
- a closing tag
- True
- True
- </h1>
- 3
- a code editor
- <ul>
- <ul>
- a closing tag
- 2
- 3
- Play games
- news.html
- True
- opens it in a new tab
- 1
- True
- <h5>
- My pets
- an attribute
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids