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.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 2.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h1> (c) <p> (d) <h6>
- 3.🏷️ Which is the closing tag for <em>? (a) <\em> (b) </em> (c) <em> (d) <em/>
-
4.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<p>Fun facts</p>
<h4>My best friend</h4>
<h2>Cricket is fun.</h2> -
5.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="400"> (a) kite.png (b) An old fort (c) fort.jpg (d) tiger.jpg - 6.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
- 7.📋 Which list tag lists steps in order? (a) <ol> (b) <li> (c) <ul>
- 8.True or false: HTML on its own can make links to pages. (a) True (b) False
- 9.💾 A web page file usually ends with which extension? (a) .html (b) .png (c) .txt (d) .mp3
-
10.🔍 One closing tag is missing. Which one?
<b>My pets</b>
<h2>Hello, world!
<small>Our school trip</small> (a) </h3> (b) </small> (c) </h2> (d) </b> - 11.🔗 What does HyperText mean? (a) text with links (b) very big text (c) text in colour (d) secret text
- 12.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ul> (c) <ol> (d) <br>
-
13.🔗 Which words do you click on?
<a href="contact.html">About us</a> (a) contact.html (b) Contact us (c) About us (d) href - 14.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
15.🔗 Which words do you click on?
<a href="quiz.html">Art corner</a> (a) School news (b) href (c) quiz.html (d) Art corner -
16.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h3>My best friend</h3>
<h3>Fun facts</h3>
<h2>The red kite</h2> -
17.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Litchi</li>
<li>Orange</li>
<li>Jamun</li>
<li>Papaya</li>
</ol> -
18.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Fun facts</p>
<!-- <p>My pets</p> -->
<!-- <p>Good morning!</p> --> - 19.True or false: <style> goes in the head. (a) False (b) True
- 20.🌐 Which one sends pages over the net? (a) a web server (b) a code editor (c) a web browser
-
21.🔗 Which words do you click on?
<a href="contact.html">Maths fun</a> (a) href (b) Art corner (c) contact.html (d) Maths fun - 22.True or false: in <img>, height describes the picture. (a) False (b) True
-
23.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>The red kite</p> -->
<!-- <p>My pets</p> -->
<p>Good morning!</p>
<p>Hello, world!</p> - 24.Which of these is a closing tag? (a) <p> (b) <h1> (c) <li> (d) </p>
-
25.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h4>Our school trip</h4>
<h2>Rain today</h2> - 26.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <p> (d) <h1>
- 27.True or false: a code editor colours code to help us. (a) True (b) False
- 28.True or false: <ul> goes inside ul or ol. (a) False (b) True
- 29.📄 Can HTML on its own make links to pages? (a) No (b) Yes
- 30.True or false: HTML on its own can show paragraphs. (a) True (b) False
- 31.True or false: a code editor shows line numbers. (a) True (b) False
- 32.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <ul> (d) <hr>
-
33.🔗 Which words do you click on?
<a href="games.html">Contact us</a> (a) games.html (b) Contact us (c) href (d) Visit the site - 34.True or false: HTML on its own cannot keep a high score. (a) False (b) True
- 35.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h3> or <h5>? (a) <h2> (b) <h5> (c) <h3> (d) <h1>
- 36.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h6>? (a) <h1> (b) <h5> (c) <h2> (d) <h6>
- 37.🖼️ Which attribute of <img> names the picture file? (a) height (b) width (c) alt (d) src
-
38.🔗 Where does this link open?
<a href="contact.html" target="_blank">Take the quiz</a> (a) in the same tab (b) in a new tab - 39.📄 What is the first line of an HTML5 page? (a) <html> (b) <body> (c) <!DOCTYPE html> (d) <head>
-
40.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>Hello, world!</p>
<p>The red kite</p> (a) Hello, world! (b) My best friend (c) The red kite
Answer key
- Yes
- <h1>
- </em>
- 3
- fort.jpg
- a web browser
- <ol>
- True
- .html
- </h2>
- text with links
- <ul>
- About us
- No
- Art corner
- 4
- 3
- 1
- True
- a web server
- Maths fun
- False
- 2
- </p>
- 3
- <h6>
- True
- False
- Yes
- True
- True
- <ol>
- Contact us
- True
- <h5>
- <h1>
- src
- in a new tab
- <!DOCTYPE html>
- My best friend
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids