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 list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ol> (d) <ul>
- 2.Which of these is an opening tag? (a) </li> (b) <p> (c) </p> (d) </h1>
-
3.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>I love mangoes.</p>
<h2>Good morning!</h2>
<h4>Hello, world!</h4> -
4.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Match report</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Match report (b) Thanks for visiting. (c) Art Gallery (d) body -
5.🔗 Which words do you click on?
<a href="maths.html">Maths fun</a> (a) Maths fun (b) maths.html (c) Art corner (d) href -
6.🔗 Which address opens when you click this link?
<a href="art.html">School news</a> (a) news.html (b) quiz.html (c) art.html (d) School news - 7.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
8.🔗 Which address opens when you click this link?
<a href="maths.html">Art corner</a> (a) art.html (b) news.html (c) Art corner (d) maths.html -
9.🔗 Which words do you click on?
<a href="art.html">About us</a> (a) About us (b) href (c) Contact us (d) art.html - 10.Which of these is a closing tag? (a) </body> (b) <body> (c) <title> (d) <h1>
- 11.True or false: in <img>, height describes the picture. (a) False (b) True
-
12.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>Hello, world!</p>
<p>Hello, world!</p>
<h4>The red kite</h4> -
13.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p>
<!-- <p>My pets</p> -->
<!-- <p>Cricket is fun.</p> --> - 14.Which of these is true of a web server? (a) turns HTML into a page (b) colours code to help us (c) has an address bar (d) answers page requests
-
15.🔗 Where does this link open?
<a href="maths.html">Maths fun</a> (a) in the same tab (b) in a new tab - 16.💬 How does an HTML comment start? (a) <!-- (b) /* (c) # (d) //
-
17.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Mango</li>
<li>Guava</li>
<li>Jamun</li>
<li>Banana</li>
</ol> - 18.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h6>? (a) <h6> (b) <h2> (c) <h5> (d) <h4>
- 19.💬 How does an HTML comment end? (a) // (b) >> (c) */ (d) -->
- 20.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
- 21.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 6 (d) 4
- 22.Which of these is true of a code editor? (a) hosts websites online (b) shows line numbers (c) answers page requests (d) has an address bar
- 23.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
-
24.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue<br>Roses are red<br>Kites fly high</p> - 25.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
- 26.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) secret text (d) text with links
- 27.📄 Can HTML on its own make tables? (a) Yes (b) No
- 28.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h4> (d) <h2>
-
29.🔍 One closing tag is missing. Which one?
<strong>Fun facts</strong>
<p>My best friend
<u>My pets</u> (a) </u> (b) </strong> (c) </h3> (d) </p> - 30.True or false: <meta charset="utf-8"> goes in the head. (a) False (b) True
-
31.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>The red kite</p>
<p>Cricket is fun.</p> (a) Rain today (b) The red kite (c) Cricket is fun. - 32.True or false: in <img>, height sets how tall it is. (a) True (b) False
- 33.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 34.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) <h1> (c) </h1> (d) <\h1>
- 35.True or false: HTML on its own can make tables. (a) True (b) False
-
36.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<p>Our school trip</p>
<p>Cricket is fun.</p> - 37.🔍 Which is the odd one out? (a) shows line numbers (b) stores a website’s files (c) saves our .html files (d) is where we type code
-
38.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Birds sing</p> - 39.True or false: in <img>, src names the picture file. (a) False (b) True
-
40.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Stars shine</p>
Answer key
- <ol>
- <p>
- 3
- Match report
- Maths fun
- art.html
- Yes
- maths.html
- About us
- </body>
- False
- 2
- 1
- answers page requests
- in the same tab
- <!--
- 5
- <h2>
- -->
- in the body
- 6
- shows line numbers
- <ol>
- 4
- <img>
- text with links
- Yes
- <h2>
- </p>
- True
- Rain today
- True
- a closing tag
- </h1>
- True
- 3
- stores a website’s files
- 2
- True
- 2
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids