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 list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
-
2.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) index.html (b) Class 7 Blog (c) All about me (d) Thanks for visiting. - 3.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 10 (d) 3
- 4.True or false: a web browser saves our .html files. (a) True (b) False
-
5.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="250"> (a) width (b) A tiger asleep (c) A red kite (d) tiger.jpg - 6.📝 What does <br> do? (a) makes a list (b) makes text bold (c) starts a new line (d) adds a picture
- 7.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as a new line (c) as a dot (d) as 5 spaces
- 8.📄 Can HTML on its own keep a high score? (a) Yes (b) No
-
9.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="400"> (a) A tiger asleep (b) A red kite (c) tiger.jpg (d) width - 10.🔢 In a basic web page file, which comes first: “</body>” or “</head>”? (a) </head> (b) </body>
- 11.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
-
12.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<p>My best friend</p>
<p>Our school trip</p> (a) I love mangoes. (b) My best friend (c) Our school trip (d) Hello, world! - 13.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
- 14.Which of these is true of a web server? (a) shows pages from the web (b) turns HTML into a page (c) answers page requests (d) has an address bar
- 15.True or false: <img> has a closing tag. (a) False (b) True
- 16.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2> (c) <h2/> (d) </h2>
- 17.True or false: <ul> is an ordered list. (a) False (b) True
- 18.📋 Which list tag is an ordered list? (a) <ol> (b) <li> (c) <ul>
- 19.True or false: <h1> is an empty tag. (a) False (b) True
- 20.Which of these is true of a web browser? (a) hosts websites online (b) opens web pages for us (c) shows line numbers (d) sends pages over the net
- 21.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
- 22.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
23.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers - 24.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h3> or <h1>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
- 25.Which of these is a closing tag? (a) <p> (b) <li> (c) <h1> (d) </b>
-
26.🔍 Which line is missing its closing tag?
line 1: <strong>Our school trip
line 2: <small>I love mangoes.</small>
line 3: <h2>Good morning!</h2> (a) line 2 (b) line 1 (c) line 3 - 27.💬 How does an HTML comment start? (a) /* (b) <!-- (c) // (d) #
- 28.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
29.📋 How many items does this list show?
<ul>
<li>Papaya</li>
<li>Mango</li>
<li>Orange</li>
<li>Grapes</li>
</ul> -
30.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<h2>Cricket is fun.</h2>
<p>Fun facts</p>
<p>Cricket is fun.</p>
<p>My pets</p> - 31.True or false: a code editor answers page requests. (a) True (b) False
- 32.📄 Can HTML on its own run a game loop? (a) Yes (b) No
-
33.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Planets</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Thanks for visiting. (b) body (c) My Hobbies (d) Planets - 34.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
-
35.💬 Which text will NOT show on the page?
<!-- <p>My pets</p> -->
<p>Good morning!</p>
<p>Cricket is fun.</p> (a) Cricket is fun. (b) My pets (c) Good morning! - 36.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 3 (d) 10
-
37.💬 How many paragraphs show on the page?
<p>The red kite</p>
<!-- <p>Fun facts</p> -->
<p>Rain today</p>
<p>Our school trip</p>
<p>Good morning!</p> - 38.True or false: <style> goes in the body. (a) True (b) False
-
39.🖼️ Which picture file does the browser load?
<img src="dog.jpg" alt="A happy dog" width="100"> (a) A happy dog (b) moon.png (c) bus.jpg (d) dog.jpg - 40.True or false: HTML on its own cannot make headings. (a) True (b) False
Answer key
- <ol>
- Class 7 Blog
- 1
- False
- A tiger asleep
- starts a new line
- as one space
- No
- A tiger asleep
- </head>
- HyperText
- Hello, world!
- <ul>
- answers page requests
- False
- </h2>
- False
- <ol>
- False
- opens web pages for us
- <ul>
- No
- bullets
- <h5>
- </b>
- line 1
- <!--
- Yes
- 4
- 2
- False
- No
- Planets
- Yes
- My pets
- 6
- 4
- False
- dog.jpg
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids