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 paragraphs show on the page?
<p>Our school trip</p>
<p>Good morning!</p>
<p>Cricket is fun.</p>
<p>My best friend</p>
<!-- <p>Rain today</p> --> - 2.🏷️ Every HTML tag starts with which sign? (a) { (b) [ (c) < (d) (
-
3.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h4>Rain today</h4>
<p>I love mangoes.</p>
<p>My pets</p>
<p>Rain today</p> - 4.🌐 Which one shows line numbers? (a) a code editor (b) a web server (c) a web browser
- 5.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h2> or <h3>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
- 6.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a hash # (c) a slash / (d) a dollar $
- 7.True or false: <hr> is an empty tag. (a) True (b) False
- 8.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h6>? (a) <h2> (b) <h5> (c) <h4> (d) <h6>
- 9.💬 Does the browser show comments on the page? (a) No (b) Yes
- 10.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 4 (d) 6
-
11.🔍 One closing tag is missing. Which one?
<b>My best friend
<h2>Hello, world!</h2>
<small>Rain today</small> (a) </em> (b) </h2> (c) </small> (d) </b> - 12.🖼️ Which attribute of <img> describes the picture? (a) alt (b) src (c) height (d) width
-
13.📋 What number does the browser show next to “Papaya”?
<ol start="4">
<li>Guava</li>
<li>Papaya</li>
<li>Jamun</li>
</ol> - 14.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 15.Which of these is a closing tag? (a) <body> (b) <p> (c) <li> (d) </b>
- 16.🏷️ Which is the closing tag for <i>? (a) <i/> (b) <i> (c) <\i> (d) </i>
- 17.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <ol> (c) <li>
-
18.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="150"> (a) kite.png (b) map.png (c) cake.jpg (d) A red kite - 19.True or false: <title> goes in the body. (a) False (b) True
-
20.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<p>My best friend</p>
<p>Rain today</p> - 21.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
- 22.Which of these has a closing tag? (a) <br> (b) <input> (c) <img> (d) <li>
- 23.📝 What does <p> make? (a) a paragraph (b) a link (c) a picture (d) a table
- 24.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h1> or <h2>? (a) <h6> (b) <h3> (c) <h2> (d) <h1>
- 25.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
- 26.True or false: HTML on its own can make headings. (a) True (b) False
-
27.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<!-- <p>Hello, world!</p> -->
<!-- <p>Fun facts</p> -->
<p>Good morning!</p>
<!-- <p>The red kite</p> --> - 28.True or false: a code editor saves our .html files. (a) True (b) False
- 29.🔤 In “HTML”, what does the L stand for? (a) Language (b) Line (c) Link (d) Laptop
- 30.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) alt (c) src (d) height
-
31.💬 How many paragraphs show on the page?
<p>Rain today</p>
<!-- <p>I love mangoes.</p> -->
<!-- <p>Good morning!</p> --> - 32.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h2> (d) <h1>
- 33.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
- 34.True or false: HTML on its own can keep a high score. (a) False (b) True
- 35.True or false: <title> has a closing tag. (a) True (b) False
-
36.🔗 Which words do you click on?
<a href="contact.html">Contact us</a> (a) contact.html (b) Visit the site (c) href (d) Contact us - 37.🖼️ Which attribute of <img> tells which image to load? (a) src (b) alt (c) height (d) width
- 38.True or false: <li> goes inside ul or ol. (a) True (b) False
- 39.🏷️ Which is the closing tag for <strong>? (a) <strong/> (b) </strong> (c) <\strong> (d) <strong>
- 40.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
Answer key
- 4
- <
- 2
- a code editor
- <h4>
- a slash /
- True
- <h2>
- No
- 6
- </b>
- alt
- 5
- an opening tag
- </b>
- </i>
- <li>
- kite.png
- False
- 2
- <ul>
- <li>
- a paragraph
- <h1>
- <ul>
- True
- 1
- True
- Language
- alt
- 1
- <h1>
- <a href="about.html">
- False
- True
- Contact us
- src
- True
- </strong>
- <ol>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids