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 of these is an opening tag? (a) <title> (b) </body> (c) </b> (d) </li>
- 2.True or false: <li> goes inside ul or ol. (a) False (b) True
- 3.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) answers page requests (d) turns HTML into a page
-
4.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h3>I love mangoes.</h3>
<h4>Hello, world!</h4>
<h4>Good morning!</h4> - 5.📝 What does <hr> draw? (a) a link (b) a table (c) a picture (d) a line across the page
-
6.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>Hello, world!</p>
<p>My best friend</p>
<!-- <p>Our school trip</p> --> (a) Fun facts (b) Our school trip (c) My best friend (d) Hello, world! - 7.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
-
8.🔗 Which address opens when you click this link?
<a href="https://example.com">School news</a> (a) maths.html (b) https://example.com (c) art.html (d) School news - 9.Which of these is an empty tag? (a) <title> (b) <b> (c) <meta> (d) <h1>
- 10.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
-
11.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>Fun facts</p>
<!-- <p>I love mangoes.</p> -->
<p>Cricket is fun.</p>
<!-- <p>Rain today</p> --> -
12.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>Our school trip</h2>
<h2>My best friend</h2> -
13.💬 How many paragraphs show on the page?
<p>My pets</p>
<!-- <p>Hello, world!</p> -->
<p>Cricket is fun.</p>
<p>Good morning!</p> - 14.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
- 15.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
-
16.💬 Which text will NOT show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p>
<p>I love mangoes.</p> (a) I love mangoes. (b) Our school trip (c) Cricket is fun. -
17.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p> -
18.🔍 Which line is missing its closing tag?
line 1: <b>Cricket is fun.
line 2: <h1>I love mangoes.</h1>
line 3: <i>My best friend</i> (a) line 3 (b) line 2 (c) line 1 - 19.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 4 (d) 3
-
20.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Banana</li>
</ul> - 21.Which of these is true of a web server? (a) turns HTML into a page (b) shows line numbers (c) colours code to help us (d) hosts websites online
- 22.Which of these goes in the body? (a) <p> (b) <style> (c) <link rel="stylesheet"> (d) <meta charset="utf-8">
- 23.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <hr> (d) <ol>
-
24.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Planets</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) index.html (b) We won by 5 runs. (c) My Hobbies (d) Planets - 25.🔗 What does HyperText mean? (a) text with links (b) text in colour (c) secret text (d) very big text
-
26.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>My pets</p>
<h2>Fun facts</h2>
<p>I love mangoes.</p>
<h2>Hello, world!</h2> -
27.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>Our school trip</h2>
<p>Our school trip</p>
<h2>My pets</h2>
<p>The red kite</p> -
28.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red</p> - 29.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) shows pages from the web (d) stores a website’s files
-
30.🔗 Which words do you click on?
<a href="quiz.html">Take the quiz</a> (a) Play games (b) quiz.html (c) Take the quiz (d) href - 31.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
-
32.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Stars shine<br>Birds sing</p> - 33.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h3> or <h6>? (a) <h2> (b) <h6> (c) <h3> (d) <h5>
-
34.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Fun facts</p>
<p>Our school trip</p>
<h2>Our school trip</h2> - 35.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 36.True or false: a web server shows pages from the web. (a) True (b) False
-
37.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) Play games (b) contact.html (c) href (d) About us -
38.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Fun facts</p>
<p>My pets</p> - 39.True or false: <ul> lists steps in order. (a) True (b) False
- 40.🏷️ Which is the closing tag for <em>? (a) <em> (b) </em> (c) <em/> (d) <\em>
Answer key
- <title>
- True
- turns HTML into a page
- 4
- a line across the page
- Our school trip
- a web browser
- https://example.com
- <meta>
- a web browser
- 2
- 1
- 3
- <a>
- in the body
- Cricket is fun.
- 2
- line 1
- 6
- 2
- hosts websites online
- <p>
- <ol>
- My Hobbies
- text with links
- 3
- 3
- 2
- stores a website’s files
- Take the quiz
- <ul>
- 3
- <h6>
- 2
- Yes
- False
- Play games
- 2
- False
- </em>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids