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 paragraphs does this code make?
<p>Hello, world!</p>
<h2>I love mangoes.</h2>
<p>Rain today</p> - 2.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
- 3.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
4.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers - 5.Which of these is true of a web browser? (a) sends pages over the net (b) shows pages from the web (c) hosts websites online (d) stores a website’s files
- 6.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
- 7.True or false: in <img>, height sets how tall it is. (a) False (b) True
-
8.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Mango</li>
<li>Orange</li>
<li>Jamun</li>
</ol> -
9.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="250"> (a) tiger.jpg (b) kite.png (c) map.png (d) A tiger asleep - 10.📛 In <a href="x.html">, what is href? (a) a comment (b) an attribute (c) an element name (d) a closing tag
- 11.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 12.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p/> (c) </p> (d) <p>
- 13.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 14.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 15.True or false: <input> has a closing tag. (a) True (b) False
-
16.🔗 Where does this link open?
<a href="maths.html" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab - 17.🌐 Which one is where we type code? (a) a web browser (b) a code editor (c) a web server
-
18.🔗 Where does this link open?
<a href="about.html" target="_blank">About us</a> (a) in a new tab (b) in the same tab - 19.True or false: <ul> shows bullet points. (a) False (b) True
-
20.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Planets</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Space Facts (b) We won by 5 runs. (c) Planets (d) body -
21.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Stars shine</p> -
22.🔗 Which address opens when you click this link?
<a href="art.html">About us</a> (a) quiz.html (b) news.html (c) art.html (d) About us - 23.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h6>? (a) <h4> (b) <h6> (c) <h2> (d) <h5>
- 24.🔗 Which attribute holds the address of a link? (a) href (b) alt (c) src (d) id
-
25.🔗 Which words do you click on?
<a href="art.html">Play games</a> (a) art.html (b) Play games (c) About us (d) href -
26.🔗 Which address opens when you click this link?
<a href="games.html">About us</a> (a) about.html (b) games.html (c) About us (d) contact.html - 27.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
- 28.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
- 29.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <a> (d) <p>
- 30.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
- 31.True or false: in <img>, alt shows if the image fails. (a) True (b) False
-
32.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Birds sing<br>Sky is blue<br>Stars shine<br>Rivers flow</p> - 33.Which of these has a closing tag? (a) <b> (b) <input> (c) <br> (d) <hr>
- 34.📄 Can HTML on its own keep a high score? (a) Yes (b) No
-
35.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<h2>Cricket is fun.</h2>
<p>I love mangoes.</p> -
36.🔍 One closing tag is missing. Which one?
<h3>The red kite</h3>
<p>My pets</p>
<strong>Rain today (a) </h3> (b) </h2> (c) </strong> (d) </p> - 37.🧱 HTML gives a web page its ___. (a) speed (b) colours (c) sound (d) structure
- 38.🔠 Which tag is the least important heading? (a) <h3> (b) <h6> (c) <h1> (d) <p>
-
39.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>My pets</p>
<p>Fun facts</p>
<p>The red kite</p> - 40.📄 Where does the text of <title> appear? (a) nowhere (b) on the browser tab (c) at the bottom (d) in a big heading
Answer key
- 2
- <ol>
- Yes
- bullets
- shows pages from the web
- <ol>
- True
- 3
- tiger.jpg
- an attribute
- a closing tag
- </p>
- No
- Yes
- False
- in a new tab
- a code editor
- in a new tab
- True
- Planets
- 2
- art.html
- <h2>
- href
- Play games
- games.html
- <ul>
- Yes
- <img>
- a web browser
- True
- 5
- <b>
- No
- 2
- </strong>
- structure
- <h6>
- 4
- on the browser tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids