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.🌐 Which one opens web pages for us? (a) a web browser (b) a web server (c) a code editor
-
2.📋 How many items does this list show?
<ul>
<li>Grapes</li>
<li>Jamun</li>
</ul> - 3.🔗 Which tag makes a clickable link? (a) <p> (b) <a> (c) <link> (d) <img>
-
4.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Guava</li>
<li>Papaya</li>
</ul> (a) numbers (b) bullets - 5.True or false: HTML on its own can count button clicks. (a) False (b) True
- 6.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <p> (c) <title> (d) <style>
-
7.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="50"> (a) fort.jpg (b) The full moon (c) moon.png (d) bus.jpg -
8.🔗 Which address opens when you click this link?
<a href="contact.html">Maths fun</a> (a) Maths fun (b) maths.html (c) contact.html (d) https://example.com -
9.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) About us (b) contact.html (c) href (d) Play games - 10.Which of these is an empty tag? (a) <hr> (b) <h1> (c) <title> (d) <p>
- 11.📄 Can HTML on its own keep a high score? (a) Yes (b) No
- 12.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
-
13.📋 How many items does this list show?
<ul>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
<li>Banana</li>
</ul> - 14.📝 What does <hr> draw? (a) a link (b) a picture (c) a line across the page (d) a table
- 15.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) High Tech (c) HyperText (d) Home Text
- 16.🏷️ Which is the closing tag for <p>? (a) <p/> (b) <p> (c) </p> (d) <\p>
- 17.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) makes it blank (d) opens it in a new tab
- 18.Which of these is an empty tag? (a) <b> (b) <li> (c) <img> (d) <p>
-
19.🖼️ How many pixels wide is the picture drawn?
<img src="dog.jpg" alt="A happy dog" width="400"> - 20.True or false: <h1> has a closing tag. (a) False (b) True
-
21.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>Fun facts</p>
<p>Cricket is fun.</p>
<!-- <p>The red kite</p> --> - 22.🌐 Which one colours code to help us? (a) a code editor (b) a web server (c) a web browser
-
23.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>Fun facts</p> -->
<p>Cricket is fun.</p>
<p>My best friend</p> (a) My pets (b) Cricket is fun. (c) Fun facts (d) My best friend - 24.True or false: in <img>, alt sets how tall it is. (a) True (b) False
-
25.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> -->
<p>The red kite</p> (a) Cricket is fun. (b) The red kite (c) Hello, world! -
26.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="100"> (a) bus.jpg (b) The full moon (c) fort.jpg (d) moon.png - 27.Which of these goes in the head? (a) <table> (b) <h1> (c) <ul> (d) <meta charset="utf-8">
- 28.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 29.📄 Can HTML on its own run a game loop? (a) No (b) Yes
- 30.Which of these is true of a web browser? (a) sends pages over the net (b) colours code to help us (c) is where we type code (d) turns HTML into a page
- 31.True or false: <p> goes in the head. (a) True (b) False
-
32.🖼️ How many pixels wide is the picture drawn?
<img src="dog.jpg" alt="A happy dog" width="100"> -
33.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Roses are red<br>Rivers flow</p> -
34.🔗 Which words do you click on?
<a href="https://example.com">School news</a> (a) Take the quiz (b) https://example.com (c) School news (d) href - 35.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <link about.html>
- 36.💬 Does the browser show comments on the page? (a) No (b) Yes
- 37.Which of these is true of a web browser? (a) opens web pages for us (b) shows line numbers (c) sends pages over the net (d) colours code to help us
-
38.🔍 Which line is missing its closing tag?
line 1: <h2>My best friend</h2>
line 2: <p>The red kite</p>
line 3: <h1>Rain today (a) line 2 (b) line 1 (c) line 3 - 39.📝 What does <p> make? (a) a table (b) a picture (c) a paragraph (d) a link
-
40.🔍 Which line is missing its closing tag?
line 1: <h2>My best friend</h2>
line 2: <h3>Fun facts</h3>
line 3: <p>Hello, world! (a) line 2 (b) line 1 (c) line 3
Answer key
- a web browser
- 2
- <a>
- bullets
- False
- <p>
- moon.png
- contact.html
- Play games
- <hr>
- No
- the body
- 4
- a line across the page
- HyperText
- </p>
- opens it in a new tab
- <img>
- 400
- True
- 3
- a code editor
- Fun facts
- False
- Cricket is fun.
- moon.png
- <meta charset="utf-8">
- a closing tag
- No
- turns HTML into a page
- False
- 100
- 3
- School news
- <a href="about.html">
- No
- opens web pages for us
- line 3
- a paragraph
- line 3
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids