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.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Jamun</li>
<li>Grapes</li>
</ul> - 2.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 3.True or false: <ul> is an unordered list. (a) True (b) False
-
4.🔗 Which words do you click on?
<a href="news.html">Contact us</a> (a) Visit the site (b) href (c) news.html (d) Contact us - 5.True or false: HTML on its own can add pictures to a page. (a) True (b) False
- 6.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 7.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h6> or <h1>? (a) <h3> (b) <h2> (c) <h6> (d) <h1>
- 8.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
-
9.🔗 Which words do you click on?
<a href="art.html">Play games</a> (a) href (b) About us (c) Play games (d) art.html -
10.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Match report</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Match report (b) index.html (c) Here is my best one. (d) My Hobbies -
11.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) My Hobbies (b) body (c) Welcome! (d) I like to read. - 12.True or false: <a> goes in the head. (a) False (b) True
- 13.Which of these is true of a web browser? (a) hosts websites online (b) shows line numbers (c) turns HTML into a page (d) stores a website’s files
- 14.Which of these is a closing tag? (a) <h1> (b) </b> (c) <li> (d) <b>
- 15.🏷️ Every HTML tag starts with which sign? (a) ( (b) < (c) [ (d) {
-
16.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<h2>I love mangoes.</h2>
<p>My pets</p>
<p>My best friend</p>
<p>Our school trip</p> -
17.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Fun facts</p>
<h4>Good morning!</h4> - 18.Which of these is true of a web server? (a) turns HTML into a page (b) is where we type code (c) has an address bar (d) sends pages over the net
- 19.🌐 Which one shows line numbers? (a) a web browser (b) a web server (c) a code editor
- 20.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
-
21.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Good morning!</p> -->
<p>My pets</p> (a) Good morning! (b) I love mangoes. (c) My pets - 22.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 23.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
- 24.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</body>”? (a) <!DOCTYPE html> (b) </body>
-
25.🔗 Which address opens when you click this link?
<a href="art.html">Maths fun</a> (a) news.html (b) quiz.html (c) Maths fun (d) art.html - 26.💾 A web page file usually ends with which extension? (a) .png (b) .mp3 (c) .html (d) .txt
-
27.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Guava</li>
<li>Jamun</li>
<li>Papaya</li>
</ol> - 28.True or false: <h1> goes in the head. (a) False (b) True
-
29.📋 How many items does this list show?
<ul>
<li>Papaya</li>
<li>Banana</li>
<li>Grapes</li>
<li>Jamun</li>
</ul> -
30.📝 How many paragraphs does this code make?
<p>My best friend</p>
<h2>Cricket is fun.</h2>
<h2>I love mangoes.</h2> - 31.True or false: a web server has an address bar. (a) True (b) False
- 32.🌐 Which one sends pages over the net? (a) a web browser (b) a code editor (c) a web server
- 33.📄 Can HTML on its own make links to pages? (a) Yes (b) No
-
34.🔍 One closing tag is missing. Which one?
<small>I love mangoes.</small>
<h3>My best friend
<strong>The red kite</strong> (a) </small> (b) </h3> (c) </h1> (d) </strong> - 35.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h6> or <h2>? (a) <h5> (b) <h2> (c) <h6> (d) <h1>
- 36.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <img> (d) <a>
-
37.🔍 Which line is missing its closing tag?
line 1: <h1>The red kite
line 2: <strong>Our school trip</strong>
line 3: <small>Hello, world!</small> (a) line 2 (b) line 1 (c) line 3 - 38.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h5>? (a) <h1> (b) <h2> (c) <h5> (d) <h3>
- 39.True or false: <input> has a closing tag. (a) True (b) False
- 40.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h5> or <h1>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
Answer key
- 3
- a closing tag
- True
- Contact us
- True
- in the head
- <h1>
- False
- Play games
- My Hobbies
- Welcome!
- False
- turns HTML into a page
- </b>
- <
- 4
- 2
- sends pages over the net
- a code editor
- in the head
- Good morning!
- an empty tag
- <a>
- <!DOCTYPE html>
- art.html
- .html
- 3
- False
- 4
- 1
- False
- a web server
- Yes
- </h3>
- <h6>
- <img>
- line 1
- <h5>
- False
- <h1>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids