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 is the closing tag for <small>? (a) </small> (b) <small> (c) <small/> (d) <\small>
- 2.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h4> or <h1>? (a) <h6> (b) <h4> (c) <h1> (d) <h3>
- 3.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 1 (d) 3
-
4.🔗 Which words do you click on?
<a href="news.html">Play games</a> (a) news.html (b) About us (c) href (d) Play games -
5.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="200"> (a) moon.png (b) bus.jpg (c) fort.jpg (d) The full moon -
6.🔗 Where does this link open?
<a href="news.html" target="_blank">Visit the site</a> (a) in the same tab (b) in a new tab - 7.Which of these has a closing tag? (a) <input> (b) <meta> (c) <b> (d) <br>
- 8.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 9.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 10.True or false: a web server shows pages from the web. (a) False (b) True
- 11.🔢 In a basic web page file, which comes LAST? (a) <head> (b) <!DOCTYPE html> (c) </body> (d) </html>
- 12.Which of these goes in the head? (a) <ul> (b) <table> (c) <link rel="stylesheet"> (d) <p>
- 13.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
- 14.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h6> or <h4>? (a) <h2> (b) <h3> (c) <h4> (d) <h6>
-
15.🔗 Where does this link open?
<a href="games.html" target="_blank">Take the quiz</a> (a) in the same tab (b) in a new tab - 16.📝 What does <br> do? (a) makes a list (b) starts a new line (c) makes text bold (d) adds a picture
-
17.🔍 Which line is missing its closing tag?
line 1: <h1>My pets
line 2: <p>Rain today</p>
line 3: <h2>My best friend</h2> (a) line 3 (b) line 2 (c) line 1 - 18.🔢 In a basic web page file, which comes first: “<html>” or “<head>”? (a) <head> (b) <html>
- 19.🔍 Which is the odd one out? (a) stores a website’s files (b) saves our .html files (c) colours code to help us (d) shows line numbers
- 20.🔍 Which is the odd one out? (a) opens web pages for us (b) has an address bar (c) shows pages from the web (d) is where we type code
- 21.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h6> or <h1>? (a) <h1> (b) <h5> (c) <h3> (d) <h6>
- 22.Which of these is true of a web browser? (a) opens web pages for us (b) answers page requests (c) is where we type code (d) stores a website’s files
-
23.🔍 Which line is missing its closing tag?
line 1: <h2>I love mangoes.
line 2: <u>The red kite</u>
line 3: <em>My best friend</em> (a) line 3 (b) line 1 (c) line 2 -
24.🔗 Which address opens when you click this link?
<a href="about.html">Maths fun</a> (a) Maths fun (b) contact.html (c) https://example.com (d) about.html - 25.💬 How does an HTML comment start? (a) // (b) <!-- (c) # (d) /*
-
26.💬 Which text will NOT show on the page?
<!-- <p>My pets</p> -->
<p>Cricket is fun.</p>
<p>The red kite</p> (a) Cricket is fun. (b) The red kite (c) My pets - 27.🔍 Which is the odd one out? (a) shows pages from the web (b) turns HTML into a page (c) opens web pages for us (d) shows line numbers
- 28.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <h1> (c) <meta charset="utf-8"> (d) <title>
- 29.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
- 30.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
31.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>My pets</p>
<p>The red kite</p>
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> --> - 32.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
-
33.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Banana</li>
</ol> (a) bullets (b) numbers - 34.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
-
35.🔠 How many headings are in this code?
<h1>My best friend</h1>
<p>My best friend</p>
<p>Cricket is fun.</p>
<p>Rain today</p> - 36.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h6>? (a) <h3> (b) <h6> (c) <h2> (d) <h1>
- 37.📝 What does <hr> draw? (a) a picture (b) a line across the page (c) a table (d) a link
-
38.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Birds sing<br>Roses are red</p> - 39.True or false: <li> shows bullet points. (a) True (b) False
- 40.🖼️ Which tag puts a picture on a page? (a) <p> (b) <img> (c) <a> (d) <pic>
Answer key
- </small>
- <h6>
- 1
- Play games
- moon.png
- in a new tab
- <b>
- Yes
- an opening tag
- False
- </html>
- <link rel="stylesheet">
- <ol>
- <h2>
- in a new tab
- starts a new line
- line 1
- <html>
- stores a website’s files
- is where we type code
- <h1>
- opens web pages for us
- line 1
- about.html
- <!--
- My pets
- shows line numbers
- <h1>
- <ul>
- an opening tag
- 3
- <ol>
- numbers
- <ul>
- 1
- <h6>
- a line across the page
- 3
- False
- <img>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids