← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 51 · 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) 1 (b) 3 (c) 10 (d) 6
  2. 2.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  3. 3.🖼️ Which attribute of <img> names the picture file? (a) height (b) width (c) alt (d) src
  4. 4.🔗 Which tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
  5. 5.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Stars shine<br>Sky is blue</p>
  6. 6.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  7. 7.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <ol> (d) <br>
  8. 8.📋 What number does the browser show next to “Mango”?
    <ol start="3">
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  9. 9.Which of these is true of a code editor? (a) sends pages over the net (b) saves our .html files (c) turns HTML into a page (d) answers page requests
  10. 10.Which of these is an opening tag? (a) <title> (b) </body> (c) </p> (d) </h1>
  11. 11.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>My pets</p>
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) My pets (c) I love mangoes.
  12. 12.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Kites fly high</p>
  13. 13.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) HyperText (c) Home Text (d) Hot Tags
  14. 14.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Our school trip</p>
    <p>Hello, world!</p>
    (a) Good morning! (b) Hello, world! (c) Our school trip
  15. 15.🔗 Which address opens when you click this link?
    <a href="news.html">Visit the site</a>
    (a) Visit the site (b) news.html (c) games.html (d) quiz.html
  16. 16.Which of these goes in the head? (a) <h1> (b) <img> (c) <a> (d) <title>
  17. 17.True or false: a code editor shows pages from the web. (a) False (b) True
  18. 18.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h1>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
  19. 19.🏷️ Which is the closing tag for <u>? (a) </u> (b) <\u> (c) <u> (d) <u/>
  20. 20.True or false: <ul> goes inside ul or ol. (a) False (b) True
  21. 21.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="350">
  22. 22.Which of these is true of a web browser? (a) sends pages over the net (b) shows line numbers (c) saves our .html files (d) turns HTML into a page
  23. 23.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    <p>Hello, world!</p>
    (a) Rain today (b) Our school trip (c) Hello, world! (d) Cricket is fun.
  24. 24.True or false: HTML on its own can add up two numbers. (a) True (b) False
  25. 25.📋 What number does the browser show next to “Guava”?
    <ol start="5">
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Banana</li>
      <li>Grapes</li>
      <li>Litchi</li>
    </ol>
  26. 26.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h2> or <h6>? (a) <h3> (b) <h2> (c) <h6> (d) <h5>
  27. 27.🧱 HTML gives a web page its ___. (a) colours (b) sound (c) structure (d) speed
  28. 28.True or false: <ol> is one item of a list. (a) True (b) False
  29. 29.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>Good morning!</p> -->
    <p>My pets</p>
    <p>Rain today</p>
    (a) Hello, world! (b) My pets (c) Good morning! (d) Rain today
  30. 30.Which of these has a closing tag? (a) <ul> (b) <meta> (c) <br> (d) <hr>
  31. 31.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  32. 32.🔗 Where does this link open?
    <a href="games.html">Art corner</a>
    (a) in the same tab (b) in a new tab
  33. 33.Which of these goes in the head? (a) <table> (b) <h1> (c) <img> (d) <link rel="stylesheet">
  34. 34.True or false: in <img>, width is read by screen readers. (a) True (b) False
  35. 35.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h1>? (a) <h3> (b) <h1> (c) <h2> (d) <h6>
  36. 36.Which of these is a closing tag? (a) <b> (b) <p> (c) <h1> (d) </body>
  37. 37.🔗 Which address opens when you click this link?
    <a href="games.html">Contact us</a>
    (a) Contact us (b) games.html (c) contact.html (d) about.html
  38. 38.🔗 Which words do you click on?
    <a href="games.html">Art corner</a>
    (a) games.html (b) href (c) Art corner (d) School news
  39. 39.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="350">
  40. 40.📋 How many items does this list show?
    <ol>
      <li>Guava</li>
      <li>Litchi</li>
    </ol>

Answer key

  1. 1
  2. in the body
  3. src
  4. <a>
  5. 3
  6. a closing tag
  7. <ul>
  8. 5
  9. saves our .html files
  10. <title>
  11. I love mangoes.
  12. 2
  13. HyperText
  14. Good morning!
  15. news.html
  16. <title>
  17. False
  18. <h1>
  19. </u>
  20. False
  21. 350
  22. turns HTML into a page
  23. Rain today
  24. False
  25. 7
  26. <h6>
  27. structure
  28. False
  29. Good morning!
  30. <ul>
  31. in the body
  32. in the same tab
  33. <link rel="stylesheet">
  34. False
  35. <h1>
  36. </body>
  37. games.html
  38. Art corner
  39. 350
  40. 2

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