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 heading shows the SMALLEST text: <h6>, <h5>, <h4> or <h1>? (a) <h5> (b) <h4> (c) <h1> (d) <h6>
- 2.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
- 3.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
- 4.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h6> or <h3>? (a) <h3> (b) <h4> (c) <h2> (d) <h6>
-
5.🔗 Which address opens when you click this link?
<a href="about.html">Take the quiz</a> (a) about.html (b) https://example.com (c) Take the quiz (d) contact.html - 6.Which of these is true of a code editor? (a) saves our .html files (b) stores a website’s files (c) shows pages from the web (d) answers page requests
- 7.True or false: a web browser colours code to help us. (a) True (b) False
-
8.🔗 Which words do you click on?
<a href="https://example.com">Take the quiz</a> (a) Play games (b) https://example.com (c) Take the quiz (d) href -
9.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Good morning!</p> --> - 10.💬 How does an HTML comment start? (a) /* (b) <!-- (c) // (d) #
- 11.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h4> or <h3>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
- 12.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 13.📋 Which tag goes around each item of a list? (a) <p> (b) <li> (c) <ol> (d) <ul>
- 14.🔗 Which attribute holds the address of a link? (a) href (b) src (c) alt (d) id
- 15.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h5> or <h3>? (a) <h5> (b) <h3> (c) <h6> (d) <h2>
- 16.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
- 17.🖼️ Which attribute of <img> tells which image to load? (a) width (b) src (c) height (d) alt
-
18.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>The red kite</p>
<p>Cricket is fun.</p> (a) The red kite (b) Rain today (c) Cricket is fun. - 19.🏷️ Which is the closing tag for <u>? (a) <u/> (b) <\u> (c) </u> (d) <u>
- 20.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="400"> (a) kite.png (b) A red kite (c) Map of India (d) width -
22.🔍 One closing tag is missing. Which one?
<p>Our school trip
<b>My pets</b>
<u>Good morning!</u> (a) </b> (b) </u> (c) </small> (d) </p> - 23.Which of these is true of a web server? (a) answers page requests (b) has an address bar (c) is where we type code (d) turns HTML into a page
- 24.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h4> (d) <h3>
-
25.🔗 Where does this link open?
<a href="news.html">About us</a> (a) in the same tab (b) in a new tab - 26.True or false: <ol> shows bullet points. (a) False (b) True
-
27.📋 What number does the browser show next to “Guava”?
<ol>
<li>Grapes</li>
<li>Orange</li>
<li>Guava</li>
<li>Jamun</li>
<li>Papaya</li>
</ol> -
28.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="300"> (a) Map of India (b) width (c) Birthday cake (d) map.png - 29.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Link (c) Language (d) Line
-
30.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Papaya</li>
</ul> -
31.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="200"> (a) A happy dog (b) cake.jpg (c) Birthday cake (d) width - 32.💬 Does the browser show comments on the page? (a) No (b) Yes
-
33.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Our school trip</p>
<p>Fun facts</p> - 34.True or false: a code editor hosts websites online. (a) True (b) False
- 35.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 36.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
- 37.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 38.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h2>? (a) <h4> (b) <h3> (c) <h2> (d) <h1>
- 39.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) a closing tag (d) an attribute
- 40.True or false: in <img>, alt describes the picture. (a) False (b) True
Answer key
- <h6>
- the body
- <h1>
- <h6>
- about.html
- saves our .html files
- False
- Take the quiz
- 1
- <!--
- <h6>
- Yes
- <li>
- href
- <h2>
- False
- src
- Rain today
- </u>
- an opening tag
- A red kite
- </p>
- answers page requests
- <h3>
- in the same tab
- False
- 3
- Map of India
- Language
- 2
- Birthday cake
- No
- 3
- False
- an empty tag
- <a href="about.html">
- has a closing tag
- <h1>
- an attribute
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids