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 heading shows the SMALLEST text: <h2>, <h6>, <h4> or <h3>? (a) <h6> (b) <h2> (c) <h3> (d) <h4>
-
2.🔍 One closing tag is missing. Which one?
<h1>My best friend
<h3>Cricket is fun.</h3>
<h2>My pets</h2> (a) </em> (b) </h1> (c) </h2> (d) </h3> -
3.🔗 Which address opens when you click this link?
<a href="contact.html">About us</a> (a) About us (b) contact.html (c) https://example.com (d) maths.html - 4.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 5.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3> (c) <\h3> (d) <h3/>
- 6.🧩 An opening tag + content + a closing tag together make an ___. (a) editor (b) element (c) address (d) attribute
- 7.Which of these is true of a web server? (a) opens web pages for us (b) shows pages from the web (c) sends pages over the net (d) turns HTML into a page
- 8.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) Hot Tags (c) HyperText (d) High Tech
- 9.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h3> or <h5>? (a) <h5> (b) <h1> (c) <h3> (d) <h4>
- 10.True or false: <title> goes in the head. (a) False (b) True
- 11.🖼️ Which attribute of <img> names the picture file? (a) alt (b) width (c) src (d) height
-
12.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="50"> (a) fort.jpg (b) An old fort (c) kite.png (d) tiger.jpg - 13.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
-
14.🔗 Which words do you click on?
<a href="games.html">Art corner</a> (a) School news (b) games.html (c) Art corner (d) href - 15.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h4>
- 16.🏷️ HTML marks up text using ___. (a) tags (b) wires (c) pixels (d) keys
- 17.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h4>? (a) <h6> (b) <h3> (c) <h4> (d) <h2>
-
18.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Our school trip</p>
<p>Cricket is fun.</p> -
19.🔍 One closing tag is missing. Which one?
<i>Cricket is fun.</i>
<u>I love mangoes.</u>
<h3>Our school trip (a) </u> (b) </h2> (c) </h3> (d) </i> - 20.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) opens web pages for us (d) stores a website’s files
- 21.📄 Can HTML on its own make links to pages? (a) No (b) Yes
- 22.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
23.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Welcome!</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) We won by 5 runs. (b) Cricket Club (c) body (d) Welcome! -
24.🔍 One closing tag is missing. Which one?
<p>Cricket is fun.</p>
<em>My best friend</em>
<i>Our school trip (a) </h1> (b) </em> (c) </p> (d) </i> -
25.🔍 Which line is missing its closing tag?
line 1: <i>I love mangoes.</i>
line 2: <em>Hello, world!
line 3: <u>The red kite</u> (a) line 1 (b) line 2 (c) line 3 -
26.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) games.html (b) href (c) Take the quiz (d) Play games - 27.🌍 Which program shows a web page to us? (a) a calculator (b) a paint program (c) a web browser (d) a music player
- 28.🔠 Are headings shown in bold by default? (a) No (b) Yes
-
29.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Banana</li>
</ol> (a) bullets (b) numbers - 30.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h2> or <h5>? (a) <h5> (b) <h2> (c) <h3> (d) <h4>
- 31.True or false: <p> goes in the body. (a) True (b) False
- 32.🔤 In “HTML”, what does the L stand for? (a) Link (b) Laptop (c) Language (d) Line
- 33.📝 What does <br> do? (a) makes a list (b) makes text bold (c) starts a new line (d) adds a picture
-
34.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h2>Hello, world!</h2>
<h2>Good morning!</h2>
<p>The red kite</p> - 35.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
- 36.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h4> or <h6>? (a) <h4> (b) <h2> (c) <h5> (d) <h6>
-
37.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>Fun facts</p>
<p>My best friend</p>
<p>My pets</p> - 38.True or false: in <img>, src shows if the image fails. (a) True (b) False
-
39.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<!-- <p>I love mangoes.</p> -->
<p>Hello, world!</p>
<p>My pets</p> (a) Hello, world! (b) Good morning! (c) I love mangoes. (d) My pets - 40.📝 What does <p> make? (a) a paragraph (b) a picture (c) a table (d) a link
Answer key
- <h6>
- </h1>
- contact.html
- has a closing tag
- </h3>
- element
- sends pages over the net
- HyperText
- <h5>
- True
- src
- fort.jpg
- <ol>
- Art corner
- <h1>
- tags
- <h2>
- 2
- </h3>
- stores a website’s files
- Yes
- an empty tag
- Welcome!
- </i>
- line 2
- Take the quiz
- a web browser
- Yes
- numbers
- <h5>
- True
- Language
- starts a new line
- 3
- in the body
- <h2>
- 4
- False
- I love mangoes.
- a paragraph
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids