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.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 2.True or false: HTML on its own cannot make tables. (a) False (b) True
- 3.🌐 Which one turns HTML into a page? (a) a web browser (b) a web server (c) a code editor
-
4.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<p>My best friend</p>
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Fun facts</p> -->
<p>Hello, world!</p> -
5.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>Cricket is fun.</p>
<p>Good morning!</p>
<!-- <p>Our school trip</p> --> (a) Cricket is fun. (b) Good morning! (c) Rain today (d) Our school trip -
6.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>My best friend</p> -->
<!-- <p>Hello, world!</p> -->
<p>My pets</p>
<p>Rain today</p> - 7.True or false: in <img>, src describes the picture. (a) False (b) True
- 8.Which of these is a closing tag? (a) <b> (b) <title> (c) <p> (d) </li>
- 9.🌐 Which one stores a website’s files? (a) a code editor (b) a web browser (c) a web server
- 10.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 11.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h1> or <h4>? (a) <h4> (b) <h3> (c) <h1> (d) <h5>
-
12.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>Fun facts</p>
<h2>Fun facts</h2>
<p>I love mangoes.</p> - 13.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) at the bottom (d) in a big heading
- 14.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 15.🖼️ Which tag puts a picture on a page? (a) <a> (b) <img> (c) <p> (d) <pic>
-
16.📋 What number does the browser show next to “Litchi”?
<ol start="4">
<li>Banana</li>
<li>Mango</li>
<li>Litchi</li>
<li>Jamun</li>
<li>Guava</li>
</ol> - 17.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) a comment (d) an element name
-
18.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>The red kite</p>
<!-- <p>Our school trip</p> -->
<p>My best friend</p>
<!-- <p>I love mangoes.</p> --> - 19.Which of these has a closing tag? (a) <br> (b) <input> (c) <hr> (d) <li>
- 20.True or false: <ul> goes inside ul or ol. (a) True (b) False
- 21.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 22.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
-
23.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="200"> (a) tiger.jpg (b) width (c) A tiger asleep (d) A red kite - 24.Which of these is true of a web server? (a) saves our .html files (b) answers page requests (c) is where we type code (d) opens web pages for us
- 25.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h4> or <h1>? (a) <h1> (b) <h6> (c) <h4> (d) <h3>
-
26.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>I love mangoes.</p>
<h2>Cricket is fun.</h2>
<p>The red kite</p> - 27.📝 What does <p> make? (a) a table (b) a picture (c) a link (d) a paragraph
- 28.Which of these is true of a code editor? (a) shows line numbers (b) hosts websites online (c) shows pages from the web (d) answers page requests
-
29.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) Art corner (b) about.html (c) contact.html (d) games.html - 30.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a dot (b) as one space (c) as 5 spaces (d) as a new line
- 31.🔢 In a basic web page file, which comes first: “</body>” or “<head>”? (a) <head> (b) </body>
-
32.📋 What number does the browser show next to “Orange”?
<ol start="5">
<li>Jamun</li>
<li>Guava</li>
<li>Papaya</li>
<li>Orange</li>
<li>Grapes</li>
</ol> - 33.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
- 34.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
-
35.📋 What number does the browser show next to “Guava”?
<ol start="9">
<li>Papaya</li>
<li>Guava</li>
<li>Banana</li>
</ol> - 36.True or false: <title> has a closing tag. (a) False (b) True
- 37.🖼️ Which attribute of <img> names the picture file? (a) height (b) alt (c) src (d) width
- 38.🔢 In a basic web page file, which comes LAST? (a) </html> (b) </body> (c) <body> (d) <html>
- 39.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 40.True or false: HTML on its own cannot show paragraphs. (a) False (b) True
Answer key
- a closing tag
- False
- a web browser
- 3
- Our school trip
- 2
- False
- </li>
- a web server
- in the head
- <h5>
- 2
- on the browser tab
- Yes
- <img>
- 6
- an attribute
- 2
- <li>
- False
- No
- <h6>
- A tiger asleep
- answers page requests
- <h1>
- 2
- a paragraph
- shows line numbers
- games.html
- as one space
- <head>
- 8
- <a>
- in the head
- 10
- True
- src
- </html>
- an empty tag
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids