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 headings are in this code?
<h1>I love mangoes.</h1>
<p>Good morning!</p>
<h3>Fun facts</h3> - 2.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 3.True or false: <ul> shows bullet points. (a) True (b) False
-
4.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>My pets</p>
<p>My pets</p> - 5.🏷️ HTML marks up text using ___. (a) keys (b) tags (c) wires (d) pixels
-
6.💬 How many paragraphs show on the page?
<p>Rain today</p>
<!-- <p>The red kite</p> -->
<p>Fun facts</p>
<!-- <p>Our school trip</p> --> - 7.📄 Can HTML on its own make links to pages? (a) Yes (b) No
- 8.True or false: HTML on its own cannot count button clicks. (a) False (b) True
- 9.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <br> (c) <h6> (d) <p>
- 10.📄 Can HTML on its own make a form? (a) Yes (b) No
- 11.Which of these is true of a code editor? (a) turns HTML into a page (b) shows line numbers (c) opens web pages for us (d) hosts websites online
-
12.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>The red kite</p>
<h2>Fun facts</h2>
<p>Good morning!</p>
<p>The red kite</p>
<h2>Rain today</h2> - 13.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
- 14.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
-
15.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>Rain today</p>
<p>My pets</p> (a) Hello, world! (b) Rain today (c) My pets - 16.📝 What does <p> make? (a) a paragraph (b) a table (c) a link (d) a picture
- 17.True or false: HTML on its own can make tables. (a) True (b) False
- 18.Which of these is an opening tag? (a) <body> (b) </p> (c) </b> (d) </h1>
- 19.🔍 Which is the odd one out? (a) hosts websites online (b) is where we type code (c) stores a website’s files (d) answers page requests
-
20.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) School news (b) href (c) Take the quiz (d) art.html -
21.📋 What number does the browser show next to “Mango”?
<ol>
<li>Litchi</li>
<li>Jamun</li>
<li>Mango</li>
</ol> - 22.True or false: <h1> is an empty tag. (a) False (b) True
-
23.📋 What number does the browser show next to “Grapes”?
<ol start="4">
<li>Jamun</li>
<li>Papaya</li>
<li>Orange</li>
<li>Guava</li>
<li>Grapes</li>
<li>Litchi</li>
</ol> - 24.🧱 HTML gives a web page its ___. (a) structure (b) speed (c) sound (d) colours
-
25.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Papaya</li>
<li>Litchi</li>
<li>Orange</li>
<li>Grapes</li>
<li>Guava</li>
<li>Jamun</li>
</ol> -
26.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>The red kite</p>
<p>My pets</p>
<p>I love mangoes.</p> (a) Rain today (b) My pets (c) The red kite (d) I love mangoes. -
27.🔍 One closing tag is missing. Which one?
<strong>Hello, world!</strong>
<h1>Our school trip
<small>I love mangoes.</small> (a) </h1> (b) </strong> (c) </small> (d) </h2> - 28.🖼️ Why do we add alt text to an image? (a) to colour it (b) to describe the image (c) to make it bigger (d) to load it faster
-
29.🔍 One closing tag is missing. Which one?
<h2>I love mangoes.
<p>Good morning!</p>
<strong>Hello, world!</strong> (a) </strong> (b) </p> (c) </h3> (d) </h2> - 30.Which of these is a closing tag? (a) <h1> (b) </b> (c) <body> (d) <p>
-
31.🔍 One closing tag is missing. Which one?
<strong>Fun facts</strong>
<b>The red kite
<u>Hello, world!</u> (a) </b> (b) </p> (c) </strong> (d) </u> - 32.🏷️ Which is the closing tag for <p>? (a) <p/> (b) </p> (c) <p> (d) <\p>
- 33.Which of these is an opening tag? (a) </p> (b) <b> (c) </h1> (d) </title>
-
34.🔗 Which words do you click on?
<a href="quiz.html">Visit the site</a> (a) quiz.html (b) Maths fun (c) href (d) Visit the site -
35.🔗 Which words do you click on?
<a href="news.html">Play games</a> (a) About us (b) Play games (c) href (d) news.html - 36.🌐 Which one hosts websites online? (a) a code editor (b) a web browser (c) a web server
- 37.💬 Why do coders write comments? (a) to leave notes (b) to add colour (c) to make links (d) to show pictures
- 38.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
- 39.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
40.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Rain today</p>
<h2>Cricket is fun.</h2>
<p>I love mangoes.</p>
<p>Fun facts</p>
Answer key
- 2
- an empty tag
- True
- 1
- tags
- 2
- Yes
- True
- <h1>
- Yes
- shows line numbers
- 4
- <
- HyperText
- Hello, world!
- a paragraph
- True
- <body>
- is where we type code
- School news
- 3
- False
- 8
- structure
- 6
- Rain today
- </h1>
- to describe the image
- </h2>
- </b>
- </b>
- </p>
- <b>
- Visit the site
- Play games
- a web server
- to leave notes
- in the head
- an opening tag
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids