← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 443 · 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 items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  2. 2.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <a> (d) <img>
  3. 3.True or false: <li> is one item of a list. (a) True (b) False
  4. 4.🌐 Which one colours code to help us? (a) a web browser (b) a code editor (c) a web server
  5. 5.Which of these is a closing tag? (a) <p> (b) <h1> (c) </h1> (d) <li>
  6. 6.🔗 Where does this link open?
    <a href="contact.html">Maths fun</a>
    (a) in the same tab (b) in a new tab
  7. 7.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ol>
  8. 8.True or false: <title> is an empty tag. (a) True (b) False
  9. 9.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
  10. 10.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="350">
  11. 11.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
  12. 12.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <h3>My pets</h3>
    <p>Good morning!</p>
    <h4>The red kite</h4>
    <p>My best friend</p>
  13. 13.🔗 Where does this link open?
    <a href="news.html" target="_blank">Take the quiz</a>
    (a) in a new tab (b) in the same tab
  14. 14.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Mango</li>
    </ul>
  15. 15.💬 Does the browser show comments on the page? (a) Yes (b) No
  16. 16.📄 Where does the text of <title> appear? (a) in a big heading (b) at the bottom (c) on the browser tab (d) nowhere
  17. 17.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a href="about.html"> (d) <a src="about.html">
  18. 18.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  19. 19.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Sky is blue</p>
  20. 20.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  21. 21.📄 Can HTML on its own add up two numbers? (a) Yes (b) No
  22. 22.🔗 Which words do you click on?
    <a href="maths.html">School news</a>
    (a) maths.html (b) Take the quiz (c) href (d) School news
  23. 23.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Markup (c) Mouse (d) Machine
  24. 24.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
  25. 25.🖼️ Which tag puts a picture on a page? (a) <a> (b) <pic> (c) <img> (d) <p>
  26. 26.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h4>? (a) <h4> (b) <h5> (c) <h2> (d) <h3>
  27. 27.🔗 Which words do you click on?
    <a href="quiz.html">Take the quiz</a>
    (a) Take the quiz (b) href (c) quiz.html (d) Play games
  28. 28.True or false: in <img>, src names the picture file. (a) True (b) False
  29. 29.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
    </ol>
    (a) bullets (b) numbers
  30. 30.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="150">
  31. 31.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
  32. 32.True or false: in <img>, height shows if the image fails. (a) True (b) False
  33. 33.🏷️ HTML marks up text using ___. (a) keys (b) pixels (c) tags (d) wires
  34. 34.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
  35. 35.Which of these is a closing tag? (a) <p> (b) <b> (c) </title> (d) <h1>
  36. 36.🖼️ Which attribute of <img> tells which image to load? (a) height (b) width (c) alt (d) src
  37. 37.📝 What do we need to write HTML? (a) a printer (b) a paintbrush (c) a microphone (d) a plain text editor
  38. 38.True or false: in <img>, alt shows if the image fails. (a) False (b) True
  39. 39.📋 How many items does this list show?
    <ul>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ul>
  40. 40.🌍 Which program shows a web page to us? (a) a calculator (b) a web browser (c) a paint program (d) a music player

Answer key

  1. 6
  2. <a>
  3. True
  4. a code editor
  5. </h1>
  6. in the same tab
  7. 5
  8. False
  9. <ol>
  10. 350
  11. in the body
  12. 3
  13. in a new tab
  14. 4
  15. No
  16. on the browser tab
  17. <a href="about.html">
  18. in the head
  19. 2
  20. an opening tag
  21. No
  22. School news
  23. Markup
  24. the body
  25. <img>
  26. <h5>
  27. Take the quiz
  28. True
  29. numbers
  30. 150
  31. <h1>
  32. False
  33. tags
  34. <ul>
  35. </title>
  36. src
  37. a plain text editor
  38. True
  39. 4
  40. a web browser

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