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 heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h1>? (a) <h2> (b) <h1> (c) <h3> (d) <h4>
- 2.📄 Which part holds everything you see on the page? (a) the body (b) the head (c) the title (d) the doctype
- 3.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
- 4.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
-
5.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>The red kite</p>
<p>I love mangoes.</p> (a) Rain today (b) I love mangoes. (c) The red kite -
6.🔗 Where does this link open?
<a href="art.html" target="_blank">Maths fun</a> (a) in a new tab (b) in the same tab - 7.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 8.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) element (d) attribute
- 9.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) </h1> (c) <h1> (d) <\h1>
- 10.True or false: in <img>, width sets how wide it is. (a) False (b) True
- 11.🏷️ Which is the closing tag for <b>? (a) <b> (b) <b/> (c) <\b> (d) </b>
- 12.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 13.True or false: HTML on its own can make headings. (a) False (b) True
- 14.📄 Where does the text of <title> appear? (a) nowhere (b) at the bottom (c) on the browser tab (d) in a big heading
- 15.Which of these is an empty tag? (a) <b> (b) <title> (c) <h1> (d) <meta>
- 16.Which of these is true of a web server? (a) saves our .html files (b) opens web pages for us (c) answers page requests (d) has an address bar
- 17.True or false: <b> has a closing tag. (a) False (b) True
-
18.🔗 Which words do you click on?
<a href="https://example.com">Art corner</a> (a) https://example.com (b) School news (c) href (d) Art corner -
19.🔍 One closing tag is missing. Which one?
<i>Hello, world!</i>
<h2>The red kite
<b>Rain today</b> (a) </i> (b) </b> (c) </small> (d) </h2> - 20.True or false: a code editor shows line numbers. (a) False (b) True
- 21.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 22.True or false: <h1> goes in the body. (a) True (b) False
- 23.🔗 Which tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
- 24.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h6>? (a) <h6> (b) <h4> (c) <h5> (d) <h3>
- 25.Which of these is an opening tag? (a) <b> (b) </h1> (c) </p> (d) </title>
-
26.📝 How many paragraphs does this code make?
<p>The red kite</p>
<p>I love mangoes.</p>
<p>The red kite</p> - 27.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h1> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h3>
-
28.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="350"> (a) cake.jpg (b) A red kite (c) kite.png (d) map.png - 29.📝 What does <hr> draw? (a) a line across the page (b) a picture (c) a link (d) a table
- 30.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
31.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Good morning!</p> -->
<p>My pets</p>
<p>Fun facts</p> (a) Fun facts (b) Good morning! (c) I love mangoes. (d) My pets - 32.True or false: <img> goes in the body. (a) True (b) False
- 33.True or false: <ul> goes in the head. (a) True (b) False
-
34.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="fort.jpg" alt="An old fort" width="50"> (a) width (b) fort.jpg (c) A tiger asleep (d) An old fort - 35.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
-
36.🔗 Which address opens when you click this link?
<a href="news.html">Contact us</a> (a) quiz.html (b) games.html (c) news.html (d) Contact us - 37.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
-
38.💬 Which text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>I love mangoes.</p>
<p>My pets</p>
<p>My best friend</p> (a) My pets (b) The red kite (c) I love mangoes. (d) My best friend -
39.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h2>My pets</h2>
<p>The red kite</p> - 40.True or false: a web server stores a website’s files. (a) False (b) True
Answer key
- <h1>
- the body
- False
- <h1>
- Rain today
- in a new tab
- No
- element
- </h1>
- True
- </b>
- Yes
- True
- on the browser tab
- <meta>
- answers page requests
- True
- Art corner
- </h2>
- True
- an empty tag
- True
- <a>
- <h3>
- <b>
- 3
- <h1>
- kite.png
- a line across the page
- an opening tag
- Good morning!
- True
- False
- An old fort
- <ul>
- news.html
- a paragraph
- The red kite
- 2
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids