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 is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
-
2.🔍 Which line is missing its closing tag?
line 1: <em>Fun facts</em>
line 2: <h3>The red kite
line 3: <strong>Hello, world!</strong> (a) line 3 (b) line 1 (c) line 2 - 3.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h5>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
-
4.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>I love mangoes.</p> -->
<p>Our school trip</p> (a) My pets (b) Our school trip (c) I love mangoes. -
5.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>Fun facts</p>
<p>Good morning!</p> -
6.📝 How many paragraphs does this code make?
<p>My best friend</p>
<h2>Fun facts</h2>
<h2>Good morning!</h2>
<h2>The red kite</h2> - 7.True or false: <li> is an unordered list. (a) False (b) True
-
8.🔗 Which address opens when you click this link?
<a href="maths.html">Contact us</a> (a) Contact us (b) news.html (c) art.html (d) maths.html - 9.True or false: <a> goes in the head. (a) False (b) True
- 10.True or false: <b> is an empty tag. (a) True (b) False
- 11.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 12.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
- 13.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
-
14.🔗 Which words do you click on?
<a href="about.html">Art corner</a> (a) Art corner (b) href (c) about.html (d) School news -
15.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="moon.png" alt="The full moon" width="150"> (a) Our school bus (b) width (c) moon.png (d) The full moon - 16.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h4> or <h2>? (a) <h6> (b) <h2> (c) <h4> (d) <h1>
-
17.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>Rain today</p>
<!-- <p>My best friend</p> -->
<p>Fun facts</p> -
18.💬 Which text will NOT show on the page?
<p>My best friend</p>
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> -->
<p>Good morning!</p> (a) Good morning! (b) Hello, world! (c) I love mangoes. (d) My best friend - 19.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
- 20.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h2> or <h4>? (a) <h6> (b) <h2> (c) <h4> (d) <h5>
- 21.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 10 (d) 3
- 22.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h3> or <h4>? (a) <h3> (b) <h4> (c) <h1> (d) <h5>
- 23.Which of these has a closing tag? (a) <meta> (b) <br> (c) <li> (d) <hr>
- 24.📝 What does <br> do? (a) makes text bold (b) makes a list (c) adds a picture (d) starts a new line
-
25.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>Cricket is fun.</p>
<p>Our school trip</p> (a) Cricket is fun. (b) Our school trip (c) Hello, world! - 26.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h2> or <h6>? (a) <h2> (b) <h6> (c) <h3> (d) <h4>
- 27.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h4> or <h2>? (a) <h2> (b) <h3> (c) <h4> (d) <h1>
- 28.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h1> or <h6>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
-
29.📋 What number does the browser show next to “Mango”?
<ol>
<li>Litchi</li>
<li>Mango</li>
<li>Banana</li>
<li>Grapes</li>
<li>Jamun</li>
<li>Papaya</li>
</ol> - 30.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
-
31.🔗 Where does this link open?
<a href="games.html">Take the quiz</a> (a) in a new tab (b) in the same tab -
32.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>My best friend</p>
<!-- <p>I love mangoes.</p> -->
<!-- <p>Our school trip</p> --> - 33.Which of these is an opening tag? (a) </b> (b) </h1> (c) <h1> (d) </p>
- 34.Which of these is true of a web browser? (a) has an address bar (b) stores a website’s files (c) is where we type code (d) colours code to help us
- 35.True or false: <ul> lists things in any order. (a) False (b) True
- 36.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 37.Which of these is an opening tag? (a) </li> (b) </body> (c) </h1> (d) <b>
-
38.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<h3>Hello, world!</h3>
<h3>Our school trip</h3>
<h4>I love mangoes.</h4> -
39.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Good morning!</p> -->
<p>Hello, world!</p>
<!-- <p>Fun facts</p> --> - 40.True or false: a web browser shows pages from the web. (a) True (b) False
Answer key
- <h1>
- line 2
- <h1>
- I love mangoes.
- 3
- 1
- False
- maths.html
- False
- False
- Yes
- -->
- <ul>
- Art corner
- The full moon
- <h1>
- 3
- I love mangoes.
- <li>
- <h6>
- 6
- <h5>
- <li>
- starts a new line
- Hello, world!
- <h6>
- <h4>
- <h1>
- 2
- <img>
- in the same tab
- 1
- <h1>
- has an address bar
- True
- a closing tag
- <b>
- 4
- 1
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids