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.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h3> or <h1>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
-
2.💬 Which text will NOT show on the page?
<!-- <p>Fun facts</p> -->
<p>My pets</p>
<p>Cricket is fun.</p> (a) Fun facts (b) Cricket is fun. (c) My pets - 3.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
-
4.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Jamun</li>
<li>Orange</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 5.True or false: <ul> shows bullet points. (a) True (b) False
-
6.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<!-- <p>Cricket is fun.</p> -->
<!-- <p>The red kite</p> -->
<p>Hello, world!</p> -
7.🔍 One closing tag is missing. Which one?
<p>Hello, world!</p>
<u>The red kite
<h1>I love mangoes.</h1> (a) </u> (b) </p> (c) </h1> (d) </small> - 8.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
-
9.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<p>Rain today</p>
<p>Hello, world!</p> - 10.🔗 What does HyperText mean? (a) text in colour (b) very big text (c) text with links (d) secret text
- 11.🏷️ Which is the closing tag for <small>? (a) <small/> (b) <small> (c) <\small> (d) </small>
- 12.True or false: <br> is an empty tag. (a) False (b) True
-
13.🔗 Where does this link open?
<a href="games.html" target="_blank">Visit the site</a> (a) in a new tab (b) in the same tab - 14.True or false: <li> is an unordered list. (a) True (b) False
- 15.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
-
16.🔗 Where does this link open?
<a href="maths.html">Contact us</a> (a) in a new tab (b) in the same tab -
17.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Match report</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Riya’s Recipes (b) body (c) Thanks for visiting. (d) Match report - 18.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as a new line (c) as a dot (d) as one space
- 19.True or false: <li> shows bullet points. (a) False (b) True
- 20.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 21.Which of these is a closing tag? (a) </h1> (b) <p> (c) <h1> (d) <li>
- 22.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <p> (c) <style> (d) <title>
- 23.📄 Can HTML on its own make headings? (a) No (b) Yes
-
24.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>My pets</p> -->
<p>Our school trip</p>
<!-- <p>My best friend</p> -->
<p>Fun facts</p> - 25.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 26.🌐 Which one opens web pages for us? (a) a web server (b) a code editor (c) a web browser
-
27.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Orange</li>
</ol> (a) bullets (b) numbers -
28.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Rain today</p> -->
<p>The red kite</p> - 29.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h6> or <h3>? (a) <h5> (b) <h3> (c) <h4> (d) <h6>
- 30.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h5> or <h1>? (a) <h4> (b) <h1> (c) <h5> (d) <h6>
-
31.📋 What number does the browser show next to “Orange”?
<ol>
<li>Jamun</li>
<li>Guava</li>
<li>Orange</li>
</ol> - 32.Which of these is a closing tag? (a) </title> (b) <b> (c) <title> (d) <p>
- 33.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
- 34.🔢 In a basic web page file, which comes LAST? (a) <body> (b) <html> (c) </html> (d) <!DOCTYPE html>
- 35.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
-
36.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="150"> -
37.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<h2>My pets</h2>
<p>I love mangoes.</p> - 38.Which of these is an opening tag? (a) <title> (b) </title> (c) </li> (d) </p>
-
39.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<!-- <p>My best friend</p> -->
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<p>The red kite</p> -
40.🔗 Where does this link open?
<a href="news.html" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab
Answer key
- <h1>
- Fun facts
- in the head
- 5
- True
- 1
- </u>
- <ul>
- 2
- text with links
- </small>
- True
- in a new tab
- False
- <img>
- in the same tab
- Match report
- as one space
- False
- Yes
- </h1>
- <p>
- Yes
- 2
- Yes
- a web browser
- numbers
- 2
- <h6>
- <h6>
- 3
- </title>
- <ul>
- </html>
- a web browser
- 150
- 2
- <title>
- 3
- in a new tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids