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 of these is an opening tag? (a) </b> (b) </h1> (c) </body> (d) <p>
- 2.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
- 3.Which of these is a closing tag? (a) </p> (b) <body> (c) <title> (d) <h1>
- 4.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it bold (c) makes it blank (d) opens it in a new tab
- 5.Which of these is true of a web browser? (a) is where we type code (b) colours code to help us (c) shows pages from the web (d) saves our .html files
- 6.True or false: a web browser shows pages from the web. (a) True (b) False
-
7.🔠 How many headings are in this code?
<h1>Our school trip</h1>
<p>Cricket is fun.</p>
<p>Cricket is fun.</p>
<h2>I love mangoes.</h2> -
8.🔗 Which words do you click on?
<a href="art.html">Maths fun</a> (a) art.html (b) Art corner (c) href (d) Maths fun -
9.🔗 Which address opens when you click this link?
<a href="news.html">Visit the site</a> (a) news.html (b) Visit the site (c) games.html (d) quiz.html - 10.🌐 Which one answers page requests? (a) a web browser (b) a code editor (c) a web server
- 11.📄 Can HTML on its own make links to pages? (a) Yes (b) No
- 12.Which of these is an opening tag? (a) </li> (b) <li> (c) </body> (d) </p>
- 13.🔍 Which is the odd one out? (a) is where we type code (b) has an address bar (c) saves our .html files (d) colours code to help us
-
14.📋 Does this list show bullets or numbers?
<ol>
<li>Litchi</li>
<li>Papaya</li>
<li>Orange</li>
</ol> (a) bullets (b) numbers -
15.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>Cricket is fun.</p>
<p>The red kite</p> (a) The red kite (b) My best friend (c) Cricket is fun. - 16.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 17.True or false: <a> goes in the head. (a) True (b) False
- 18.Which of these has a closing tag? (a) <ul> (b) <br> (c) <input> (d) <hr>
-
19.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h4>Fun facts</h4>
<h2>Cricket is fun.</h2>
<h3>My pets</h3> - 20.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
-
21.🔗 Which address opens when you click this link?
<a href="art.html">Maths fun</a> (a) quiz.html (b) news.html (c) Maths fun (d) art.html - 22.📋 Which list tag is an ordered list? (a) <li> (b) <ul> (c) <ol>
- 23.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h2> or <h4>? (a) <h1> (b) <h3> (c) <h2> (d) <h4>
-
24.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) href (b) games.html (c) About us (d) Contact us - 25.📝 What do we need to write HTML? (a) a printer (b) a paintbrush (c) a microphone (d) a plain text editor
-
26.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Papaya</li>
<li>Grapes</li>
<li>Litchi</li>
<li>Jamun</li>
</ol> -
27.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Mango</li>
</ol> (a) numbers (b) bullets - 28.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
-
29.🔗 Which words do you click on?
<a href="maths.html">About us</a> (a) maths.html (b) About us (c) Contact us (d) href - 30.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h2> or <h4>? (a) <h4> (b) <h1> (c) <h3> (d) <h2>
- 31.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
32.🔍 Which line is missing its closing tag?
line 1: <b>Hello, world!
line 2: <strong>Rain today</strong>
line 3: <h3>My pets</h3> (a) line 2 (b) line 3 (c) line 1 - 33.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
34.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="400"> - 35.💬 How does an HTML comment start? (a) # (b) // (c) /* (d) <!--
-
36.🔗 Which words do you click on?
<a href="quiz.html">About us</a> (a) Contact us (b) quiz.html (c) href (d) About us - 37.🌍 Which program shows a web page to us? (a) a music player (b) a calculator (c) a web browser (d) a paint program
-
38.🔗 Where does this link open?
<a href="quiz.html">About us</a> (a) in a new tab (b) in the same tab -
39.🔗 Which words do you click on?
<a href="https://example.com">Play games</a> (a) href (b) https://example.com (c) Play games (d) About us -
40.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>The red kite</p> -->
<p>Our school trip</p>
<p>Good morning!</p>
<!-- <p>Fun facts</p> -->
Answer key
- <p>
- 1
- </p>
- opens it in a new tab
- shows pages from the web
- True
- 2
- Maths fun
- news.html
- a web server
- Yes
- <li>
- has an address bar
- numbers
- My best friend
- Yes
- False
- <ul>
- 4
- a web browser
- art.html
- <ol>
- <h1>
- About us
- a plain text editor
- 4
- numbers
- <ul>
- About us
- <h4>
- has a closing tag
- line 1
- has a closing tag
- 400
- <!--
- About us
- a web browser
- in the same tab
- Play games
- 2
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids