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.📝 What does <p> make? (a) a table (b) a picture (c) a link (d) a paragraph
-
2.🔗 Which address opens when you click this link?
<a href="games.html">Maths fun</a> (a) contact.html (b) about.html (c) Maths fun (d) games.html - 3.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
- 4.🔗 What does HyperText mean? (a) very big text (b) secret text (c) text in colour (d) text with links
- 5.Which of these is an opening tag? (a) </body> (b) <body> (c) </li> (d) </h1>
-
6.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<p>Our school trip</p>
<!-- <p>My pets</p> -->
<p>Hello, world!</p> (a) I love mangoes. (b) Our school trip (c) Hello, world! (d) My pets - 7.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <img> (d) <pic>
-
8.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Hello, world!</p>
<p>Good morning!</p>
<h4>My pets</h4> - 9.📄 Can HTML on its own run a game loop? (a) No (b) Yes
-
10.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow<br>Birds sing</p> - 11.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
-
12.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue</p> -
13.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="100"> (a) A happy dog (b) dog.jpg (c) The full moon (d) width - 14.🔢 In a basic web page file, which comes first: “<head>” or “</html>”? (a) </html> (b) <head>
- 15.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <hr> (c) <br> (d) <ul>
- 16.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 17.True or false: a web server sends pages over the net. (a) True (b) False
- 18.True or false: <ul> is an empty tag. (a) True (b) False
- 19.🔍 Which is the odd one out? (a) opens web pages for us (b) has an address bar (c) shows pages from the web (d) answers page requests
- 20.True or false: <ol> is an unordered list. (a) False (b) True
- 21.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 3 (d) 10
- 22.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
- 23.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
24.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<!-- <p>My best friend</p> -->
<!-- <p>Hello, world!</p> --> - 25.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 26.True or false: in <img>, height sets how tall it is. (a) False (b) True
- 27.🖼️ Which attribute of <img> sets how tall it is? (a) alt (b) height (c) width (d) src
- 28.📝 Does <li> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
29.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) About us (b) Contact us (c) games.html (d) href - 30.Which of these is an opening tag? (a) <li> (b) </body> (c) </p> (d) </li>
-
31.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Mango</li>
</ul> (a) numbers (b) bullets - 32.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <p> (c) <ul> (d) <table>
-
33.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Grapes</li>
<li>Litchi</li>
</ul> -
34.🔗 Where does this link open?
<a href="art.html" target="_blank">Contact us</a> (a) in a new tab (b) in the same tab -
35.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>I love mangoes.</p>
<p>Rain today</p>
<h2>My best friend</h2>
<p>Good morning!</p>
<p>Good morning!</p> - 36.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
- 37.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) hides the link (d) makes it bold
- 38.Which of these is true of a web server? (a) shows pages from the web (b) sends pages over the net (c) colours code to help us (d) has an address bar
- 39.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h3>
- 40.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <link rel="stylesheet"> (c) <style> (d) <h1>
Answer key
- a paragraph
- games.html
- <h1>
- text with links
- <body>
- My pets
- <img>
- 2
- No
- 3
- Yes
- 2
- A happy dog
- <head>
- <ol>
- Yes
- True
- False
- answers page requests
- False
- 6
- in the head
- a closing tag
- 1
- an opening tag
- True
- height
- has a closing tag
- About us
- <li>
- bullets
- <meta charset="utf-8">
- 3
- in a new tab
- 5
- <li>
- opens it in a new tab
- sends pages over the net
- <h2>
- <h1>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids