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 tag puts a picture on a page? (a) <a> (b) <p> (c) <img> (d) <pic>
- 2.Which of these is true of a web server? (a) is where we type code (b) sends pages over the net (c) has an address bar (d) turns HTML into a page
-
3.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>I love mangoes.</p>
<!-- <p>Our school trip</p> --> (a) I love mangoes. (b) Fun facts (c) Our school trip -
4.🖼️ How many pixels wide is the picture drawn?
<img src="dog.jpg" alt="A happy dog" width="400"> - 5.🔍 Which is the odd one out? (a) shows pages from the web (b) colours code to help us (c) has an address bar (d) turns HTML into a page
- 6.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h1> or <h6>? (a) <h1> (b) <h6> (c) <h3> (d) <h5>
- 7.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <ul> (d) <hr>
- 8.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 9.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
- 10.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h4>? (a) <h4> (b) <h2> (c) <h1> (d) <h6>
-
11.🔍 One closing tag is missing. Which one?
<u>Cricket is fun.</u>
<i>Fun facts
<b>I love mangoes.</b> (a) </i> (b) </strong> (c) </b> (d) </u> - 12.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h2> or <h3>? (a) <h4> (b) <h6> (c) <h3> (d) <h2>
- 13.True or false: <ul> is one item of a list. (a) True (b) False
- 14.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Home Text (c) Hot Tags (d) HyperText
- 15.Which of these is an opening tag? (a) </li> (b) <b> (c) </b> (d) </p>
- 16.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h5>
- 17.🔢 In a basic web page file, which comes LAST? (a) <html> (b) <head> (c) </head> (d) </html>
- 18.🔍 Which is the odd one out? (a) turns HTML into a page (b) is where we type code (c) shows line numbers (d) colours code to help us
-
19.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab - 20.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 21.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h6> or <h5>? (a) <h4> (b) <h1> (c) <h5> (d) <h6>
- 22.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong> (c) <strong/> (d) </strong>
- 23.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 4 (d) 6
-
24.🖼️ How many pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> -
25.🔍 Which line is missing its closing tag?
line 1: <i>The red kite</i>
line 2: <h1>Our school trip</h1>
line 3: <p>My best friend (a) line 3 (b) line 1 (c) line 2 - 26.🏷️ Every HTML tag starts with which sign? (a) < (b) [ (c) ( (d) {
-
27.🔗 Where does this link open?
<a href="art.html" target="_blank">School news</a> (a) in a new tab (b) in the same tab -
28.🔍 Which line is missing its closing tag?
line 1: <u>I love mangoes.</u>
line 2: <p>My pets</p>
line 3: <b>Fun facts (a) line 1 (b) line 3 (c) line 2 -
29.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Our school trip</h2>
<h2>Our school trip</h2>
<h2>I love mangoes.</h2>
<p>Hello, world!</p> -
30.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Fun facts</h2>
<p>My pets</p> - 31.🔍 Which is the odd one out? (a) sends pages over the net (b) stores a website’s files (c) is where we type code (d) hosts websites online
- 32.True or false: a code editor shows pages from the web. (a) False (b) True
-
33.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Good morning!</p>
<p>The red kite</p>
<p>Rain today</p>
<h2>Rain today</h2> -
34.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="300"> (a) A tiger asleep (b) width (c) tiger.jpg (d) A red kite - 35.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <h1> (d) <p>
-
36.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="150"> -
37.🔗 Which words do you click on?
<a href="quiz.html">About us</a> (a) quiz.html (b) href (c) About us (d) Contact us - 38.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <ul> (d) <p>
-
39.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>My best friend</p>
<p>Our school trip</p> - 40.Which of these has a closing tag? (a) <hr> (b) <br> (c) <ul> (d) <meta>
Answer key
- <img>
- sends pages over the net
- Our school trip
- 400
- colours code to help us
- <h6>
- <ul>
- a closing tag
- a web server
- <h1>
- </i>
- <h2>
- False
- HyperText
- <b>
- <h6>
- </html>
- turns HTML into a page
- in a new tab
- has a closing tag
- <h6>
- </strong>
- 6
- 200
- line 3
- <
- in a new tab
- line 3
- 2
- 2
- is where we type code
- False
- 4
- A tiger asleep
- <h6>
- 150
- About us
- <li>
- 3
- <ul>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids