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 true of a code editor? (a) opens web pages for us (b) sends pages over the net (c) turns HTML into a page (d) is where we type code
- 2.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 3.📝 What does <br> do? (a) makes a list (b) starts a new line (c) adds a picture (d) makes text bold
- 4.Which of these is true of a web server? (a) has an address bar (b) saves our .html files (c) stores a website’s files (d) is where we type code
- 5.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 6.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h2> or <h3>? (a) <h2> (b) <h1> (c) <h5> (d) <h3>
-
7.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>Fun facts</p>
<p>Fun facts</p>
<p>Fun facts</p>
<h2>My pets</h2>
<h2>My pets</h2> - 8.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
-
9.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Jamun</li>
</ul> - 10.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h1> (d) <h4>
-
11.🔗 Which address opens when you click this link?
<a href="games.html">Contact us</a> (a) contact.html (b) games.html (c) Contact us (d) about.html -
12.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>Rain today</p>
<p>Fun facts</p>
<p>I love mangoes.</p> - 13.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
-
14.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing</p> - 15.Which of these is an opening tag? (a) </li> (b) </p> (c) <p> (d) </h1>
- 16.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 17.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
- 18.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h5> (d) <h6>
- 19.True or false: in <img>, width tells which image to load. (a) False (b) True
-
20.🔍 Which line is missing its closing tag?
line 1: <h1>I love mangoes.
line 2: <i>Fun facts</i>
line 3: <em>Rain today</em> (a) line 1 (b) line 2 (c) line 3 - 21.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
-
22.🔍 One closing tag is missing. Which one?
<h1>Fun facts</h1>
<u>I love mangoes.</u>
<h3>My best friend (a) </h1> (b) </h3> (c) </u> (d) </h2> - 23.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 24.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h4> or <h6>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
-
25.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Banana</li>
</ul> (a) bullets (b) numbers - 26.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
-
27.🔗 Where does this link open?
<a href="maths.html">Take the quiz</a> (a) in the same tab (b) in a new tab -
28.🔗 Where does this link open?
<a href="https://example.com">School news</a> (a) in the same tab (b) in a new tab -
29.🔍 Which line is missing its closing tag?
line 1: <strong>Good morning!</strong>
line 2: <h1>I love mangoes.
line 3: <h3>Fun facts</h3> (a) line 1 (b) line 3 (c) line 2 -
30.🔗 Where does this link open?
<a href="about.html">Take the quiz</a> (a) in a new tab (b) in the same tab -
31.🔍 Which line is missing its closing tag?
line 1: <i>The red kite
line 2: <h2>Rain today</h2>
line 3: <b>I love mangoes.</b> (a) line 3 (b) line 1 (c) line 2 - 32.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h6> or <h5>? (a) <h6> (b) <h3> (c) <h5> (d) <h4>
-
33.📋 Does this list show bullets or numbers?
<ul>
<li>Banana</li>
<li>Orange</li>
<li>Mango</li>
</ul> (a) bullets (b) numbers -
34.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<!-- <p>Rain today</p> -->
<p>Hello, world!</p>
<!-- <p>My pets</p> --> -
35.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="350"> - 36.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
-
37.🔗 Which words do you click on?
<a href="contact.html">Take the quiz</a> (a) contact.html (b) Take the quiz (c) Play games (d) href - 38.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
- 39.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
-
40.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Rivers flow<br>Roses are red<br>Birds sing<br>Stars shine</p>
Answer key
- is where we type code
- has a closing tag
- starts a new line
- stores a website’s files
- Yes
- <h5>
- 4
- <h1>
- 2
- <h1>
- games.html
- 3
- <a>
- 2
- <p>
- a closing tag
- a code editor
- <h2>
- False
- line 1
- <ul>
- </h3>
- Yes
- <h1>
- bullets
- <ul>
- in the same tab
- in the same tab
- line 2
- in the same tab
- line 1
- <h6>
- bullets
- 1
- 350
- False
- Take the quiz
- to describe the image
- HyperText
- 5
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids