← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 720 · 40 questions
TalentJR

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. 1.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
  2. 2.📋 Which list tag is one item of a list? (a) <ol> (b) <ul> (c) <li>
  3. 3.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  4. 4.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) games.html (b) Art corner (c) about.html (d) contact.html
  5. 5.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Guava</li>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Orange</li>
    </ul>
  6. 6.🔠 Which heading shows the SMALLEST text: <h5>, <h4>, <h6> or <h2>? (a) <h6> (b) <h5> (c) <h4> (d) <h2>
  7. 7.🔗 Where does this link open?
    <a href="about.html">Art corner</a>
    (a) in the same tab (b) in a new tab
  8. 8.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h1> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h3>
  9. 9.🌐 Which one answers page requests? (a) a code editor (b) a web browser (c) a web server
  10. 10.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h5> or <h6>? (a) <h1> (b) <h5> (c) <h3> (d) <h6>
  11. 11.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Line (c) Link (d) Language
  12. 12.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
  13. 13.📝 What does <hr> draw? (a) a table (b) a link (c) a line across the page (d) a picture
  14. 14.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
  15. 15.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <p>The red kite</p>
    <!-- <p>Fun facts</p> -->
  16. 16.🔍 Which is the odd one out? (a) has an address bar (b) shows line numbers (c) shows pages from the web (d) opens web pages for us
  17. 17.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
  18. 18.🔗 Which words do you click on?
    <a href="https://example.com">Play games</a>
    (a) https://example.com (b) About us (c) Play games (d) href
  19. 19.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  20. 20.True or false: a web server turns HTML into a page. (a) False (b) True
  21. 21.💬 Does the browser show comments on the page? (a) Yes (b) No
  22. 22.💬 Why do coders write comments? (a) to show pictures (b) to add colour (c) to leave notes (d) to make links
  23. 23.🔗 Where does this link open?
    <a href="about.html">About us</a>
    (a) in a new tab (b) in the same tab
  24. 24.🔗 Which words do you click on?
    <a href="contact.html">Take the quiz</a>
    (a) contact.html (b) Play games (c) Take the quiz (d) href
  25. 25.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Kites fly high</p>
  26. 26.Which of these is an empty tag? (a) <ul> (b) <title> (c) <img> (d) <p>
  27. 27.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
  28. 28.🔗 Which address opens when you click this link?
    <a href="art.html">Contact us</a>
    (a) quiz.html (b) art.html (c) news.html (d) Contact us
  29. 29.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <h2>Hello, world!</h2>
    <p>My pets</p>
    <h4>Hello, world!</h4>
  30. 30.🖼️ Which picture file does the browser load?
    <img src="map.png" alt="Map of India" width="250">
    (a) dog.jpg (b) cake.jpg (c) Map of India (d) map.png
  31. 31.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Match report (b) Class 7 Blog (c) Mars is red. (d) body
  32. 32.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <h1> (c) <meta charset="utf-8"> (d) <title>
  33. 33.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
  34. 34.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
  35. 35.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Sky is blue<br>Kites fly high</p>
  36. 36.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
  37. 37.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  38. 38.🔍 Which is the odd one out? (a) stores a website’s files (b) hosts websites online (c) sends pages over the net (d) shows pages from the web
  39. 39.🔍 Which line is missing its closing tag?
    line 1: <u>Hello, world!</u>
    line 2: <h2>The red kite
    line 3: <h1>I love mangoes.</h1>
    (a) line 3 (b) line 2 (c) line 1
  40. 40.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <p>Rain today</p>
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <p>My best friend</p>

Answer key

  1. 1
  2. <li>
  3. an opening tag
  4. games.html
  5. 5
  6. <h6>
  7. in the same tab
  8. <h1>
  9. a web server
  10. <h1>
  11. Language
  12. a code editor
  13. a line across the page
  14. a code editor
  15. 2
  16. shows line numbers
  17. <ol>
  18. Play games
  19. No
  20. False
  21. No
  22. to leave notes
  23. in the same tab
  24. Take the quiz
  25. 2
  26. <img>
  27. Yes
  28. art.html
  29. 3
  30. map.png
  31. Match report
  32. <h1>
  33. 3
  34. <ul>
  35. 3
  36. <img>
  37. has a closing tag
  38. shows pages from the web
  39. line 2
  40. 1

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids