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 words do you click on?
<a href="quiz.html">Maths fun</a> (a) Maths fun (b) Art corner (c) href (d) quiz.html - 2.🔍 Which is the odd one out? (a) has an address bar (b) shows line numbers (c) shows pages from the web (d) turns HTML into a page
- 3.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h6> or <h1>? (a) <h3> (b) <h5> (c) <h1> (d) <h6>
- 4.💬 Why do coders write comments? (a) to make links (b) to add colour (c) to show pictures (d) to leave notes
- 5.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <a> (d) <img>
-
6.🔗 Which address opens when you click this link?
<a href="about.html">School news</a> (a) contact.html (b) School news (c) about.html (d) https://example.com - 7.🔍 Which is the odd one out? (a) hosts websites online (b) has an address bar (c) sends pages over the net (d) stores a website’s files
- 8.True or false: HTML on its own can make a form. (a) True (b) False
-
9.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="150"> (a) Our school bus (b) width (c) An old fort (d) bus.jpg -
10.🔗 Where does this link open?
<a href="maths.html">Visit the site</a> (a) in the same tab (b) in a new tab -
11.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Sky is blue<br>Roses are red<br>Rivers flow<br>Birds sing</p> -
12.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) body (c) Cricket Club (d) Easy snacks - 13.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h1> or <h3>? (a) <h6> (b) <h3> (c) <h4> (d) <h1>
-
14.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<h2>Hello, world!</h2>
<p>Cricket is fun.</p>
<h2>Good morning!</h2>
<h2>My best friend</h2> -
15.🔍 Which line is missing its closing tag?
line 1: <h1>The red kite</h1>
line 2: <i>Cricket is fun.
line 3: <h3>Good morning!</h3> (a) line 1 (b) line 3 (c) line 2 - 16.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <hr> (d) <ul>
- 17.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <a> (d) <img>
- 18.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h6> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
- 19.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
20.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Cricket is fun.</p> -->
<p>The red kite</p>
<p>Our school trip</p> (a) Our school trip (b) I love mangoes. (c) The red kite (d) Cricket is fun. -
21.🔗 Where does this link open?
<a href="quiz.html">Contact us</a> (a) in a new tab (b) in the same tab - 22.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h2> or <h6>? (a) <h6> (b) <h1> (c) <h3> (d) <h2>
- 23.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 24.True or false: <title> goes in the body. (a) True (b) False
- 25.🔗 What does HyperText mean? (a) secret text (b) text in colour (c) text with links (d) very big text
- 26.True or false: <meta> is an empty tag. (a) False (b) True
-
27.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<p>Our school trip</p>
<p>Good morning!</p>
<p>Rain today</p> - 28.🌐 Which one shows pages from the web? (a) a web browser (b) a code editor (c) a web server
-
29.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>My best friend</p> - 30.💬 How does an HTML comment end? (a) >> (b) */ (c) // (d) -->
- 31.Which of these goes in the head? (a) <h1> (b) <title> (c) <table> (d) <ul>
-
32.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue<br>Kites fly high</p> - 33.True or false: <p> goes in the head. (a) False (b) True
- 34.Which of these is an opening tag? (a) </h1> (b) </p> (c) <h1> (d) </title>
-
35.🔗 Which address opens when you click this link?
<a href="maths.html">About us</a> (a) art.html (b) news.html (c) About us (d) maths.html -
36.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>My best friend</p>
<p>Fun facts</p>
<!-- <p>My pets</p> --> - 37.Which of these is a closing tag? (a) <title> (b) <li> (c) </title> (d) <body>
- 38.True or false: <br> is an empty tag. (a) False (b) True
-
39.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<!-- <p>Good morning!</p> -->
<p>My best friend</p> (a) My best friend (b) Good morning! (c) Hello, world! - 40.🔍 Which is the odd one out? (a) shows pages from the web (b) has an address bar (c) opens web pages for us (d) colours code to help us
Answer key
- Maths fun
- shows line numbers
- <h6>
- to leave notes
- <img>
- about.html
- has an address bar
- True
- Our school bus
- in the same tab
- 5
- Easy snacks
- <h1>
- 2
- line 2
- <ol>
- <a>
- <h6>
- an opening tag
- Cricket is fun.
- in the same tab
- <h1>
- Yes
- False
- text with links
- True
- 4
- a web browser
- 1
- -->
- <title>
- 3
- False
- <h1>
- maths.html
- 2
- </title>
- True
- Good morning!
- colours code to help us
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids