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.True or false: <ol> is an unordered list. (a) False (b) True
- 2.Which of these is an opening tag? (a) </body> (b) </title> (c) <title> (d) </p>
-
3.🔍 One closing tag is missing. Which one?
<h1>My best friend</h1>
<strong>Fun facts</strong>
<h3>I love mangoes. (a) </h2> (b) </h1> (c) </strong> (d) </h3> -
4.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Mango</li>
<li>Jamun</li>
<li>Grapes</li>
</ol> - 5.🌐 Which one has an address bar? (a) a web server (b) a web browser (c) a code editor
- 6.Which of these is true of a web browser? (a) sends pages over the net (b) opens web pages for us (c) is where we type code (d) hosts websites online
-
7.🔗 Which words do you click on?
<a href="about.html">About us</a> (a) about.html (b) Contact us (c) About us (d) href - 8.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 9.True or false: <hr> has a closing tag. (a) False (b) True
- 10.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h3> or <h1>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
-
11.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) art.html (b) Take the quiz (c) href (d) School news - 12.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
- 13.🏷️ Which is the closing tag for <b>? (a) </b> (b) <\b> (c) <b> (d) <b/>
- 14.Which of these has a closing tag? (a) <meta> (b) <h1> (c) <hr> (d) <input>
-
15.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="400"> (a) width (b) A happy dog (c) Birthday cake (d) cake.jpg -
16.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>Good morning!</p>
<p>My pets</p>
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> --> - 17.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
-
18.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h3>Rain today</h3>
<p>Cricket is fun.</p> -
19.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>I love mangoes.</p>
<p>I love mangoes.</p>
<h4>I love mangoes.</h4>
<p>Rain today</p> -
20.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<p>My pets</p>
<!-- <p>Hello, world!</p> -->
<p>The red kite</p>
<p>I love mangoes.</p> - 21.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
- 22.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) </h1> (c) <h1> (d) <h1/>
- 23.True or false: <li> is an empty tag. (a) True (b) False
- 24.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
- 25.🏷️ Which is the closing tag for <p>? (a) </p> (b) <p/> (c) <\p> (d) <p>
- 26.💬 Why do coders write comments? (a) to leave notes (b) to show pictures (c) to make links (d) to add colour
- 27.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <a> (d) <p>
- 28.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the head (d) the body
-
29.🔗 Where does this link open?
<a href="news.html">About us</a> (a) in a new tab (b) in the same tab - 30.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 31.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h1>? (a) <h4> (b) <h2> (c) <h1> (d) <h5>
- 32.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>
-
33.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Roses are red</p> -
34.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Birds sing</p> - 35.True or false: a web browser stores a website’s files. (a) False (b) True
- 36.🌐 Which one colours code to help us? (a) a web server (b) a code editor (c) a web browser
-
37.🔍 One closing tag is missing. Which one?
<h2>Fun facts
<strong>Rain today</strong>
<small>Our school trip</small> (a) </h2> (b) </small> (c) </em> (d) </strong> -
38.🔗 Where does this link open?
<a href="maths.html">Play games</a> (a) in the same tab (b) in a new tab - 39.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
- 40.🔍 Which is the odd one out? (a) shows line numbers (b) turns HTML into a page (c) shows pages from the web (d) has an address bar
Answer key
- False
- <title>
- </h3>
- 4
- a web browser
- opens web pages for us
- About us
- Yes
- False
- <h6>
- School news
- <a>
- </b>
- <h1>
- Birthday cake
- 3
- <ul>
- 2
- 2
- 4
- Yes
- </h1>
- False
- in the body
- </p>
- to leave notes
- <img>
- the body
- in the same tab
- Yes
- <h5>
- <h2>
- 2
- 2
- False
- a code editor
- </h2>
- in the same tab
- 1
- shows line numbers
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids