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.True or false: <ul> shows bullet points. (a) False (b) True
-
2.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Birds sing<br>Rivers flow</p> -
3.🔗 Which words do you click on?
<a href="art.html">Art corner</a> (a) School news (b) art.html (c) Art corner (d) href -
4.🔍 One closing tag is missing. Which one?
<h1>Our school trip</h1>
<em>Cricket is fun.
<u>My best friend</u> (a) </u> (b) </em> (c) </p> (d) </h1> - 5.🖼️ Which tag puts a picture on a page? (a) <img> (b) <a> (c) <p> (d) <pic>
-
6.🔗 Where does this link open?
<a href="about.html">Take the quiz</a> (a) in a new tab (b) in the same tab -
7.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>Rain today</p>
<p>Cricket is fun.</p> (a) Cricket is fun. (b) Rain today (c) My best friend - 8.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h3> or <h4>? (a) <h4> (b) <h6> (c) <h2> (d) <h3>
-
9.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Banana</li>
<li>Orange</li>
<li>Litchi</li>
</ol> -
10.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="400"> (a) width (b) kite.png (c) A red kite (d) Map of India -
11.🔍 Which line is missing its closing tag?
line 1: <i>Fun facts</i>
line 2: <b>Cricket is fun.</b>
line 3: <h3>Good morning! (a) line 3 (b) line 1 (c) line 2 - 12.📄 Can HTML on its own make a form? (a) No (b) Yes
- 13.📄 Can HTML on its own pick a random number? (a) Yes (b) No
- 14.💬 How does an HTML comment start? (a) /* (b) # (c) // (d) <!--
- 15.📄 Can HTML on its own make headings? (a) Yes (b) No
-
16.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Jamun</li>
<li>Banana</li>
<li>Papaya</li>
</ol> - 17.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) hosts websites online (d) saves our .html files
- 18.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 19.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) on the browser tab (d) in a big heading
-
20.🔗 Where does this link open?
<a href="art.html">Play games</a> (a) in the same tab (b) in a new tab -
21.🔍 One closing tag is missing. Which one?
<p>Fun facts
<i>My best friend</i>
<h1>Cricket is fun.</h1> (a) </i> (b) </p> (c) </strong> (d) </h1> - 22.True or false: a web server sends pages over the net. (a) False (b) True
-
23.🔍 One closing tag is missing. Which one?
<small>Hello, world!</small>
<i>My best friend</i>
<h3>My pets (a) </i> (b) </b> (c) </h3> (d) </small> - 24.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 25.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
-
26.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>My pets</p> -->
<p>Our school trip</p> -
27.💬 Which text will NOT show on the page?
<p>Rain today</p>
<!-- <p>My pets</p> -->
<p>Good morning!</p> (a) Rain today (b) Good morning! (c) My pets - 28.🌍 Which program shows a web page to us? (a) a music player (b) a web browser (c) a calculator (d) a paint program
- 29.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <p> (d) <h6>
- 30.📝 What does <hr> draw? (a) a line across the page (b) a table (c) a link (d) a picture
-
31.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>Fun facts</p>
<p>My pets</p> - 32.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
- 33.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 1 (d) 3
-
34.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<h4>My best friend</h4>
<p>My pets</p>
<p>My best friend</p>
<p>Hello, world!</p> - 35.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
- 36.True or false: <title> goes in the body. (a) False (b) True
-
37.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>Cricket is fun.</p>
<!-- <p>I love mangoes.</p> --> (a) Cricket is fun. (b) I love mangoes. (c) Good morning! - 38.📄 Can HTML on its own make bullet lists? (a) No (b) Yes
-
39.🔗 Which address opens when you click this link?
<a href="maths.html">School news</a> (a) School news (b) news.html (c) art.html (d) maths.html -
40.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>Good morning!</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p>
<!-- <p>My best friend</p> -->
Answer key
- True
- 3
- Art corner
- </em>
- <img>
- in the same tab
- My best friend
- <h6>
- 3
- A red kite
- line 3
- Yes
- No
- <!--
- Yes
- 4
- saves our .html files
- in the body
- on the browser tab
- in the same tab
- </p>
- True
- </h3>
- a closing tag
- <ul>
- 1
- My pets
- a web browser
- <h6>
- a line across the page
- 3
- to describe the image
- 1
- 2
- <a>
- False
- I love mangoes.
- Yes
- maths.html
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids