← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 806 · 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.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  2. 2.🔗 Where does this link open?
    <a href="art.html" target="_blank">Play games</a>
    (a) in the same tab (b) in a new tab
  3. 3.🔠 Are headings shown in bold by default? (a) Yes (b) No
  4. 4.True or false: <p> goes in the body. (a) False (b) True
  5. 5.🔍 Which line is missing its closing tag?
    line 1: <h1>Good morning!
    line 2: <em>I love mangoes.</em>
    line 3: <strong>Fun facts</strong>
    (a) line 2 (b) line 1 (c) line 3
  6. 6.Which of these is a closing tag? (a) <b> (b) </h1> (c) <p> (d) <h1>
  7. 7.True or false: a web browser opens web pages for us. (a) True (b) False
  8. 8.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <p>Fun facts</p>
    <h2>Fun facts</h2>
  9. 9.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <p>The red kite</p>
    <p>My pets</p>
  10. 10.🔗 Where does this link open?
    <a href="about.html">Play games</a>
    (a) in a new tab (b) in the same tab
  11. 11.🖼️ Which attribute of <img> describes the picture? (a) src (b) height (c) alt (d) width
  12. 12.Which of these is true of a code editor? (a) turns HTML into a page (b) shows pages from the web (c) colours code to help us (d) hosts websites online
  13. 13.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Birds sing<br>Roses are red<br>Stars shine</p>
  14. 14.True or false: a code editor colours code to help us. (a) False (b) True
  15. 15.True or false: <ul> lists things in any order. (a) False (b) True
  16. 16.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>The red kite</p> -->
    <p>Good morning!</p>
    (a) The red kite (b) My pets (c) Good morning!
  17. 17.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>Our school trip</p>
    <p>The red kite</p>
    (a) Rain today (b) The red kite (c) Our school trip
  18. 18.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <p>My pets</p>
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <h3>Rain today</h3>
  19. 19.True or false: HTML on its own cannot make bullet lists. (a) True (b) False
  20. 20.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h1> (d) <h3>
  21. 21.True or false: HTML on its own cannot run a game loop. (a) False (b) True
  22. 22.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="150">
    (a) fort.jpg (b) An old fort (c) tiger.jpg (d) kite.png
  23. 23.📋 What number does the browser show next to “Mango”?
    <ol>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Orange</li>
    </ol>
  24. 24.📋 Does this list show bullets or numbers?
    <ol>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Banana</li>
    </ol>
    (a) bullets (b) numbers
  25. 25.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) href (b) Contact us (c) games.html (d) About us
  26. 26.True or false: <p> is an empty tag. (a) True (b) False
  27. 27.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  28. 28.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  29. 29.💬 Does the browser show comments on the page? (a) Yes (b) No
  30. 30.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) hides the link (c) makes it blank (d) makes it bold
  31. 31.🔗 Which address opens when you click this link?
    <a href="contact.html">Art corner</a>
    (a) Art corner (b) contact.html (c) https://example.com (d) maths.html
  32. 32.🔍 One closing tag is missing. Which one?
    <h3>The red kite
    <u>I love mangoes.</u>
    <em>Rain today</em>
    (a) </em> (b) </h3> (c) </i> (d) </u>
  33. 33.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a web browser (d) a calculator
  34. 34.📄 Can HTML on its own pick a random number? (a) No (b) Yes
  35. 35.True or false: HTML on its own cannot make a form. (a) True (b) False
  36. 36.Which of these has a closing tag? (a) <hr> (b) <li> (c) <meta> (d) <input>
  37. 37.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
    (a) Rain today (b) I love mangoes. (c) My best friend
  38. 38.📋 What number does the browser show next to “Mango”?
    <ol start="6">
      <li>Guava</li>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  39. 39.🌐 Which one shows line numbers? (a) a web browser (b) a web server (c) a code editor
  40. 40.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Our school trip</p> -->
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->

Answer key

  1. No
  2. in a new tab
  3. Yes
  4. True
  5. line 1
  6. </h1>
  7. True
  8. 2
  9. 1
  10. in the same tab
  11. alt
  12. colours code to help us
  13. 4
  14. True
  15. True
  16. The red kite
  17. Rain today
  18. 2
  19. False
  20. <h6>
  21. True
  22. fort.jpg
  23. 3
  24. numbers
  25. About us
  26. False
  27. an opening tag
  28. Yes
  29. No
  30. opens it in a new tab
  31. contact.html
  32. </h3>
  33. a web browser
  34. No
  35. False
  36. <li>
  37. Rain today
  38. 10
  39. a code editor
  40. 2

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