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 items does this list show?
<ol>
<li>Grapes</li>
<li>Jamun</li>
<li>Litchi</li>
<li>Orange</li>
<li>Guava</li>
<li>Papaya</li>
</ol> - 2.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <a> (d) <img>
- 3.True or false: <li> is one item of a list. (a) True (b) False
- 4.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
- 5.Which of these is a closing tag? (a) <p> (b) <h1> (c) </h1> (d) <li>
-
6.🔗 Where does this link open?
<a href="contact.html">Maths fun</a> (a) in the same tab (b) in a new tab -
7.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Litchi</li>
<li>Mango</li>
</ol> - 8.True or false: <title> is an empty tag. (a) True (b) False
- 9.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
-
10.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="350"> - 11.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
-
12.🔠 How many headings are in this code?
<h1>Rain today</h1>
<h3>My pets</h3>
<p>Good morning!</p>
<h4>The red kite</h4>
<p>My best friend</p> -
13.🔗 Where does this link open?
<a href="news.html" target="_blank">Take the quiz</a> (a) in a new tab (b) in the same tab -
14.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Orange</li>
<li>Papaya</li>
<li>Mango</li>
</ul> - 15.💬 Does the browser show comments on the page? (a) Yes (b) No
- 16.📄 Where does the text of <title> appear? (a) in a big heading (b) at the bottom (c) on the browser tab (d) nowhere
- 17.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a href="about.html"> (d) <a src="about.html">
- 18.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
-
19.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Sky is blue</p> - 20.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 21.📄 Can HTML on its own add up two numbers? (a) Yes (b) No
-
22.🔗 Which words do you click on?
<a href="maths.html">School news</a> (a) maths.html (b) Take the quiz (c) href (d) School news - 23.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Markup (c) Mouse (d) Machine
- 24.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
- 25.🖼️ Which tag puts a picture on a page? (a) <a> (b) <pic> (c) <img> (d) <p>
- 26.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h4>? (a) <h4> (b) <h5> (c) <h2> (d) <h3>
-
27.🔗 Which words do you click on?
<a href="quiz.html">Take the quiz</a> (a) Take the quiz (b) href (c) quiz.html (d) Play games - 28.True or false: in <img>, src names the picture file. (a) True (b) False
-
29.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Orange</li>
</ol> (a) bullets (b) numbers -
30.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="150"> - 31.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
- 32.True or false: in <img>, height shows if the image fails. (a) True (b) False
- 33.🏷️ HTML marks up text using ___. (a) keys (b) pixels (c) tags (d) wires
- 34.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
- 35.Which of these is a closing tag? (a) <p> (b) <b> (c) </title> (d) <h1>
- 36.🖼️ Which attribute of <img> tells which image to load? (a) height (b) width (c) alt (d) src
- 37.📝 What do we need to write HTML? (a) a printer (b) a paintbrush (c) a microphone (d) a plain text editor
- 38.True or false: in <img>, alt shows if the image fails. (a) False (b) True
-
39.📋 How many items does this list show?
<ul>
<li>Grapes</li>
<li>Mango</li>
<li>Orange</li>
<li>Litchi</li>
</ul> - 40.🌍 Which program shows a web page to us? (a) a calculator (b) a web browser (c) a paint program (d) a music player
Answer key
- 6
- <a>
- True
- a code editor
- </h1>
- in the same tab
- 5
- False
- <ol>
- 350
- in the body
- 3
- in a new tab
- 4
- No
- on the browser tab
- <a href="about.html">
- in the head
- 2
- an opening tag
- No
- School news
- Markup
- the body
- <img>
- <h5>
- Take the quiz
- True
- numbers
- 150
- <h1>
- False
- tags
- <ul>
- </title>
- src
- a plain text editor
- True
- 4
- a web browser
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids