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.📄 Can HTML on its own pick a random number? (a) Yes (b) No
- 2.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 3.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h6> or <h2>? (a) <h5> (b) <h6> (c) <h2> (d) <h3>
- 4.🔍 Which is the odd one out? (a) sends pages over the net (b) has an address bar (c) hosts websites online (d) answers page requests
- 5.Which of these goes in the body? (a) <a> (b) <title> (c) <meta charset="utf-8"> (d) <link rel="stylesheet">
- 6.📄 Which part holds everything you see on the page? (a) the body (b) the title (c) the doctype (d) the head
- 7.📋 Which list tag shows bullet points? (a) <ul> (b) <li> (c) <ol>
- 8.📝 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
- 9.🔍 Which is the odd one out? (a) turns HTML into a page (b) opens web pages for us (c) shows pages from the web (d) saves our .html files
- 10.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h5> or <h1>? (a) <h6> (b) <h5> (c) <h1> (d) <h4>
- 11.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h6> or <h2>? (a) <h6> (b) <h2> (c) <h1> (d) <h3>
-
12.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Roses are red</p> - 13.📄 Where does the text of <title> appear? (a) in a big heading (b) at the bottom (c) nowhere (d) on the browser tab
-
14.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Grapes</li>
<li>Litchi</li>
<li>Mango</li>
<li>Papaya</li>
</ol> - 15.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 16.True or false: <li> is an unordered list. (a) True (b) False
- 17.🔍 Which is the odd one out? (a) shows line numbers (b) answers page requests (c) stores a website’s files (d) sends pages over the net
-
18.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Birds sing</p> - 19.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h4> or <h3>? (a) <h5> (b) <h2> (c) <h3> (d) <h4>
-
20.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>The red kite</p> -->
<p>I love mangoes.</p>
<p>My pets</p>
<!-- <p>Hello, world!</p> --> -
21.💬 Which text will NOT show on the page?
<p>My best friend</p>
<!-- <p>My pets</p> -->
<p>Good morning!</p> (a) My best friend (b) Good morning! (c) My pets - 22.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h6> (c) <h1> (d) <p>
- 23.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
- 24.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h4> or <h3>? (a) <h1> (b) <h6> (c) <h4> (d) <h3>
- 25.📄 Can HTML on its own keep a high score? (a) Yes (b) No
- 26.🔗 What does HyperText mean? (a) text with links (b) secret text (c) text in colour (d) very big text
- 27.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) <html> (b) </head>
- 28.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) </h1> (c) <h1> (d) <h1/>
- 29.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h3> or <h5>? (a) <h4> (b) <h6> (c) <h5> (d) <h3>
- 30.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 31.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “<html>”? (a) <!DOCTYPE html> (b) <html>
-
32.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<!-- <p>Good morning!</p> -->
<p>My pets</p> (a) My pets (b) Our school trip (c) Good morning! - 33.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) attribute (c) address (d) editor
- 34.🔠 Which tag is the least important heading? (a) <p> (b) <h1> (c) <h3> (d) <h6>
- 35.True or false: HTML on its own can keep a high score. (a) False (b) True
- 36.📝 What does <br> do? (a) makes text bold (b) starts a new line (c) adds a picture (d) makes a list
-
37.🔗 Which address opens when you click this link?
<a href="maths.html">Contact us</a> (a) Contact us (b) maths.html (c) art.html (d) news.html -
38.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="50"> (a) kite.png (b) An old fort (c) fort.jpg (d) tiger.jpg -
39.🔍 One closing tag is missing. Which one?
<strong>Rain today</strong>
<b>My best friend
<h1>Fun facts</h1> (a) </strong> (b) </i> (c) </b> (d) </h1> - 40.💬 How does an HTML comment end? (a) */ (b) --> (c) >> (d) //
Answer key
- No
- Yes
- <h2>
- has an address bar
- <a>
- the body
- <ul>
- as one space
- saves our .html files
- <h1>
- <h1>
- 2
- on the browser tab
- 5
- a closing tag
- False
- shows line numbers
- 2
- <h5>
- 2
- My pets
- <h1>
- in the head
- <h6>
- No
- text with links
- <html>
- </h1>
- <h3>
- has a closing tag
- <!DOCTYPE html>
- Good morning!
- element
- <h6>
- False
- starts a new line
- maths.html
- fort.jpg
- </b>
- -->
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids