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.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<!-- <p>Fun facts</p> -->
<p>Rain today</p> - 2.Which of these is an opening tag? (a) </title> (b) </b> (c) <body> (d) </body>
- 3.Which of these is an empty tag? (a) <li> (b) <p> (c) <h1> (d) <hr>
- 4.True or false: <ul> shows bullet points. (a) True (b) False
-
5.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>Fun facts</p>
<p>I love mangoes.</p>
<p>The red kite</p>
<p>My pets</p> - 6.🏷️ Which is the closing tag for <small>? (a) <small> (b) <\small> (c) </small> (d) <small/>
-
7.📋 What number does the browser show next to “Grapes”?
<ol start="8">
<li>Mango</li>
<li>Banana</li>
<li>Papaya</li>
<li>Grapes</li>
</ol> - 8.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 9.True or false: <ol> is an ordered list. (a) True (b) False
-
10.🔗 Where does this link open?
<a href="quiz.html">About us</a> (a) in the same tab (b) in a new tab - 11.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h2>? (a) <h3> (b) <h1> (c) <h6> (d) <h2>
- 12.🌍 Which program shows a web page to us? (a) a web browser (b) a calculator (c) a music player (d) a paint program
- 13.📝 Does <h1> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
14.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>My pets</p>
<p>Rain today</p> (a) My pets (b) Rain today (c) Our school trip - 15.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
- 16.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ul> (d) <ol>
- 17.📝 What do we need to write HTML? (a) a plain text editor (b) a printer (c) a paintbrush (d) a microphone
- 18.💾 A web page file usually ends with which extension? (a) .html (b) .mp3 (c) .png (d) .txt
-
19.🔗 Where does this link open?
<a href="about.html">Take the quiz</a> (a) in the same tab (b) in a new tab - 20.True or false: <p> goes in the head. (a) True (b) False
- 21.Which of these is an empty tag? (a) <ul> (b) <br> (c) <h1> (d) <p>
-
22.🔗 Which address opens when you click this link?
<a href="about.html">Maths fun</a> (a) Maths fun (b) https://example.com (c) contact.html (d) about.html - 23.True or false: <li> has a closing tag. (a) False (b) True
- 24.📄 Can HTML on its own run a game loop? (a) No (b) Yes
- 25.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h1> or <h6>? (a) <h4> (b) <h1> (c) <h2> (d) <h6>
- 26.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
27.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>My drawings</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) We won by 5 runs. (b) My drawings (c) index.html (d) Art Gallery - 28.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as a dot (c) as one space (d) as a new line
-
29.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Roses are red<br>Kites fly high<br>Rivers flow</p> - 30.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
- 31.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
- 32.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
- 33.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 6 (d) 10
- 34.Which of these is an empty tag? (a) <img> (b) <b> (c) <title> (d) <h1>
- 35.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) on the browser tab (d) nowhere
- 36.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h4>? (a) <h2> (b) <h6> (c) <h3> (d) <h4>
- 37.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <br> (c) <p> (d) <h1>
-
38.🔍 One closing tag is missing. Which one?
<strong>My pets
<u>I love mangoes.</u>
<b>Our school trip</b> (a) </u> (b) </strong> (c) </h1> (d) </b> - 39.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 40.True or false: <br> has a closing tag. (a) True (b) False
Answer key
- 2
- <body>
- <hr>
- True
- 4
- </small>
- 11
- Yes
- True
- in the same tab
- <h6>
- a web browser
- has a closing tag
- Our school trip
- a code editor
- <ol>
- a plain text editor
- .html
- in the same tab
- False
- <br>
- about.html
- True
- No
- <h1>
- has a closing tag
- Art Gallery
- as one space
- 4
- <ul>
- <ul>
- <h6>
- 1
- <img>
- on the browser tab
- <h2>
- <h1>
- </strong>
- Yes
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids