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.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
- 2.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
- 3.Which of these is true of a web server? (a) shows line numbers (b) colours code to help us (c) shows pages from the web (d) stores a website’s files
-
4.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Grapes</li>
<li>Guava</li>
</ul> - 5.True or false: <a> goes in the body. (a) True (b) False
- 6.🌐 Which one has an address bar? (a) a code editor (b) a web browser (c) a web server
- 7.Which of these is an empty tag? (a) <ul> (b) <hr> (c) <p> (d) <title>
- 8.📝 Does <title> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
9.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) contact.html (b) about.html (c) Art corner (d) games.html - 10.Which of these is true of a code editor? (a) is where we type code (b) has an address bar (c) sends pages over the net (d) turns HTML into a page
-
11.🔗 Where does this link open?
<a href="https://example.com">About us</a> (a) in the same tab (b) in a new tab - 12.Which of these is true of a web server? (a) colours code to help us (b) saves our .html files (c) opens web pages for us (d) answers page requests
-
13.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Sky is blue<br>Roses are red<br>Rivers flow</p> - 14.True or false: <title> is an empty tag. (a) True (b) False
- 15.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
- 16.Which of these is a closing tag? (a) <li> (b) <p> (c) <body> (d) </title>
-
17.🖼️ How many pixels wide is the picture drawn?
<img src="fort.jpg" alt="An old fort" width="150"> - 18.True or false: in <img>, alt tells which image to load. (a) False (b) True
-
19.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Mango</li>
<li>Guava</li>
<li>Orange</li>
</ol> - 20.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) editor (c) address (d) element
- 21.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h2> or <h4>? (a) <h2> (b) <h4> (c) <h5> (d) <h6>
- 22.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h6> or <h3>? (a) <h2> (b) <h6> (c) <h3> (d) <h5>
-
23.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h3>Rain today</h3>
<p>Cricket is fun.</p>
<p>I love mangoes.</p> - 24.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
-
25.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Papaya</li>
</ul> - 26.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h5> or <h3>? (a) <h5> (b) <h2> (c) <h1> (d) <h3>
- 27.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 28.True or false: in <img>, width sets how wide it is. (a) True (b) False
- 29.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 30.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <a href="about.html"> (d) <link about.html>
- 31.True or false: <ol> lists steps in order. (a) True (b) False
- 32.🔗 What does HyperText mean? (a) secret text (b) text with links (c) text in colour (d) very big text
- 33.📄 Can HTML on its own make tables? (a) No (b) Yes
-
34.💬 How many paragraphs show on the page?
<p>Rain today</p>
<p>I love mangoes.</p>
<p>Cricket is fun.</p>
<!-- <p>My pets</p> -->
<p>Our school trip</p> -
35.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> --> (a) Hello, world! (b) Our school trip (c) Cricket is fun. - 36.Which of these has a closing tag? (a) <meta> (b) <ul> (c) <input> (d) <img>
-
37.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>Rain today</p>
<p>I love mangoes.</p>
<h2>My pets</h2>
<p>Rain today</p>
<h2>I love mangoes.</h2> - 38.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h6> or <h4>? (a) <h3> (b) <h5> (c) <h4> (d) <h6>
- 39.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
- 40.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
Answer key
- <
- <ul>
- stores a website’s files
- 3
- True
- a web browser
- <hr>
- has a closing tag
- games.html
- is where we type code
- in the same tab
- answers page requests
- 4
- False
- <h1>
- </title>
- 150
- False
- 4
- element
- <h6>
- <h6>
- 2
- <img>
- 2
- <h1>
- in the head
- True
- No
- <a href="about.html">
- True
- text with links
- Yes
- 4
- Our school trip
- <ul>
- 4
- <h6>
- <a>
- <h1>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids