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.📄 Can HTML on its own keep a high score? (a) No (b) Yes
-
2.🔗 Where does this link open?
<a href="art.html" target="_blank">Play games</a> (a) in the same tab (b) in a new tab - 3.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 4.True or false: <p> goes in the body. (a) False (b) True
-
5.🔍 Which line is missing its closing tag?
line 1: <h1>Good morning!
line 2: <em>I love mangoes.</em>
line 3: <strong>Fun facts</strong> (a) line 2 (b) line 1 (c) line 3 - 6.Which of these is a closing tag? (a) <b> (b) </h1> (c) <p> (d) <h1>
- 7.True or false: a web browser opens web pages for us. (a) True (b) False
-
8.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<p>Fun facts</p>
<h2>Fun facts</h2> -
9.🔠 How many headings are in this code?
<h1>Rain today</h1>
<p>The red kite</p>
<p>My pets</p> -
10.🔗 Where does this link open?
<a href="about.html">Play games</a> (a) in a new tab (b) in the same tab - 11.🖼️ Which attribute of <img> describes the picture? (a) src (b) height (c) alt (d) width
- 12.Which of these is true of a code editor? (a) turns HTML into a page (b) shows pages from the web (c) colours code to help us (d) hosts websites online
-
13.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Birds sing<br>Roses are red<br>Stars shine</p> - 14.True or false: a code editor colours code to help us. (a) False (b) True
- 15.True or false: <ul> lists things in any order. (a) False (b) True
-
16.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>The red kite</p> -->
<p>Good morning!</p> (a) The red kite (b) My pets (c) Good morning! -
17.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>Our school trip</p>
<p>The red kite</p> (a) Rain today (b) The red kite (c) Our school trip -
18.🔠 How many headings are in this code?
<h1>Rain today</h1>
<p>My pets</p>
<p>Good morning!</p>
<p>Cricket is fun.</p>
<h3>Rain today</h3> - 19.True or false: HTML on its own cannot make bullet lists. (a) True (b) False
- 20.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h1> (d) <h3>
- 21.True or false: HTML on its own cannot run a game loop. (a) False (b) True
-
22.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="150"> (a) fort.jpg (b) An old fort (c) tiger.jpg (d) kite.png -
23.📋 What number does the browser show next to “Mango”?
<ol>
<li>Jamun</li>
<li>Guava</li>
<li>Mango</li>
<li>Orange</li>
</ol> -
24.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Banana</li>
</ol> (a) bullets (b) numbers -
25.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) href (b) Contact us (c) games.html (d) About us - 26.True or false: <p> is an empty tag. (a) True (b) False
- 27.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 28.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 29.💬 Does the browser show comments on the page? (a) Yes (b) No
- 30.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) hides the link (c) makes it blank (d) makes it bold
-
31.🔗 Which address opens when you click this link?
<a href="contact.html">Art corner</a> (a) Art corner (b) contact.html (c) https://example.com (d) maths.html -
32.🔍 One closing tag is missing. Which one?
<h3>The red kite
<u>I love mangoes.</u>
<em>Rain today</em> (a) </em> (b) </h3> (c) </i> (d) </u> - 33.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a web browser (d) a calculator
- 34.📄 Can HTML on its own pick a random number? (a) No (b) Yes
- 35.True or false: HTML on its own cannot make a form. (a) True (b) False
- 36.Which of these has a closing tag? (a) <hr> (b) <li> (c) <meta> (d) <input>
-
37.💬 Which text will NOT show on the page?
<p>My best friend</p>
<!-- <p>Rain today</p> -->
<p>I love mangoes.</p> (a) Rain today (b) I love mangoes. (c) My best friend -
38.📋 What number does the browser show next to “Mango”?
<ol start="6">
<li>Guava</li>
<li>Orange</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Mango</li>
<li>Jamun</li>
</ol> - 39.🌐 Which one shows line numbers? (a) a web browser (b) a web server (c) a code editor
-
40.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Our school trip</p> -->
<p>Good morning!</p>
<!-- <p>Fun facts</p> -->
Answer key
- No
- in a new tab
- Yes
- True
- line 1
- </h1>
- True
- 2
- 1
- in the same tab
- alt
- colours code to help us
- 4
- True
- True
- The red kite
- Rain today
- 2
- False
- <h6>
- True
- fort.jpg
- 3
- numbers
- About us
- False
- an opening tag
- Yes
- No
- opens it in a new tab
- contact.html
- </h3>
- a web browser
- No
- False
- <li>
- Rain today
- 10
- a code editor
- 2
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids