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 items does this list show?
<ol>
<li>Grapes</li>
<li>Banana</li>
<li>Guava</li>
<li>Jamun</li>
<li>Orange</li>
<li>Litchi</li>
</ol> - 2.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) on the browser tab (d) nowhere
- 3.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
-
4.💬 How many paragraphs show on the page?
<p>Rain today</p>
<!-- <p>My best friend</p> -->
<p>The red kite</p> - 5.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
- 6.True or false: in <img>, alt shows if the image fails. (a) False (b) True
- 7.Which of these is true of a web browser? (a) has an address bar (b) stores a website’s files (c) is where we type code (d) shows line numbers
-
8.💬 How many paragraphs show on the page?
<p>My best friend</p>
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> --> - 9.True or false: <ul> has a closing tag. (a) True (b) False
-
10.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Roses are red</p> - 11.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
- 12.True or false: a code editor answers page requests. (a) False (b) True
-
13.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) Art corner (b) games.html (c) about.html (d) contact.html - 14.True or false: <ul> goes inside ul or ol. (a) False (b) True
- 15.Which of these is true of a web server? (a) shows pages from the web (b) has an address bar (c) colours code to help us (d) stores a website’s files
- 16.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h6> or <h3>? (a) <h4> (b) <h1> (c) <h3> (d) <h6>
-
17.🔗 Where does this link open?
<a href="contact.html" target="_blank">Play games</a> (a) in a new tab (b) in the same tab - 18.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
- 19.📄 Can HTML on its own make headings? (a) No (b) Yes
-
20.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<p>My pets</p> (a) I love mangoes. (b) My pets (c) My best friend - 21.Which of these is an opening tag? (a) </title> (b) </h1> (c) <h1> (d) </p>
- 22.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
- 23.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
- 24.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a comment (d) a closing tag
- 25.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h2> (b) <h4> (c) <h6> (d) <h3>
-
26.🔗 Which words do you click on?
<a href="about.html">Take the quiz</a> (a) about.html (b) href (c) Take the quiz (d) Play games - 27.💬 How does an HTML comment start? (a) <!-- (b) # (c) /* (d) //
- 28.🔤 In “HTML”, what does the L stand for? (a) Line (b) Link (c) Language (d) Laptop
- 29.Which of these is a closing tag? (a) <b> (b) <p> (c) <body> (d) </b>
- 30.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h4> or <h6>? (a) <h1> (b) <h4> (c) <h5> (d) <h6>
- 31.Which of these is a closing tag? (a) <p> (b) <body> (c) <b> (d) </li>
- 32.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) </h2> (c) <h2> (d) <h2/>
- 33.🏷️ Every HTML tag starts with which sign? (a) { (b) [ (c) ( (d) <
-
34.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Guava</li>
</ol> - 35.True or false: <meta charset="utf-8"> goes in the head. (a) False (b) True
-
36.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<h4>Rain today</h4>
<h4>Our school trip</h4>
<h3>My pets</h3>
<p>The red kite</p> - 37.True or false: <input> has a closing tag. (a) True (b) False
- 38.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
-
39.📋 What number does the browser show next to “Papaya”?
<ol start="8">
<li>Mango</li>
<li>Orange</li>
<li>Litchi</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Jamun</li>
</ol> - 40.💬 Why do coders write comments? (a) to add colour (b) to leave notes (c) to show pictures (d) to make links
Answer key
- 6
- on the browser tab
- HyperText
- 2
- a web browser
- True
- has an address bar
- 2
- True
- 2
- 1
- False
- games.html
- False
- stores a website’s files
- <h6>
- in a new tab
- <a>
- Yes
- My best friend
- <h1>
- <ul>
- in the head
- an attribute
- <h6>
- Take the quiz
- <!--
- Language
- </b>
- <h6>
- </li>
- </h2>
- <
- 2
- True
- 4
- False
- <ul>
- 11
- to leave notes
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids