← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 436 · 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.🔗 Which address opens when you click this link?
    <a href="https://example.com">Art corner</a>
    (a) Art corner (b) https://example.com (c) maths.html (d) art.html
  2. 2.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h3>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
  3. 3.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  4. 4.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
  5. 5.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
  6. 6.🏷️ Which is the closing tag for <h3>? (a) <h3/> (b) <\h3> (c) </h3> (d) <h3>
  7. 7.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
  8. 8.🌐 Which one shows pages from the web? (a) a web server (b) a code editor (c) a web browser
  9. 9.Which of these is an opening tag? (a) </title> (b) <body> (c) </b> (d) </h1>
  10. 10.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
    (a) width (b) A red kite (c) A tiger asleep (d) tiger.jpg
  11. 11.Which of these goes in the head? (a) <a> (b) <h1> (c) <ul> (d) <title>
  12. 12.📝 What does <hr> draw? (a) a table (b) a picture (c) a link (d) a line across the page
  13. 13.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>The red kite</p>
    <!-- <p>Cricket is fun.</p> -->
  14. 14.True or false: <link rel="stylesheet"> goes in the body. (a) True (b) False
  15. 15.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <ul> (c) <a> (d) <table>
  16. 16.True or false: HTML on its own can make headings. (a) False (b) True
  17. 17.True or false: <table> goes in the body. (a) False (b) True
  18. 18.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
  19. 19.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
  20. 20.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>My best friend</h2>
    <h2>Rain today</h2>
    <p>I love mangoes.</p>
    <p>My best friend</p>
  21. 21.🌐 Which one is where we type code? (a) a web server (b) a code editor (c) a web browser
  22. 22.💬 How does an HTML comment start? (a) // (b) <!-- (c) /* (d) #
  23. 23.🔗 Where does this link open?
    <a href="games.html" target="_blank">Maths fun</a>
    (a) in the same tab (b) in a new tab
  24. 24.🔗 Where does this link open?
    <a href="about.html">School news</a>
    (a) in a new tab (b) in the same tab
  25. 25.🏷️ Which is the closing tag for <small>? (a) <\small> (b) <small> (c) </small> (d) <small/>
  26. 26.Which of these goes in the body? (a) <h1> (b) <link rel="stylesheet"> (c) <meta charset="utf-8"> (d) <style>
  27. 27.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
  28. 28.🖼️ Which attribute of <img> sets how tall it is? (a) alt (b) height (c) src (d) width
  29. 29.🔗 Which address opens when you click this link?
    <a href="contact.html">Contact us</a>
    (a) https://example.com (b) Contact us (c) maths.html (d) contact.html
  30. 30.🔗 Where does this link open?
    <a href="games.html" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab
  31. 31.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
  32. 32.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  33. 33.🔍 Which is the odd one out? (a) sends pages over the net (b) stores a website’s files (c) answers page requests (d) shows pages from the web
  34. 34.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h3> or <h2>? (a) <h3> (b) <h2> (c) <h1> (d) <h6>
  35. 35.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
  36. 36.True or false: <meta> is an empty tag. (a) True (b) False
  37. 37.🏷️ Which is the closing tag for <u>? (a) </u> (b) <u/> (c) <\u> (d) <u>
  38. 38.📋 What number does the browser show next to “Grapes”?
    <ol>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Litchi</li>
    </ol>
  39. 39.🔗 Which attribute holds the address of a link? (a) src (b) href (c) id (d) alt
  40. 40.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head

Answer key

  1. https://example.com
  2. <h6>
  3. an empty tag
  4. 1
  5. <ul>
  6. </h3>
  7. in the body
  8. a web browser
  9. <body>
  10. A tiger asleep
  11. <title>
  12. a line across the page
  13. 2
  14. False
  15. <meta charset="utf-8">
  16. True
  17. True
  18. 1
  19. <h6>
  20. 3
  21. a code editor
  22. <!--
  23. in a new tab
  24. in the same tab
  25. </small>
  26. <h1>
  27. <h1>
  28. height
  29. contact.html
  30. in a new tab
  31. <a>
  32. <ol>
  33. shows pages from the web
  34. <h6>
  35. <ul>
  36. True
  37. </u>
  38. 2
  39. href
  40. in the body

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