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 headings are in this code?
<h1>I love mangoes.</h1>
<h2>I love mangoes.</h2>
<h2>The red kite</h2> -
2.🔗 Which words do you click on?
<a href="art.html">Contact us</a> (a) art.html (b) Contact us (c) href (d) Visit the site - 3.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 4.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <br> (d) <h6>
- 5.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
-
6.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h2>I love mangoes.</h2>
<p>Our school trip</p> -
7.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="400"> (a) tiger.jpg (b) bus.jpg (c) Our school bus (d) fort.jpg - 8.True or false: in <img>, width names the picture file. (a) False (b) True
- 9.True or false: HTML on its own cannot keep a high score. (a) False (b) True
- 10.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h6> (b) <h1> (c) <h2> (d) <h3>
- 11.🌐 Which one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
-
12.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>Good morning!</p>
<!-- <p>My pets</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>Hello, world!</p> -
13.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<!-- <p>Good morning!</p> -->
<p>Cricket is fun.</p> (a) Good morning! (b) Fun facts (c) Cricket is fun. - 14.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h3>? (a) <h4> (b) <h6> (c) <h3> (d) <h2>
- 15.Which of these is true of a code editor? (a) answers page requests (b) shows pages from the web (c) stores a website’s files (d) saves our .html files
- 16.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 17.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) < (d) (
-
18.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Kites fly high<br>Birds sing<br>Sky is blue</p> -
19.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Jamun</li>
<li>Litchi</li>
<li>Banana</li>
<li>Orange</li>
<li>Mango</li>
</ol> - 20.True or false: <ul> is an empty tag. (a) False (b) True
- 21.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <link about.html>
- 22.True or false: in <img>, alt shows if the image fails. (a) False (b) True
- 23.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
24.💬 How many paragraphs show on the page?
<p>My best friend</p>
<p>The red kite</p>
<!-- <p>Rain today</p> -->
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Hello, world!</p> --> -
25.🔍 One closing tag is missing. Which one?
<strong>My best friend</strong>
<h3>Good morning!</h3>
<small>Our school trip (a) </strong> (b) </i> (c) </small> (d) </h3> - 26.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 27.True or false: a web browser colours code to help us. (a) True (b) False
- 28.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 29.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
-
30.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>Our school trip</p>
<p>Good morning!</p>
<p>Fun facts</p> (a) Fun facts (b) Our school trip (c) Good morning! (d) Rain today -
31.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h3>Good morning!</h3>
<p>I love mangoes.</p> - 32.Which of these is an empty tag? (a) <meta> (b) <p> (c) <b> (d) <title>
-
33.🔗 Where does this link open?
<a href="quiz.html">About us</a> (a) in a new tab (b) in the same tab -
34.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> --> - 35.🔍 Which is the odd one out? (a) sends pages over the net (b) shows pages from the web (c) stores a website’s files (d) hosts websites online
-
36.🔗 Where does this link open?
<a href="maths.html" target="_blank">Play games</a> (a) in a new tab (b) in the same tab - 37.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
-
38.🔠 How many headings are in this code?
<h1>Rain today</h1>
<p>I love mangoes.</p>
<h2>I love mangoes.</h2>
<h3>My best friend</h3> - 39.📄 Where does the text of <title> appear? (a) in a big heading (b) nowhere (c) on the browser tab (d) at the bottom
-
40.🔗 Which words do you click on?
<a href="art.html">Take the quiz</a> (a) href (b) Take the quiz (c) art.html (d) Play games
Answer key
- 3
- Contact us
- a closing tag
- <h1>
- </b>
- 2
- bus.jpg
- False
- True
- <h1>
- a web browser
- 2
- Good morning!
- <h2>
- saves our .html files
- has a closing tag
- <
- 4
- 6
- False
- <a href="about.html">
- True
- a closing tag
- 2
- </small>
- Yes
- False
- a closing tag
- in the body
- Rain today
- 2
- <meta>
- in the same tab
- 1
- shows pages from the web
- in a new tab
- Yes
- 3
- on the browser tab
- Take the quiz
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids