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.True or false: <ol> shows bullet points. (a) False (b) True
- 2.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h1> or <h2>? (a) <h4> (b) <h3> (c) <h2> (d) <h1>
- 3.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <ul> (d) <br>
-
4.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<p>I love mangoes.</p>
<p>Cricket is fun.</p> - 5.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 6.True or false: HTML on its own cannot pick a random number. (a) True (b) False
- 7.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h1> or <h5>? (a) <h3> (b) <h1> (c) <h4> (d) <h5>
- 8.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <br> (c) <ul> (d) <hr>
- 9.🌐 Which one turns HTML into a page? (a) a code editor (b) a web browser (c) a web server
- 10.🌐 Which one hosts websites online? (a) a code editor (b) a web server (c) a web browser
- 11.Which of these is a closing tag? (a) <li> (b) <title> (c) </title> (d) <b>
- 12.True or false: HTML on its own can run a game loop. (a) True (b) False
- 13.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a href="about.html"> (d) <a alt="about.html">
- 14.💬 Why do coders write comments? (a) to make links (b) to leave notes (c) to show pictures (d) to add colour
- 15.True or false: in <img>, src tells which image to load. (a) True (b) False
- 16.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 17.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 18.True or false: HTML on its own cannot make headings. (a) True (b) False
-
19.🔗 Which address opens when you click this link?
<a href="art.html">About us</a> (a) news.html (b) art.html (c) quiz.html (d) About us -
20.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>Hello, world!</p>
<p>My pets</p>
<p>Fun facts</p>
<!-- <p>Good morning!</p> --> - 21.🔢 In a basic web page file, which comes first: “</html>” or “<!DOCTYPE html>”? (a) </html> (b) <!DOCTYPE html>
- 22.True or false: a web browser colours code to help us. (a) True (b) False
-
23.💬 How many paragraphs show on the page?
<p>My best friend</p>
<p>My pets</p>
<!-- <p>Good morning!</p> --> - 24.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 25.🏷️ Which is the closing tag for <b>? (a) <\b> (b) <b/> (c) </b> (d) <b>
- 26.🔍 Which is the odd one out? (a) has an address bar (b) opens web pages for us (c) turns HTML into a page (d) saves our .html files
-
27.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Litchi</li>
<li>Guava</li>
</ol> - 28.True or false: <link rel="stylesheet"> goes in the body. (a) False (b) True
- 29.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) nowhere (d) in a big heading
- 30.True or false: <title> goes in the head. (a) True (b) False
- 31.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h4> or <h1>? (a) <h1> (b) <h3> (c) <h4> (d) <h6>
- 32.💬 Does the browser show comments on the page? (a) Yes (b) No
- 33.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h4> or <h1>? (a) <h1> (b) <h4> (c) <h6> (d) <h5>
-
34.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Guava</li>
</ol> (a) numbers (b) bullets - 35.🖼️ Which attribute of <img> describes the picture? (a) width (b) src (c) height (d) alt
- 36.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h1> or <h5>? (a) <h4> (b) <h3> (c) <h1> (d) <h5>
- 37.True or false: in <img>, height sets how wide it is. (a) True (b) False
- 38.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
- 39.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h1> or <h2>? (a) <h3> (b) <h1> (c) <h2> (d) <h6>
- 40.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
Answer key
- False
- <h4>
- <ul>
- 2
- Yes
- True
- <h5>
- <ol>
- a web browser
- a web server
- </title>
- False
- <a href="about.html">
- to leave notes
- True
- a closing tag
- an opening tag
- False
- art.html
- 4
- <!DOCTYPE html>
- False
- 2
- a closing tag
- </b>
- saves our .html files
- 3
- False
- on the browser tab
- True
- <h6>
- No
- <h6>
- numbers
- alt
- <h1>
- False
- <
- <h1>
- <li>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids