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 true of a web server? (a) shows pages from the web (b) has an address bar (c) opens web pages for us (d) hosts websites online
- 2.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
3.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Banana</li>
<li>Papaya</li>
</ol> -
4.🔗 Which words do you click on?
<a href="about.html">Play games</a> (a) Play games (b) About us (c) about.html (d) href - 5.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
- 6.🏷️ Which is the closing tag for <u>? (a) <u> (b) <\u> (c) </u> (d) <u/>
- 7.📋 Which list tag goes inside ul or ol? (a) <li> (b) <ul> (c) <ol>
- 8.True or false: <p> is an empty tag. (a) True (b) False
- 9.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h2>? (a) <h1> (b) <h4> (c) <h2> (d) <h5>
- 10.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
-
11.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>Good morning!</p>
<h2>Good morning!</h2>
<p>Rain today</p> - 12.True or false: <ol> lists steps in order. (a) True (b) False
- 13.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <a> (c) <style> (d) <title>
- 14.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 15.🧩 An opening tag + content + a closing tag together make an ___. (a) editor (b) attribute (c) address (d) element
- 16.True or false: HTML on its own can pick a random number. (a) True (b) False
- 17.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
- 18.🏷️ Which is the closing tag for <h1>? (a) </h1> (b) <h1/> (c) <\h1> (d) <h1>
- 19.🖼️ Why do we add alt text to an image? (a) to colour it (b) to load it faster (c) to describe the image (d) to make it bigger
- 20.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a calculator (d) a web browser
-
21.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="350"> (a) Birthday cake (b) moon.png (c) dog.jpg (d) cake.jpg - 22.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
-
23.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Cricket is fun.</p>
<p>Fun facts</p> (a) Cricket is fun. (b) Our school trip (c) Fun facts - 24.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 25.🧱 HTML gives a web page its ___. (a) speed (b) colours (c) structure (d) sound
-
26.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Roses are red</p> -
27.🔗 Which words do you click on?
<a href="about.html">Art corner</a> (a) Art corner (b) href (c) School news (d) about.html - 28.True or false: a web server opens web pages for us. (a) True (b) False
-
29.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<p>My best friend</p>
<p>Fun facts</p>
<!-- <p>Good morning!</p> --> - 30.True or false: in <img>, src names the picture file. (a) False (b) True
- 31.True or false: <b> is an empty tag. (a) True (b) False
- 32.Which of these is an opening tag? (a) </b> (b) <h1> (c) </body> (d) </p>
- 33.Which of these is true of a code editor? (a) stores a website’s files (b) answers page requests (c) is where we type code (d) sends pages over the net
- 34.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
- 35.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 36.🔍 Which is the odd one out? (a) shows line numbers (b) colours code to help us (c) has an address bar (d) saves our .html files
- 37.🔢 In a basic web page file, which comes FIRST? (a) </head> (b) <!DOCTYPE html> (c) <head> (d) <html>
-
38.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Mars is red.</p>
</body>
</html> (a) Welcome! (b) body (c) Mars is red. (d) My Hobbies - 39.Which of these is an empty tag? (a) <br> (b) <li> (c) <p> (d) <h1>
- 40.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h3> (b) <h4> (c) <h5> (d) <h2>
Answer key
- hosts websites online
- a closing tag
- 3
- Play games
- <ol>
- </u>
- <li>
- False
- <h1>
- <img>
- 2
- True
- <a>
- No
- element
- False
- <ol>
- </h1>
- to describe the image
- a web browser
- cake.jpg
- <ul>
- Our school trip
- a closing tag
- structure
- 2
- Art corner
- False
- 3
- True
- False
- <h1>
- is where we type code
- <ul>
- an opening tag
- has an address bar
- <!DOCTYPE html>
- Welcome!
- <br>
- <h2>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids