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.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 2.📋 Which list suits a shopping list in any order? (a) <br> (b) <ul> (c) <ol> (d) <hr>
-
3.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Planets</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Planets (b) index.html (c) We won by 5 runs. (d) My Hobbies -
4.📋 What number does the browser show next to “Papaya”?
<ol start="3">
<li>Grapes</li>
<li>Jamun</li>
<li>Papaya</li>
<li>Mango</li>
<li>Guava</li>
<li>Litchi</li>
</ol> - 5.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h1> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
-
6.🔗 Which address opens when you click this link?
<a href="maths.html">School news</a> (a) School news (b) maths.html (c) news.html (d) art.html -
7.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) My drawings (b) index.html (c) Space Facts (d) I like to read. - 8.True or false: <ul> goes in the head. (a) False (b) True
-
9.💬 How many paragraphs show on the page?
<p>Rain today</p>
<p>My pets</p>
<p>The red kite</p>
<!-- <p>Our school trip</p> --> - 10.Which of these is an opening tag? (a) </li> (b) </title> (c) <body> (d) </p>
-
11.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) about.html (b) Art corner (c) contact.html (d) games.html - 12.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to make links (d) to show pictures
-
13.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>Rain today</p> -->
<p>I love mangoes.</p> -
14.🔗 Which words do you click on?
<a href="art.html">Art corner</a> (a) Art corner (b) art.html (c) School news (d) href - 15.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 3 (c) 1 (d) 10
- 16.🔍 Which is the odd one out? (a) stores a website’s files (b) hosts websites online (c) saves our .html files (d) sends pages over the net
- 17.True or false: in <img>, src names the picture file. (a) True (b) False
- 18.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 19.True or false: HTML on its own can make a form. (a) True (b) False
-
20.🔗 Which words do you click on?
<a href="quiz.html">School news</a> (a) Take the quiz (b) href (c) School news (d) quiz.html -
21.📝 How many paragraphs does this code make?
<p>I love mangoes.</p>
<p>Fun facts</p>
<h2>Good morning!</h2>
<p>My pets</p>
<h2>Rain today</h2>
<p>Cricket is fun.</p> -
22.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>My drawings</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Thanks for visiting. (b) index.html (c) My drawings (d) Art Gallery - 23.🖼️ Which tag puts a picture on a page? (a) <img> (b) <p> (c) <a> (d) <pic>
- 24.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
-
25.🔗 Which address opens when you click this link?
<a href="games.html">School news</a> (a) about.html (b) games.html (c) contact.html (d) School news -
26.📋 What number does the browser show next to “Jamun”?
<ol start="6">
<li>Grapes</li>
<li>Banana</li>
<li>Guava</li>
<li>Mango</li>
<li>Jamun</li>
</ol> - 27.Which of these is an opening tag? (a) </p> (b) </b> (c) <title> (d) </body>
- 28.True or false: <ul> is an empty tag. (a) True (b) False
- 29.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
- 30.🔢 In a basic web page file, which comes LAST? (a) <body> (b) </html> (c) <html> (d) <head>
- 31.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <style> (d) <a>
- 32.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 4 (d) 3
-
33.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Litchi</li>
<li>Mango</li>
<li>Papaya</li>
<li>Guava</li>
<li>Orange</li>
</ol> -
34.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Mango</li>
</ul> (a) numbers (b) bullets - 35.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h1> or <h6>? (a) <h1> (b) <h6> (c) <h4> (d) <h3>
- 36.💬 How does an HTML comment end? (a) */ (b) // (c) --> (d) >>
-
37.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Guava</li>
</ul> - 38.📄 Can HTML on its own pick a random number? (a) No (b) Yes
- 39.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) <h1/> (c) <h1> (d) </h1>
- 40.True or false: <li> shows bullet points. (a) False (b) True
Answer key
- an opening tag
- <ul>
- My Hobbies
- 5
- <h6>
- maths.html
- Space Facts
- False
- 3
- <body>
- games.html
- to leave notes
- 1
- Art corner
- 1
- saves our .html files
- True
- a closing tag
- True
- School news
- 4
- Art Gallery
- <img>
- a code editor
- games.html
- 10
- <title>
- False
- on the browser tab
- </html>
- <a>
- 6
- 6
- bullets
- <h6>
- -->
- 2
- No
- </h1>
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids