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.📄 Can HTML on its own make bullet lists? (a) No (b) Yes
- 2.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h2>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
- 3.True or false: <meta> is an empty tag. (a) True (b) False
- 4.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) ( (d) <
- 5.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h4> or <h1>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
-
6.📋 What number does the browser show next to “Papaya”?
<ol start="2">
<li>Guava</li>
<li>Grapes</li>
<li>Litchi</li>
<li>Papaya</li>
</ol> -
7.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>Rain today</p> -->
<!-- <p>My pets</p> -->
<p>Hello, world!</p>
<p>I love mangoes.</p> - 8.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <br> (d) <ul>
- 9.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
- 10.🌐 Which one opens web pages for us? (a) a web browser (b) a web server (c) a code editor
- 11.Which of these is true of a web server? (a) colours code to help us (b) has an address bar (c) saves our .html files (d) stores a website’s files
-
12.🔗 Which words do you click on?
<a href="art.html">Contact us</a> (a) href (b) art.html (c) Contact us (d) Visit the site - 13.🔤 In “HTML”, what does the M stand for? (a) Machine (b) Mouse (c) Markup (d) Modern
-
14.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Papaya</li>
</ol> - 15.📄 Can HTML on its own keep a high score? (a) No (b) Yes
- 16.Which of these has a closing tag? (a) <h1> (b) <hr> (c) <img> (d) <meta>
-
17.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="100"> - 18.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 19.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <b/> (d) <\b>
-
20.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>My best friend</p>
<p>My pets</p>
<p>Cricket is fun.</p>
<p>My best friend</p> - 21.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
-
22.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<!-- <p>Our school trip</p> -->
<p>Hello, world!</p> - 23.True or false: <ul> lists things in any order. (a) True (b) False
- 24.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
- 25.True or false: <hr> has a closing tag. (a) True (b) False
- 26.🌐 Which one is where we type code? (a) a web browser (b) a code editor (c) a web server
- 27.🖼️ Which tag puts a picture on a page? (a) <a> (b) <pic> (c) <img> (d) <p>
-
28.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="300"> (a) Our school bus (b) bus.jpg (c) width (d) An old fort -
29.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="fort.jpg" alt="An old fort" width="50"> (a) An old fort (b) A tiger asleep (c) width (d) fort.jpg -
30.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> -->
<p>My pets</p>
<p>Rain today</p> - 31.True or false: HTML on its own can add up two numbers. (a) True (b) False
- 32.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h6>? (a) <h2> (b) <h6> (c) <h5> (d) <h1>
-
33.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<p>Rain today</p>
<h2>Cricket is fun.</h2>
<p>Cricket is fun.</p>
<p>My best friend</p> - 34.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h4> or <h1>? (a) <h5> (b) <h4> (c) <h2> (d) <h1>
- 35.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
- 36.💬 Does the browser show comments on the page? (a) Yes (b) No
- 37.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a src="about.html">
- 38.🌐 Which one has an address bar? (a) a web browser (b) a code editor (c) a web server
- 39.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as a new line (c) as 5 spaces (d) as a dot
-
40.🔗 Which words do you click on?
<a href="art.html">Take the quiz</a> (a) art.html (b) Take the quiz (c) href (d) Play games
Answer key
- Yes
- <h1>
- True
- <
- <h1>
- 5
- 2
- <ul>
- Yes
- a web browser
- stores a website’s files
- Contact us
- Markup
- 2
- No
- <h1>
- 100
- has a closing tag
- </b>
- 5
- <ul>
- 2
- True
- <ol>
- False
- a code editor
- <img>
- Our school bus
- An old fort
- 3
- False
- <h1>
- 5
- <h5>
- -->
- No
- <a href="about.html">
- a web browser
- as one space
- Take the quiz
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids