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.📄 What is the first line of an HTML5 page? (a) <head> (b) <body> (c) <html> (d) <!DOCTYPE html>
- 2.📄 Can HTML on its own make tables? (a) Yes (b) No
- 3.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
- 4.True or false: <li> is an ordered list. (a) True (b) False
-
5.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<h2>Cricket is fun.</h2>
<p>Rain today</p> - 6.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
- 7.Which of these is a closing tag? (a) <p> (b) <h1> (c) <title> (d) </p>
-
8.🔗 Which words do you click on?
<a href="news.html">Visit the site</a> (a) Maths fun (b) href (c) news.html (d) Visit the site -
9.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>My best friend</p>
<!-- <p>Good morning!</p> --> -
10.📋 What number does the browser show next to “Guava”?
<ol start="2">
<li>Litchi</li>
<li>Mango</li>
<li>Papaya</li>
<li>Guava</li>
</ol> - 11.📝 What do we need to write HTML? (a) a microphone (b) a paintbrush (c) a printer (d) a plain text editor
- 12.🔢 In a basic web page file, which comes LAST? (a) <html> (b) <!DOCTYPE html> (c) </head> (d) </html>
- 13.🔍 Which is the odd one out? (a) answers page requests (b) sends pages over the net (c) turns HTML into a page (d) stores a website’s files
- 14.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h5> or <h3>? (a) <h5> (b) <h3> (c) <h4> (d) <h6>
- 15.True or false: <a> goes in the head. (a) True (b) False
- 16.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
- 17.True or false: HTML on its own can count button clicks. (a) False (b) True
- 18.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h6> (c) <h1> (d) <br>
-
19.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Guava</li>
</ol> (a) bullets (b) numbers - 20.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 21.📄 Can HTML on its own count button clicks? (a) Yes (b) No
- 22.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
- 23.🧱 HTML gives a web page its ___. (a) speed (b) sound (c) colours (d) structure
- 24.🖼️ Which attribute of <img> tells which image to load? (a) height (b) width (c) src (d) alt
- 25.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h4> or <h2>? (a) <h5> (b) <h4> (c) <h2> (d) <h3>
- 26.🏷️ Which is the closing tag for <b>? (a) <\b> (b) </b> (c) <b/> (d) <b>
- 27.Which of these goes in the head? (a) <table> (b) <style> (c) <h1> (d) <img>
- 28.True or false: <h1> goes in the head. (a) False (b) True
- 29.Which of these goes in the body? (a) <a> (b) <link rel="stylesheet"> (c) <title> (d) <meta charset="utf-8">
-
30.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Hello, world!</p> -->
<p>Our school trip</p> - 31.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h4>? (a) <h5> (b) <h4> (c) <h6> (d) <h1>
-
32.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h2>My best friend</h2>
<h4>Good morning!</h4>
<h3>The red kite</h3>
<h3>Fun facts</h3> - 33.💬 How does an HTML comment end? (a) */ (b) --> (c) // (d) >>
- 34.Which of these is true of a code editor? (a) shows line numbers (b) hosts websites online (c) stores a website’s files (d) shows pages from the web
- 35.True or false: in <img>, height sets how tall it is. (a) True (b) False
- 36.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h3>? (a) <h3> (b) <h4> (c) <h6> (d) <h1>
-
37.📋 Does this list show bullets or numbers?
<ul>
<li>Litchi</li>
<li>Banana</li>
<li>Jamun</li>
</ul> (a) numbers (b) bullets -
38.📋 What number does the browser show next to “Papaya”?
<ol start="6">
<li>Mango</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Guava</li>
</ol> - 39.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h2>? (a) <h2> (b) <h6> (c) <h1> (d) <h4>
-
40.🔗 Which words do you click on?
<a href="news.html">Art corner</a> (a) href (b) news.html (c) Art corner (d) School news
Answer key
- <!DOCTYPE html>
- Yes
- <ul>
- False
- 2
- a slash /
- </p>
- Visit the site
- 2
- 5
- a plain text editor
- </html>
- turns HTML into a page
- <h6>
- False
- <img>
- False
- <h1>
- numbers
- has a closing tag
- No
- <ol>
- structure
- src
- <h2>
- </b>
- <style>
- False
- <a>
- 1
- <h1>
- 5
- -->
- shows line numbers
- True
- <h1>
- bullets
- 7
- <h1>
- Art corner
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids