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 paragraphs show on the page?
<p>My pets</p>
<!-- <p>Fun facts</p> -->
<!-- <p>Hello, world!</p> --> - 2.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <ul> (d) <br>
- 3.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <link about.html> (d) <a src="about.html">
-
4.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>I love mangoes.</p>
<p>Rain today</p>
<h4>Rain today</h4> - 5.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h1> or <h6>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
-
6.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<p>My pets</p>
<!-- <p>My best friend</p> --> (a) My pets (b) My best friend (c) I love mangoes. - 7.📄 Can HTML on its own make links to pages? (a) Yes (b) No
- 8.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h1> (b) <h3> (c) <h2> (d) <h5>
-
9.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>I love mangoes.</h2>
<p>My best friend</p>
<p>Fun facts</p>
<h2>Fun facts</h2> - 10.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h3>? (a) <h3> (b) <h1> (c) <h6> (d) <h4>
-
11.🔗 Which address opens when you click this link?
<a href="contact.html">Maths fun</a> (a) maths.html (b) contact.html (c) Maths fun (d) https://example.com -
12.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>I love mangoes.</p>
<p>Good morning!</p>
<!-- <p>My pets</p> --> (a) Good morning! (b) I love mangoes. (c) My pets (d) Rain today -
13.🔍 One closing tag is missing. Which one?
<h2>I love mangoes.</h2>
<h3>Cricket is fun.
<p>Our school trip</p> (a) </p> (b) </h1> (c) </h3> (d) </h2> - 14.🌐 Which one stores a website’s files? (a) a web browser (b) a web server (c) a code editor
- 15.🔗 Which attribute holds the address of a link? (a) href (b) src (c) id (d) alt
- 16.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
- 17.🧱 HTML gives a web page its ___. (a) sound (b) colours (c) speed (d) structure
- 18.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h4> or <h6>? (a) <h4> (b) <h2> (c) <h6> (d) <h3>
- 19.True or false: <li> is an unordered list. (a) False (b) True
-
20.🔍 Which line is missing its closing tag?
line 1: <p>My pets
line 2: <strong>Good morning!</strong>
line 3: <u>Fun facts</u> (a) line 2 (b) line 3 (c) line 1 - 21.Which of these is true of a code editor? (a) has an address bar (b) shows pages from the web (c) is where we type code (d) sends pages over the net
-
22.🔗 Which address opens when you click this link?
<a href="news.html">Contact us</a> (a) Contact us (b) quiz.html (c) games.html (d) news.html -
23.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="350"> - 24.True or false: <li> has a closing tag. (a) False (b) True
-
25.🔗 Where does this link open?
<a href="art.html" target="_blank">Maths fun</a> (a) in the same tab (b) in a new tab - 26.True or false: <link rel="stylesheet"> goes in the body. (a) False (b) True
- 27.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
-
28.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<h2>I love mangoes.</h2>
<p>I love mangoes.</p>
<p>Hello, world!</p> - 29.Which of these is an opening tag? (a) </body> (b) <title> (c) </h1> (d) </p>
- 30.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
- 31.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
- 32.Which of these is true of a web browser? (a) colours code to help us (b) shows line numbers (c) shows pages from the web (d) is where we type code
- 33.Which of these has a closing tag? (a) <img> (b) <title> (c) <meta> (d) <hr>
- 34.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h5> or <h3>? (a) <h5> (b) <h6> (c) <h4> (d) <h3>
-
35.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) index.html (b) Space Facts (c) Easy snacks (d) We won by 5 runs. -
36.🔗 Where does this link open?
<a href="about.html">Contact us</a> (a) in the same tab (b) in a new tab -
37.🔗 Where does this link open?
<a href="about.html" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab -
38.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Banana</li>
</ol> (a) numbers (b) bullets -
39.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>Hello, world!</h2>
<p>Our school trip</p> -
40.🔗 Which address opens when you click this link?
<a href="contact.html">School news</a> (a) School news (b) contact.html (c) maths.html (d) https://example.com
Answer key
- 1
- <ul>
- <a href="about.html">
- 2
- <h1>
- My best friend
- Yes
- <h1>
- 3
- <h1>
- contact.html
- My pets
- </h3>
- a web server
- href
- <ol>
- structure
- <h6>
- False
- line 1
- is where we type code
- news.html
- 350
- True
- in a new tab
- False
- 1
- 3
- <title>
- False
- a web browser
- shows pages from the web
- <title>
- <h6>
- Space Facts
- in the same tab
- in a new tab
- numbers
- 2
- contact.html
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids