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 address opens when you click this link?
<a href="https://example.com">Art corner</a> (a) Art corner (b) https://example.com (c) maths.html (d) art.html - 2.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h3>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
- 3.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
4.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>Good morning!</p>
<!-- <p>Rain today</p> --> - 5.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
- 6.🏷️ Which is the closing tag for <h3>? (a) <h3/> (b) <\h3> (c) </h3> (d) <h3>
- 7.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
- 8.🌐 Which one shows pages from the web? (a) a web server (b) a code editor (c) a web browser
- 9.Which of these is an opening tag? (a) </title> (b) <body> (c) </b> (d) </h1>
-
10.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="100"> (a) width (b) A red kite (c) A tiger asleep (d) tiger.jpg - 11.Which of these goes in the head? (a) <a> (b) <h1> (c) <ul> (d) <title>
- 12.📝 What does <hr> draw? (a) a table (b) a picture (c) a link (d) a line across the page
-
13.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>The red kite</p>
<!-- <p>Cricket is fun.</p> --> - 14.True or false: <link rel="stylesheet"> goes in the body. (a) True (b) False
- 15.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <ul> (c) <a> (d) <table>
- 16.True or false: HTML on its own can make headings. (a) False (b) True
- 17.True or false: <table> goes in the body. (a) False (b) True
-
18.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p> - 19.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
-
20.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<h2>My best friend</h2>
<h2>Rain today</h2>
<p>I love mangoes.</p>
<p>My best friend</p> - 21.🌐 Which one is where we type code? (a) a web server (b) a code editor (c) a web browser
- 22.💬 How does an HTML comment start? (a) // (b) <!-- (c) /* (d) #
-
23.🔗 Where does this link open?
<a href="games.html" target="_blank">Maths fun</a> (a) in the same tab (b) in a new tab -
24.🔗 Where does this link open?
<a href="about.html">School news</a> (a) in a new tab (b) in the same tab - 25.🏷️ Which is the closing tag for <small>? (a) <\small> (b) <small> (c) </small> (d) <small/>
- 26.Which of these goes in the body? (a) <h1> (b) <link rel="stylesheet"> (c) <meta charset="utf-8"> (d) <style>
- 27.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
- 28.🖼️ Which attribute of <img> sets how tall it is? (a) alt (b) height (c) src (d) width
-
29.🔗 Which address opens when you click this link?
<a href="contact.html">Contact us</a> (a) https://example.com (b) Contact us (c) maths.html (d) contact.html -
30.🔗 Where does this link open?
<a href="games.html" target="_blank">Art corner</a> (a) in the same tab (b) in a new tab - 31.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
- 32.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <hr> (d) <ul>
- 33.🔍 Which is the odd one out? (a) sends pages over the net (b) stores a website’s files (c) answers page requests (d) shows pages from the web
- 34.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h3> or <h2>? (a) <h3> (b) <h2> (c) <h1> (d) <h6>
- 35.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
- 36.True or false: <meta> is an empty tag. (a) True (b) False
- 37.🏷️ Which is the closing tag for <u>? (a) </u> (b) <u/> (c) <\u> (d) <u>
-
38.📋 What number does the browser show next to “Grapes”?
<ol>
<li>Orange</li>
<li>Grapes</li>
<li>Mango</li>
<li>Litchi</li>
</ol> - 39.🔗 Which attribute holds the address of a link? (a) src (b) href (c) id (d) alt
- 40.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
Answer key
- https://example.com
- <h6>
- an empty tag
- 1
- <ul>
- </h3>
- in the body
- a web browser
- <body>
- A tiger asleep
- <title>
- a line across the page
- 2
- False
- <meta charset="utf-8">
- True
- True
- 1
- <h6>
- 3
- a code editor
- <!--
- in a new tab
- in the same tab
- </small>
- <h1>
- <h1>
- height
- contact.html
- in a new tab
- <a>
- <ol>
- shows pages from the web
- <h6>
- <ul>
- True
- </u>
- 2
- href
- in the body
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids