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 <h1> headings should a page usually have? (a) 1 (b) 3 (c) 10 (d) 6
- 2.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
- 3.🖼️ Which attribute of <img> names the picture file? (a) height (b) width (c) alt (d) src
- 4.🔗 Which tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
-
5.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Stars shine<br>Sky is blue</p> - 6.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 7.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <ol> (d) <br>
-
8.📋 What number does the browser show next to “Mango”?
<ol start="3">
<li>Papaya</li>
<li>Litchi</li>
<li>Mango</li>
<li>Jamun</li>
</ol> - 9.Which of these is true of a code editor? (a) sends pages over the net (b) saves our .html files (c) turns HTML into a page (d) answers page requests
- 10.Which of these is an opening tag? (a) <title> (b) </body> (c) </p> (d) </h1>
-
11.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>My pets</p>
<p>Cricket is fun.</p> (a) Cricket is fun. (b) My pets (c) I love mangoes. -
12.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Kites fly high</p> - 13.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) HyperText (c) Home Text (d) Hot Tags
-
14.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Our school trip</p>
<p>Hello, world!</p> (a) Good morning! (b) Hello, world! (c) Our school trip -
15.🔗 Which address opens when you click this link?
<a href="news.html">Visit the site</a> (a) Visit the site (b) news.html (c) games.html (d) quiz.html - 16.Which of these goes in the head? (a) <h1> (b) <img> (c) <a> (d) <title>
- 17.True or false: a code editor shows pages from the web. (a) False (b) True
- 18.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h1>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
- 19.🏷️ Which is the closing tag for <u>? (a) </u> (b) <\u> (c) <u> (d) <u/>
- 20.True or false: <ul> goes inside ul or ol. (a) False (b) True
-
21.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="350"> - 22.Which of these is true of a web browser? (a) sends pages over the net (b) shows line numbers (c) saves our .html files (d) turns HTML into a page
-
23.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p>
<p>Our school trip</p>
<p>Hello, world!</p> (a) Rain today (b) Our school trip (c) Hello, world! (d) Cricket is fun. - 24.True or false: HTML on its own can add up two numbers. (a) True (b) False
-
25.📋 What number does the browser show next to “Guava”?
<ol start="5">
<li>Papaya</li>
<li>Jamun</li>
<li>Guava</li>
<li>Banana</li>
<li>Grapes</li>
<li>Litchi</li>
</ol> - 26.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h2> or <h6>? (a) <h3> (b) <h2> (c) <h6> (d) <h5>
- 27.🧱 HTML gives a web page its ___. (a) colours (b) sound (c) structure (d) speed
- 28.True or false: <ol> is one item of a list. (a) True (b) False
-
29.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<!-- <p>Good morning!</p> -->
<p>My pets</p>
<p>Rain today</p> (a) Hello, world! (b) My pets (c) Good morning! (d) Rain today - 30.Which of these has a closing tag? (a) <ul> (b) <meta> (c) <br> (d) <hr>
- 31.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
-
32.🔗 Where does this link open?
<a href="games.html">Art corner</a> (a) in the same tab (b) in a new tab - 33.Which of these goes in the head? (a) <table> (b) <h1> (c) <img> (d) <link rel="stylesheet">
- 34.True or false: in <img>, width is read by screen readers. (a) True (b) False
- 35.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h1>? (a) <h3> (b) <h1> (c) <h2> (d) <h6>
- 36.Which of these is a closing tag? (a) <b> (b) <p> (c) <h1> (d) </body>
-
37.🔗 Which address opens when you click this link?
<a href="games.html">Contact us</a> (a) Contact us (b) games.html (c) contact.html (d) about.html -
38.🔗 Which words do you click on?
<a href="games.html">Art corner</a> (a) games.html (b) href (c) Art corner (d) School news -
39.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="350"> -
40.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Litchi</li>
</ol>
Answer key
- 1
- in the body
- src
- <a>
- 3
- a closing tag
- <ul>
- 5
- saves our .html files
- <title>
- I love mangoes.
- 2
- HyperText
- Good morning!
- news.html
- <title>
- False
- <h1>
- </u>
- False
- 350
- turns HTML into a page
- Rain today
- False
- 7
- <h6>
- structure
- False
- Good morning!
- <ul>
- in the body
- in the same tab
- <link rel="stylesheet">
- False
- <h1>
- </body>
- games.html
- Art corner
- 350
- 2
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids