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.🔗 Which words do you click on?
<a href="quiz.html">School news</a> (a) href (b) Take the quiz (c) School news (d) quiz.html - 2.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h1> or <h6>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
- 3.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 10 (d) 6
- 4.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) nowhere (d) in a big heading
- 5.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 6.True or false: in <img>, src shows if the image fails. (a) False (b) True
-
7.🔗 Which address opens when you click this link?
<a href="maths.html">Play games</a> (a) Play games (b) art.html (c) news.html (d) maths.html - 8.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
- 9.True or false: in <img>, width tells which image to load. (a) True (b) False
-
10.🔗 Which address opens when you click this link?
<a href="about.html">Maths fun</a> (a) https://example.com (b) about.html (c) Maths fun (d) contact.html - 11.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h2>? (a) <h4> (b) <h1> (c) <h5> (d) <h2>
-
12.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>Rain today</p>
<p>The red kite</p> - 13.Which of these is an opening tag? (a) </p> (b) </b> (c) <li> (d) </h1>
- 14.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
-
15.📋 How many items does this list show?
<ul>
<li>Banana</li>
<li>Orange</li>
<li>Mango</li>
<li>Litchi</li>
<li>Grapes</li>
<li>Jamun</li>
</ul> - 16.💬 Does the browser show comments on the page? (a) No (b) Yes
-
17.📋 How many items does this list show?
<ul>
<li>Guava</li>
<li>Jamun</li>
<li>Grapes</li>
<li>Banana</li>
</ul> - 18.🧱 HTML gives a web page its ___. (a) speed (b) structure (c) colours (d) sound
- 19.🔠 Which tag is used for the main title on a page? (a) <br> (b) <p> (c) <h6> (d) <h1>
-
20.🔍 One closing tag is missing. Which one?
<h1>Cricket is fun.</h1>
<u>I love mangoes.</u>
<small>Hello, world! (a) </u> (b) </h1> (c) </small> (d) </em> - 21.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
- 22.Which of these is true of a code editor? (a) answers page requests (b) saves our .html files (c) stores a website’s files (d) opens web pages for us
-
23.📋 How many items does this list show?
<ul>
<li>Orange</li>
<li>Papaya</li>
<li>Guava</li>
<li>Grapes</li>
</ul> - 24.Which of these is true of a web browser? (a) colours code to help us (b) answers page requests (c) turns HTML into a page (d) is where we type code
- 25.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) <h2> (c) <\h2> (d) </h2>
-
26.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Mango</li>
<li>Grapes</li>
</ol> - 27.🌐 Which one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
- 28.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
-
29.🔗 Where does this link open?
<a href="news.html">School news</a> (a) in a new tab (b) in the same tab - 30.True or false: HTML on its own cannot make tables. (a) False (b) True
-
31.🔍 One closing tag is missing. Which one?
<em>My best friend
<p>Good morning!</p>
<u>Fun facts</u> (a) </u> (b) </em> (c) </b> (d) </p> - 32.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
-
33.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>The red kite</h2>
<p>The red kite</p>
<h2>I love mangoes.</h2>
<h2>Fun facts</h2> - 34.🔍 Which is the odd one out? (a) shows pages from the web (b) has an address bar (c) turns HTML into a page (d) colours code to help us
- 35.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
36.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>My drawings</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) index.html (c) My drawings (d) My Hobbies - 37.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h2> or <h3>? (a) <h1> (b) <h5> (c) <h2> (d) <h3>
-
38.📋 What number does the browser show next to “Papaya”?
<ol>
<li>Mango</li>
<li>Orange</li>
<li>Jamun</li>
<li>Banana</li>
<li>Papaya</li>
</ol> - 39.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h4> or <h1>? (a) <h1> (b) <h2> (c) <h6> (d) <h4>
- 40.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h5>? (a) <h4> (b) <h5> (c) <h3> (d) <h2>
Answer key
- School news
- <h6>
- 6
- on the browser tab
- Yes
- False
- maths.html
- a web browser
- False
- about.html
- <h1>
- 3
- <li>
- 1
- 6
- No
- 4
- structure
- <h1>
- </small>
- <ul>
- saves our .html files
- 4
- turns HTML into a page
- </h2>
- 3
- a web browser
- in the head
- in the same tab
- False
- </em>
- Yes
- 2
- colours code to help us
- an opening tag
- My Hobbies
- <h5>
- 5
- <h1>
- <h5>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids