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 code editor saves our .html files. (a) False (b) True
- 2.True or false: a web browser hosts websites online. (a) True (b) False
- 3.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h3>? (a) <h6> (b) <h5> (c) <h1> (d) <h3>
-
4.🔍 Which line is missing its closing tag?
line 1: <u>Rain today
line 2: <b>I love mangoes.</b>
line 3: <small>My best friend</small> (a) line 2 (b) line 3 (c) line 1 - 5.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
- 6.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h3> or <h5>? (a) <h2> (b) <h3> (c) <h4> (d) <h5>
-
7.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Planets</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Planets (b) Thanks for visiting. (c) body (d) Space Facts - 8.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
-
9.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Guava</li>
<li>Banana</li>
</ul> (a) bullets (b) numbers - 10.Which of these is true of a web browser? (a) sends pages over the net (b) answers page requests (c) shows pages from the web (d) saves our .html files
-
11.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Rivers flow</p> -
12.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Good morning!</p>
<p>Hello, world!</p>
<p>My pets</p> - 13.🔠 Which tag is the least important heading? (a) <h3> (b) <h1> (c) <p> (d) <h6>
- 14.True or false: in <img>, width describes the picture. (a) False (b) True
- 15.True or false: <title> goes in the head. (a) False (b) True
- 16.📄 Can HTML on its own make a form? (a) Yes (b) No
- 17.🖼️ Which attribute of <img> sets how wide it is? (a) height (b) width (c) src (d) alt
-
18.🔗 Which address opens when you click this link?
<a href="news.html">School news</a> (a) quiz.html (b) games.html (c) news.html (d) School news - 19.True or false: a web server turns HTML into a page. (a) True (b) False
- 20.💬 Why do coders write comments? (a) to show pictures (b) to make links (c) to leave notes (d) to add colour
-
21.💬 Which text will NOT show on the page?
<!-- <p>My pets</p> -->
<p>Hello, world!</p>
<p>Our school trip</p>
<p>Fun facts</p> (a) My pets (b) Hello, world! (c) Our school trip (d) Fun facts - 22.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
- 23.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h3> or <h5>? (a) <h6> (b) <h3> (c) <h5> (d) <h1>
- 24.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 4 (d) 6
- 25.True or false: a web server stores a website’s files. (a) False (b) True
- 26.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h6>? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
-
27.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Jamun</li>
<li>Litchi</li>
<li>Guava</li>
<li>Papaya</li>
</ol> -
28.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Guava</li>
<li>Orange</li>
<li>Grapes</li>
<li>Banana</li>
</ul> -
29.🔗 Where does this link open?
<a href="https://example.com">School news</a> (a) in the same tab (b) in a new tab - 30.Which of these is a closing tag? (a) <title> (b) <li> (c) <body> (d) </body>
- 31.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
- 32.True or false: <img> goes in the body. (a) True (b) False
-
33.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>My pets</p>
<p>Rain today</p>
<p>Good morning!</p>
<p>Cricket is fun.</p>
<p>Fun facts</p> -
34.🔠 How many headings are in this code?
<h1>My pets</h1>
<h4>I love mangoes.</h4>
<h4>My pets</h4>
<p>My best friend</p> - 35.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) Hot Tags (c) High Tech (d) HyperText
-
36.📋 What number does the browser show next to “Mango”?
<ol start="9">
<li>Orange</li>
<li>Grapes</li>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
</ol> - 37.🔍 Which is the odd one out? (a) has an address bar (b) shows pages from the web (c) turns HTML into a page (d) hosts websites online
-
38.🔍 Which line is missing its closing tag?
line 1: <b>Our school trip</b>
line 2: <h3>Cricket is fun.
line 3: <em>My best friend</em> (a) line 3 (b) line 2 (c) line 1 -
39.📋 Does this list show bullets or numbers?
<ul>
<li>Mango</li>
<li>Guava</li>
</ul> (a) bullets (b) numbers - 40.Which of these is an opening tag? (a) </body> (b) <title> (c) </title> (d) </h1>
Answer key
- True
- False
- <h1>
- line 1
- <ul>
- <h2>
- Planets
- Yes
- bullets
- shows pages from the web
- 2
- 3
- <h6>
- False
- True
- Yes
- width
- news.html
- False
- to leave notes
- My pets
- in the head
- <h6>
- 6
- True
- <h1>
- 4
- 5
- in the same tab
- </body>
- <a>
- True
- 6
- 3
- HyperText
- 12
- hosts websites online
- line 2
- bullets
- <title>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids