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 code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a href="about.html">
- 2.True or false: <li> lists steps in order. (a) True (b) False
-
3.🔗 Where does this link open?
<a href="games.html" target="_blank">Contact us</a> (a) in a new tab (b) in the same tab -
4.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Good morning!</h2>
<p>Hello, world!</p>
<p>Fun facts</p> -
5.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Orange</li>
</ol> - 6.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
7.📋 What number does the browser show next to “Jamun”?
<ol start="6">
<li>Orange</li>
<li>Mango</li>
<li>Jamun</li>
</ol> -
8.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Rivers flow<br>Birds sing<br>Kites fly high</p> - 9.📄 What is the first line of an HTML5 page? (a) <head> (b) <html> (c) <body> (d) <!DOCTYPE html>
-
10.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Orange</li>
<li>Banana</li>
</ul> (a) numbers (b) bullets -
11.🔗 Which words do you click on?
<a href="https://example.com">Art corner</a> (a) href (b) Art corner (c) https://example.com (d) School news -
12.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<!-- <p>My best friend</p> -->
<p>Rain today</p>
<!-- <p>Hello, world!</p> --> - 13.Which of these is a closing tag? (a) <body> (b) </h1> (c) <b> (d) <title>
- 14.🧱 HTML gives a web page its ___. (a) colours (b) speed (c) structure (d) sound
-
15.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Papaya</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Guava</li>
</ul> - 16.True or false: <li> is an ordered list. (a) True (b) False
- 17.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 18.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h1> or <h5>? (a) <h5> (b) <h3> (c) <h1> (d) <h4>
- 19.True or false: HTML on its own can make bullet lists. (a) True (b) False
- 20.Which of these is true of a code editor? (a) sends pages over the net (b) saves our .html files (c) hosts websites online (d) opens web pages for us
-
21.🔗 Which words do you click on?
<a href="news.html">Maths fun</a> (a) Art corner (b) href (c) Maths fun (d) news.html - 22.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h6> (c) <h1> (d) <p>
- 23.🏷️ Which is the closing tag for <b>? (a) <b> (b) <\b> (c) <b/> (d) </b>
- 24.🔍 Which is the odd one out? (a) hosts websites online (b) stores a website’s files (c) shows pages from the web (d) sends pages over the net
- 25.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h3>? (a) <h2> (b) <h6> (c) <h1> (d) <h3>
-
26.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Rain today</p>
<p>I love mangoes.</p> - 27.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
-
28.🔗 Which words do you click on?
<a href="games.html">Maths fun</a> (a) Art corner (b) games.html (c) href (d) Maths fun -
29.📋 What number does the browser show next to “Mango”?
<ol>
<li>Jamun</li>
<li>Mango</li>
<li>Banana</li>
</ol> - 30.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
- 31.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 3 (d) 6
-
32.📋 What number does the browser show next to “Banana”?
<ol>
<li>Grapes</li>
<li>Papaya</li>
<li>Banana</li>
<li>Mango</li>
<li>Orange</li>
</ol> -
33.📋 How many items does this list show?
<ol>
<li>Mango</li>
<li>Jamun</li>
</ol> - 34.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
- 35.🔍 Which is the odd one out? (a) opens web pages for us (b) answers page requests (c) sends pages over the net (d) hosts websites online
-
36.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="400"> (a) An old fort (b) kite.png (c) fort.jpg (d) tiger.jpg - 37.📝 What does <p> make? (a) a paragraph (b) a picture (c) a link (d) a table
-
38.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Kites fly high</p> -
39.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<h3>Good morning!</h3>
<h3>My pets</h3>
<h4>Rain today</h4> - 40.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <\h2> (c) <h2> (d) <h2/>
Answer key
- <a href="about.html">
- False
- in a new tab
- 3
- 4
- has a closing tag
- 8
- 4
- <!DOCTYPE html>
- bullets
- Art corner
- 2
- </h1>
- structure
- 5
- False
- in the head
- <h1>
- True
- saves our .html files
- Maths fun
- <h1>
- </b>
- shows pages from the web
- <h1>
- 2
- <
- Maths fun
- 2
- -->
- 6
- 3
- 2
- <ol>
- opens web pages for us
- fort.jpg
- a paragraph
- 2
- 4
- </h2>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids