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 words do you click on?
<a href="contact.html">School news</a> (a) Take the quiz (b) School news (c) href (d) contact.html - 2.True or false: a web browser turns HTML into a page. (a) False (b) True
- 3.True or false: a web browser shows pages from the web. (a) True (b) False
- 4.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h5> or <h1>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
- 5.🖼️ Which attribute of <img> sets how wide it is? (a) src (b) height (c) width (d) alt
- 6.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) < (d) [
- 7.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 8.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h4> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h2>
- 9.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p/> (c) <p> (d) </p>
- 10.Which of these is an opening tag? (a) </li> (b) <body> (c) </title> (d) </b>
-
11.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<!-- <p>I love mangoes.</p> -->
<p>Good morning!</p> - 12.🔍 Which is the odd one out? (a) is where we type code (b) colours code to help us (c) opens web pages for us (d) shows line numbers
- 13.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h5> or <h4>? (a) <h1> (b) <h6> (c) <h4> (d) <h5>
-
14.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>Our school trip</p>
<!-- <p>My pets</p> -->
<p>Good morning!</p> (a) Rain today (b) My pets (c) Good morning! (d) Our school trip - 15.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h3> or <h5>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
-
16.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Welcome!</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Space Facts (b) We won by 5 runs. (c) index.html (d) Welcome! -
17.📋 What number does the browser show next to “Guava”?
<ol>
<li>Litchi</li>
<li>Jamun</li>
<li>Papaya</li>
<li>Orange</li>
<li>Guava</li>
<li>Mango</li>
</ol> -
18.🔠 How many headings are in this code?
<h1>Our school trip</h1>
<p>I love mangoes.</p>
<p>Hello, world!</p>
<h4>Cricket is fun.</h4> -
19.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<p>Fun facts</p>
<!-- <p>Good morning!</p> --> (a) Good morning! (b) Cricket is fun. (c) Fun facts - 20.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) text with links (d) secret text
-
21.🔗 Which words do you click on?
<a href="quiz.html">Maths fun</a> (a) quiz.html (b) Art corner (c) href (d) Maths fun - 22.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
- 23.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h6> (d) <h1>
- 24.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) alt (c) height (d) width
- 25.True or false: <ul> lists things in any order. (a) True (b) False
-
26.💬 Which text will NOT show on the page?
<p>My pets</p>
<p>I love mangoes.</p>
<p>Good morning!</p>
<!-- <p>Fun facts</p> --> (a) I love mangoes. (b) Fun facts (c) Good morning! (d) My pets -
27.🔗 Which address opens when you click this link?
<a href="contact.html">Art corner</a> (a) https://example.com (b) Art corner (c) maths.html (d) contact.html - 28.📄 Which part holds everything you see on the page? (a) the title (b) the head (c) the body (d) the doctype
- 29.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a dot . (d) a slash /
-
30.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) About us (b) Play games (c) games.html (d) href - 31.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 32.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
-
33.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Rivers flow<br>Roses are red</p> - 34.Which of these is a closing tag? (a) <li> (b) <p> (c) <h1> (d) </title>
- 35.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
-
36.🔗 Which words do you click on?
<a href="news.html">School news</a> (a) Take the quiz (b) news.html (c) href (d) School news - 37.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) hides the link (d) makes it bold
- 38.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <style> (c) <link rel="stylesheet"> (d) <table>
- 39.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <link> (d) <p>
- 40.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong> (c) </strong> (d) <strong/>
Answer key
- School news
- True
- True
- <h5>
- width
- <
- a closing tag
- <h4>
- </p>
- <body>
- 1
- opens web pages for us
- <h1>
- My pets
- <h5>
- Space Facts
- 5
- 2
- Good morning!
- text with links
- Maths fun
- in the body
- <h1>
- height
- True
- Fun facts
- contact.html
- the body
- a slash /
- Play games
- has a closing tag
- in the body
- 3
- </title>
- on the browser tab
- School news
- opens it in a new tab
- <table>
- <a>
- </strong>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids