← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 376 · 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.🔗 What does HyperText mean? (a) very big text (b) secret text (c) text in colour (d) text with links
  2. 2.🔍 One closing tag is missing. Which one?
    <strong>My pets</strong>
    <i>Cricket is fun.
    <h2>My best friend</h2>
    (a) </h2> (b) </i> (c) </p> (d) </strong>
  3. 3.🔗 Which address opens when you click this link?
    <a href="art.html">Maths fun</a>
    (a) art.html (b) quiz.html (c) Maths fun (d) news.html
  4. 4.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
  5. 5.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h2>? (a) <h5> (b) <h6> (c) <h2> (d) <h1>
  6. 6.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>I love mangoes.</p>
    <h3>I love mangoes.</h3>
  7. 7.📄 Can HTML on its own show paragraphs? (a) Yes (b) No
  8. 8.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
    (a) numbers (b) bullets
  9. 9.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  10. 10.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) id (d) src
  11. 11.Which of these is an opening tag? (a) </h1> (b) </title> (c) </body> (d) <b>
  12. 12.Which of these is true of a web server? (a) stores a website’s files (b) shows pages from the web (c) saves our .html files (d) has an address bar
  13. 13.🔗 Which address opens when you click this link?
    <a href="quiz.html">Maths fun</a>
    (a) games.html (b) quiz.html (c) about.html (d) Maths fun
  14. 14.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
  15. 15.True or false: a web browser is where we type code. (a) False (b) True
  16. 16.🔍 Which is the odd one out? (a) is where we type code (b) opens web pages for us (c) shows line numbers (d) colours code to help us
  17. 17.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Orange</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ol>
  18. 18.💬 How does an HTML comment end? (a) */ (b) --> (c) // (d) >>
  19. 19.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
    (a) numbers (b) bullets
  20. 20.📛 In <a href="x.html">, what is href? (a) a closing tag (b) a comment (c) an attribute (d) an element name
  21. 21.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="50">
    (a) A red kite (b) map.png (c) kite.png (d) cake.jpg
  22. 22.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    <p>Fun facts</p>
    <h2>My pets</h2>
    <h2>Cricket is fun.</h2>
  23. 23.Which of these goes in the head? (a) <a> (b) <img> (c) <meta charset="utf-8"> (d) <ul>
  24. 24.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="100">
  25. 25.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h6> or <h4>? (a) <h1> (b) <h4> (c) <h2> (d) <h6>
  26. 26.🔍 One closing tag is missing. Which one?
    <p>Fun facts
    <i>Good morning!</i>
    <strong>Hello, world!</strong>
    (a) </h2> (b) </strong> (c) </p> (d) </i>
  27. 27.True or false: <title> goes in the head. (a) True (b) False
  28. 28.🔗 Which address opens when you click this link?
    <a href="contact.html">About us</a>
    (a) https://example.com (b) contact.html (c) About us (d) maths.html
  29. 29.True or false: <li> is an unordered list. (a) True (b) False
  30. 30.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  31. 31.📋 Which list suits a shopping list in any order? (a) <br> (b) <ul> (c) <hr> (d) <ol>
  32. 32.True or false: <title> is an empty tag. (a) True (b) False
  33. 33.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="50">
    (a) The full moon (b) A happy dog (c) width (d) dog.jpg
  34. 34.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h1>? (a) <h3> (b) <h6> (c) <h1> (d) <h5>
  35. 35.Which of these goes in the body? (a) <title> (b) <style> (c) <link rel="stylesheet"> (d) <ul>
  36. 36.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
  37. 37.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Welcome! (b) I like to read. (c) My Hobbies (d) index.html
  38. 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
  39. 39.🖼️ Which attribute of <img> names the picture file? (a) height (b) src (c) alt (d) width
  40. 40.🔍 Which line is missing its closing tag?
    line 1: <i>I love mangoes.
    line 2: <small>Hello, world!</small>
    line 3: <h1>Fun facts</h1>
    (a) line 1 (b) line 2 (c) line 3

Answer key

  1. text with links
  2. </i>
  3. art.html
  4. 1
  5. <h1>
  6. 2
  7. Yes
  8. numbers
  9. No
  10. href
  11. <b>
  12. stores a website’s files
  13. quiz.html
  14. a paragraph
  15. False
  16. opens web pages for us
  17. 3
  18. -->
  19. numbers
  20. an attribute
  21. kite.png
  22. 4
  23. <meta charset="utf-8">
  24. 100
  25. <h6>
  26. </p>
  27. True
  28. contact.html
  29. False
  30. <ul>
  31. <ul>
  32. False
  33. A happy dog
  34. <h1>
  35. <ul>
  36. a web server
  37. My Hobbies
  38. a slash /
  39. src
  40. line 1

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