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>I love mangoes.</p> -->
<p>Our school trip</p>
<p>Good morning!</p>
<!-- <p>My best friend</p> --> -
2.🔗 Which address opens when you click this link?
<a href="news.html">About us</a> (a) About us (b) games.html (c) quiz.html (d) news.html -
3.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="150"> - 4.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 5.💬 Does the browser show comments on the page? (a) No (b) Yes
- 6.📝 What does <p> make? (a) a picture (b) a paragraph (c) a link (d) a table
- 7.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h2> (b) <h3> (c) <h6> (d) <h1>
-
8.📋 How many items does this list show?
<ul>
<li>Litchi</li>
<li>Orange</li>
<li>Mango</li>
<li>Banana</li>
<li>Papaya</li>
<li>Jamun</li>
</ul> -
9.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Grapes</li>
<li>Mango</li>
<li>Guava</li>
</ol> -
10.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Good morning!</p>
<p>Cricket is fun.</p> -
11.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Take the quiz (b) games.html (c) Play games (d) href -
12.🔍 One closing tag is missing. Which one?
<strong>Cricket is fun.
<em>Good morning!</em>
<small>Fun facts</small> (a) </small> (b) </em> (c) </h1> (d) </strong> - 13.Which of these has a closing tag? (a) <br> (b) <hr> (c) <b> (d) <meta>
- 14.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h1> or <h3>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
-
15.🔍 One closing tag is missing. Which one?
<u>I love mangoes.
<small>The red kite</small>
<h2>My best friend</h2> (a) </small> (b) </u> (c) </h2> (d) </h1> -
16.🔠 How many headings are in this code?
<h1>Rain today</h1>
<p>Fun facts</p>
<h2>My pets</h2>
<p>My best friend</p> -
17.🔗 Which address opens when you click this link?
<a href="about.html">Visit the site</a> (a) about.html (b) contact.html (c) Visit the site (d) https://example.com - 18.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
19.🔍 Which line is missing its closing tag?
line 1: <small>Our school trip</small>
line 2: <em>The red kite
line 3: <strong>Hello, world!</strong> (a) line 2 (b) line 3 (c) line 1 - 20.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <p> (d) <li>
- 21.Which of these is an opening tag? (a) </li> (b) <body> (c) </p> (d) </b>
- 22.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server
-
23.💬 How many paragraphs show on the page?
<p>Rain today</p>
<!-- <p>My pets</p> -->
<p>The red kite</p> -
24.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="400"> - 25.🔤 In “HTML”, what does the M stand for? (a) Markup (b) Machine (c) Mouse (d) Modern
- 26.Which of these is a closing tag? (a) <p> (b) <li> (c) <body> (d) </li>
- 27.💬 How does an HTML comment start? (a) # (b) <!-- (c) /* (d) //
- 28.Which of these is an opening tag? (a) </b> (b) <title> (c) </p> (d) </li>
- 29.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
- 30.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
- 31.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h2> or <h1>? (a) <h3> (b) <h4> (c) <h2> (d) <h1>
- 32.True or false: <ul> goes in the body. (a) False (b) True
- 33.🔢 In a basic web page file, which comes first: “<head>” or “<!DOCTYPE html>”? (a) <head> (b) <!DOCTYPE html>
- 34.💾 A web page file usually ends with which extension? (a) .txt (b) .mp3 (c) .html (d) .png
-
35.🔍 Which line is missing its closing tag?
line 1: <small>Fun facts
line 2: <h3>Rain today</h3>
line 3: <strong>Cricket is fun.</strong> (a) line 2 (b) line 3 (c) line 1 - 36.📋 Which list suits a shopping list in any order? (a) <br> (b) <ul> (c) <ol> (d) <hr>
- 37.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h4> or <h1>? (a) <h4> (b) <h6> (c) <h1> (d) <h5>
- 38.True or false: <b> is an empty tag. (a) True (b) False
- 39.🏷️ Every HTML tag starts with which sign? (a) ( (b) [ (c) < (d) {
- 40.🔗 What does target="_blank" do to a link? (a) makes it bold (b) makes it blank (c) opens it in a new tab (d) hides the link
Answer key
- 2
- news.html
- 150
- Yes
- No
- a paragraph
- <h6>
- 6
- 4
- 2
- Take the quiz
- </strong>
- <b>
- <h1>
- </u>
- 2
- about.html
- has a closing tag
- line 2
- <li>
- <body>
- a code editor
- 2
- 400
- Markup
- </li>
- <!--
- <title>
- in the body
- <ul>
- <h4>
- True
- <!DOCTYPE html>
- .html
- line 1
- <ul>
- <h1>
- False
- <
- opens it in a new tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids