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>The red kite</h1>
<p>Good morning!</p>
<p>I love mangoes.</p> -
2.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="150"> (a) Our school bus (b) width (c) bus.jpg (d) An old fort - 3.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
4.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="50"> (a) Our school bus (b) width (c) The full moon (d) moon.png - 5.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h5>
- 6.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 6 (d) 3
-
7.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h4>Cricket is fun.</h4>
<p>Cricket is fun.</p> - 8.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h4> or <h2>? (a) <h2> (b) <h4> (c) <h5> (d) <h6>
- 9.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h2>? (a) <h6> (b) <h5> (c) <h1> (d) <h2>
-
10.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Guava</li>
</ul> (a) numbers (b) bullets -
11.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Play games</a> (a) in the same tab (b) in a new tab - 12.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h4>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
-
13.🔗 Which address opens when you click this link?
<a href="maths.html">School news</a> (a) news.html (b) School news (c) maths.html (d) art.html - 14.True or false: <ul> shows bullet points. (a) False (b) True
- 15.True or false: a web browser shows pages from the web. (a) False (b) True
- 16.🌐 Which one is where we type code? (a) a web browser (b) a web server (c) a code editor
-
17.🔗 Where does this link open?
<a href="contact.html">School news</a> (a) in a new tab (b) in the same tab -
18.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>My best friend</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>The red kite</p> - 19.Which of these is an opening tag? (a) </title> (b) </h1> (c) </body> (d) <body>
- 20.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h2> or <h4>? (a) <h2> (b) <h1> (c) <h5> (d) <h4>
- 21.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
-
22.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>My best friend</p> -->
<p>Cricket is fun.</p> -
23.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>My pets</p>
<p>I love mangoes.</p> (a) I love mangoes. (b) My pets (c) My best friend - 24.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Line (d) Link
-
25.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Kites fly high</p> - 26.📄 Can HTML on its own make a form? (a) Yes (b) No
- 27.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 28.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 29.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <br> (d) <hr>
-
30.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="100"> (a) Our school bus (b) fort.jpg (c) tiger.jpg (d) bus.jpg - 31.Which of these is an opening tag? (a) </title> (b) </p> (c) </li> (d) <h1>
- 32.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
-
33.💬 Which text will NOT show on the page?
<p>My pets</p>
<p>I love mangoes.</p>
<!-- <p>Rain today</p> --> (a) My pets (b) Rain today (c) I love mangoes. - 34.🏷️ Which is the closing tag for <strong>? (a) <strong> (b) </strong> (c) <\strong> (d) <strong/>
- 35.🌐 Which one has an address bar? (a) a web browser (b) a web server (c) a code editor
- 36.True or false: in <img>, src tells which image to load. (a) True (b) False
- 37.🖼️ Which attribute of <img> tells which image to load? (a) src (b) width (c) height (d) alt
- 38.True or false: <title> goes in the body. (a) True (b) False
-
39.📋 What number does the browser show next to “Litchi”?
<ol start="4">
<li>Jamun</li>
<li>Papaya</li>
<li>Guava</li>
<li>Mango</li>
<li>Litchi</li>
<li>Grapes</li>
</ol> - 40.🖼️ Which tag puts a picture on a page? (a) <p> (b) <img> (c) <pic> (d) <a>
Answer key
- 1
- Our school bus
- a closing tag
- The full moon
- <h6>
- 1
- 2
- <h2>
- <h6>
- bullets
- in a new tab
- <h5>
- maths.html
- True
- True
- a code editor
- in the same tab
- 1
- <body>
- <h1>
- <
- 2
- My best friend
- Language
- 2
- Yes
- an empty tag
- Yes
- <ol>
- bus.jpg
- <h1>
- in the head
- Rain today
- </strong>
- a web browser
- True
- src
- False
- 8
- <img>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids