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>Orange</li>
<li>Banana</li>
<li>Jamun</li>
</ol> - 2.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
-
3.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<p>I love mangoes.</p> (a) Hello, world! (b) I love mangoes. (c) The red kite - 4.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ul> (d) <ol>
- 5.True or false: <ul> is an unordered list. (a) True (b) False
-
6.💬 Which text will NOT show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p>
<p>Hello, world!</p> (a) Hello, world! (b) Cricket is fun. (c) Our school trip - 7.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to describe the image (c) to colour it (d) to load it faster
-
8.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Stars shine<br>Roses are red<br>Sky is blue</p> -
9.🔗 Which words do you click on?
<a href="https://example.com">Contact us</a> (a) https://example.com (b) Contact us (c) href (d) Visit the site -
10.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> -
11.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="100"> -
12.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Grapes</li>
<li>Mango</li>
</ul> - 13.Which of these is true of a code editor? (a) turns HTML into a page (b) stores a website’s files (c) saves our .html files (d) has an address bar
-
14.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>The red kite</p>
<h3>Good morning!</h3>
<p>Rain today</p>
<p>I love mangoes.</p> - 15.📄 Can HTML on its own count button clicks? (a) Yes (b) No
-
16.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>My pets</p>
<h2>The red kite</h2> -
17.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Rivers flow<br>Kites fly high<br>Sky is blue<br>Roses are red</p> -
18.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Orange</li>
<li>Banana</li>
<li>Papaya</li>
<li>Mango</li>
<li>Guava</li>
</ol> - 19.🏷️ HTML marks up text using ___. (a) pixels (b) keys (c) wires (d) tags
-
20.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Stars shine<br>Sky is blue</p> -
21.🖼️ Which picture file does the browser load?
<img src="dog.jpg" alt="A happy dog" width="300"> (a) bus.jpg (b) A happy dog (c) dog.jpg (d) moon.png - 22.🔍 Which is the odd one out? (a) is where we type code (b) turns HTML into a page (c) shows pages from the web (d) has an address bar
-
23.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>Good morning!</h2>
<h2>Cricket is fun.</h2>
<p>Fun facts</p> -
24.🔍 One closing tag is missing. Which one?
<h3>My pets</h3>
<p>Hello, world!
<u>I love mangoes.</u> (a) </u> (b) </em> (c) </h3> (d) </p> - 25.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a slash / (c) a dot . (d) a hash #
-
26.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Cricket is fun.</h2>
<p>Our school trip</p>
<p>Fun facts</p>
<p>My pets</p> - 27.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
-
28.💬 How many paragraphs show on the page?
<p>Rain today</p>
<!-- <p>Fun facts</p> -->
<!-- <p>Good morning!</p> -->
<p>My pets</p> -
29.📋 What number does the browser show next to “Banana”?
<ol>
<li>Jamun</li>
<li>Papaya</li>
<li>Mango</li>
<li>Banana</li>
</ol> -
30.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Our school trip</p>
<p>Cricket is fun.</p>
<p>The red kite</p> (a) The red kite (b) Our school trip (c) Good morning! (d) Cricket is fun. - 31.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
- 32.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
33.🔗 Which address opens when you click this link?
<a href="maths.html">Art corner</a> (a) news.html (b) art.html (c) maths.html (d) Art corner - 34.🔗 Which tag makes a clickable link? (a) <a> (b) <img> (c) <p> (d) <link>
- 35.🌐 Which one shows pages from the web? (a) a code editor (b) a web server (c) a web browser
-
36.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Birds sing<br>Roses are red<br>Rivers flow<br>Kites fly high</p> - 37.🌐 Which one stores a website’s files? (a) a web browser (b) a web server (c) a code editor
- 38.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <ol> (d) <hr>
-
39.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<!-- <p>Rain today</p> -->
<p>My best friend</p>
<!-- <p>I love mangoes.</p> --> -
40.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>The red kite</p>
<p>My best friend</p>
<p>My pets</p> (a) My best friend (b) My pets (c) The red kite (d) Hello, world!
Answer key
- 3
- a paragraph
- Hello, world!
- <ul>
- True
- Cricket is fun.
- to describe the image
- 4
- Contact us
- 200
- 100
- 3
- saves our .html files
- 2
- No
- 2
- 5
- 6
- tags
- 3
- dog.jpg
- is where we type code
- 2
- </p>
- a slash /
- 4
- a web browser
- 2
- 4
- Good morning!
- a web server
- has a closing tag
- maths.html
- <a>
- a web browser
- 5
- a web server
- <ol>
- 1
- Hello, world!
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids