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.📝 What does <p> make? (a) a link (b) a table (c) a picture (d) a paragraph
-
2.🔍 One closing tag is missing. Which one?
<small>Our school trip
<p>Fun facts</p>
<h3>Hello, world!</h3> (a) </h3> (b) </small> (c) </i> (d) </p> - 3.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
-
4.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Mango</li>
<li>Jamun</li>
<li>Papaya</li>
</ol> - 5.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h2> or <h4>? (a) <h3> (b) <h5> (c) <h4> (d) <h2>
- 6.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h2> or <h1>? (a) <h6> (b) <h3> (c) <h2> (d) <h1>
-
7.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="300"> (a) moon.png (b) cake.jpg (c) dog.jpg (d) Birthday cake -
8.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Orange</li>
<li>Papaya</li>
</ol> (a) bullets (b) numbers - 9.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h4> or <h6>? (a) <h3> (b) <h1> (c) <h6> (d) <h4>
- 10.🏷️ Which is the closing tag for <em>? (a) </em> (b) <\em> (c) <em/> (d) <em>
- 11.True or false: <p> has a closing tag. (a) True (b) False
- 12.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a web browser (d) a calculator
- 13.🏷️ Every HTML tag starts with which sign? (a) { (b) [ (c) < (d) (
- 14.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h4> (d) <h1>
- 15.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h3>? (a) <h6> (b) <h4> (c) <h1> (d) <h3>
-
16.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Hello, world!</p>
<p>I love mangoes.</p>
<h2>My pets</h2>
<p>Our school trip</p> -
17.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Banana</li>
<li>Grapes</li>
<li>Papaya</li>
<li>Litchi</li>
<li>Mango</li>
<li>Jamun</li>
</ol> -
18.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<p>The red kite</p>
<!-- <p>My best friend</p> -->
<p>Our school trip</p> - 19.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <body> (d) <!DOCTYPE html>
-
20.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<!-- <p>Hello, world!</p> -->
<p>My best friend</p>
<p>Good morning!</p> (a) Our school trip (b) My best friend (c) Hello, world! (d) Good morning! - 21.📄 Which part holds everything you see on the page? (a) the body (b) the head (c) the title (d) the doctype
-
22.🔍 One closing tag is missing. Which one?
<h1>Our school trip</h1>
<i>Hello, world!</i>
<small>I love mangoes. (a) </h1> (b) </i> (c) </h2> (d) </small> -
23.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing<br>Roses are red</p> -
24.🔗 Where does this link open?
<a href="maths.html" target="_blank">Visit the site</a> (a) in a new tab (b) in the same tab -
25.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="150"> -
26.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<h2>Fun facts</h2>
<p>Cricket is fun.</p> -
27.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Orange</li>
</ol> (a) bullets (b) numbers - 28.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) opens web pages for us (d) colours code to help us
-
29.🔍 One closing tag is missing. Which one?
<h3>Rain today
<b>Our school trip</b>
<strong>Good morning!</strong> (a) </strong> (b) </b> (c) </h3> (d) </small> - 30.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 31.📄 Can HTML on its own run a game loop? (a) No (b) Yes
- 32.Which of these goes in the body? (a) <title> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <p>
- 33.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) nowhere (d) in a big heading
- 34.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) alt (c) height (d) src
-
35.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Visit the site</a> (a) in the same tab (b) in a new tab - 36.📛 In <a href="x.html">, what is href? (a) a comment (b) an element name (c) a closing tag (d) an attribute
- 37.True or false: a web browser saves our .html files. (a) True (b) False
- 38.True or false: <ul> lists steps in order. (a) True (b) False
-
39.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Good morning!</p>
<p>My pets</p>
<p>I love mangoes.</p>
<p>My best friend</p> - 40.🔗 What does HyperText mean? (a) secret text (b) text with links (c) very big text (d) text in colour
Answer key
- a paragraph
- </small>
- <ol>
- 3
- <h2>
- <h1>
- cake.jpg
- numbers
- <h1>
- </em>
- True
- a web browser
- <
- <h5>
- <h1>
- 4
- 3
- 2
- <!DOCTYPE html>
- Hello, world!
- the body
- </small>
- 3
- in a new tab
- 150
- 2
- numbers
- opens web pages for us
- </h3>
- in the body
- No
- <p>
- on the browser tab
- alt
- in a new tab
- an attribute
- False
- False
- 4
- text with links
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids