← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 253 · 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 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
  2. 2.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) Home Text (c) High Tech (d) HyperText
  3. 3.True or false: <ul> lists things in any order. (a) False (b) True
  4. 4.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ul>
  5. 5.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a slash / (c) a dollar $ (d) a dot .
  6. 6.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <p> (d) <img>
  7. 7.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) Riya’s Recipes (c) body (d) All about me
  8. 8.💬 Does the browser show comments on the page? (a) Yes (b) No
  9. 9.🔍 Which is the odd one out? (a) is where we type code (b) shows line numbers (c) has an address bar (d) colours code to help us
  10. 10.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
  11. 11.💬 Why do coders write comments? (a) to make links (b) to show pictures (c) to add colour (d) to leave notes
  12. 12.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>The red kite</p>
    <h3>Hello, world!</h3>
    <p>I love mangoes.</p>
  13. 13.Which of these is a closing tag? (a) <b> (b) <h1> (c) </p> (d) <title>
  14. 14.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
  15. 15.🔤 In “HTML”, what does the L stand for? (a) Language (b) Laptop (c) Link (d) Line
  16. 16.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <p>I love mangoes.</p>
    <p>The red kite</p>
  17. 17.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>Fun facts</p>
    <p>My pets</p>
  18. 18.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <!-- <p>My pets</p> -->
    <p>My best friend</p>
    <p>Our school trip</p>
    (a) My best friend (b) Our school trip (c) Hello, world! (d) My pets
  19. 19.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
  20. 20.💬 How does an HTML comment end? (a) */ (b) >> (c) // (d) -->
  21. 21.Which of these is a closing tag? (a) <p> (b) <b> (c) </h1> (d) <li>
  22. 22.🔍 One closing tag is missing. Which one?
    <h3>Cricket is fun.
    <small>My pets</small>
    <p>Fun facts</p>
    (a) </i> (b) </p> (c) </small> (d) </h3>
  23. 23.True or false: in <img>, src tells which image to load. (a) False (b) True
  24. 24.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <b> (c) <\b> (d) </b>
  25. 25.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h3>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
  26. 26.Which of these is true of a web browser? (a) sends pages over the net (b) hosts websites online (c) turns HTML into a page (d) answers page requests
  27. 27.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Easy snacks (b) I like to read. (c) index.html (d) Cricket Club
  28. 28.🔗 Which address opens when you click this link?
    <a href="art.html">Contact us</a>
    (a) news.html (b) quiz.html (c) art.html (d) Contact us
  29. 29.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Guava</li>
    </ul>
  30. 30.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="100">
    (a) Our school bus (b) bus.jpg (c) width (d) An old fort
  31. 31.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>Rain today</p>
    <p>My pets</p>
    <!-- <p>I love mangoes.</p> -->
    (a) Rain today (b) Fun facts (c) My pets (d) I love mangoes.
  32. 32.🏷️ Which is the closing tag for <strong>? (a) <strong> (b) </strong> (c) <\strong> (d) <strong/>
  33. 33.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
    <p>Good morning!</p>
  34. 34.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  35. 35.🔗 Where does this link open?
    <a href="contact.html" target="_blank">Art corner</a>
    (a) in a new tab (b) in the same tab
  36. 36.🔍 Which is the odd one out? (a) stores a website’s files (b) sends pages over the net (c) opens web pages for us (d) answers page requests
  37. 37.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
  38. 38.🌐 Which one shows line numbers? (a) a code editor (b) a web server (c) a web browser
  39. 39.Which of these is a closing tag? (a) <h1> (b) <title> (c) </b> (d) <b>
  40. 40.Which of these has a closing tag? (a) <p> (b) <br> (c) <img> (d) <input>

Answer key

  1. opens it in a new tab
  2. HyperText
  3. True
  4. 6
  5. a slash /
  6. <meta charset="utf-8">
  7. All about me
  8. No
  9. has an address bar
  10. <h6>
  11. to leave notes
  12. 2
  13. </p>
  14. <ul>
  15. Language
  16. 2
  17. 2
  18. My pets
  19. <
  20. -->
  21. </h1>
  22. </h3>
  23. True
  24. </b>
  25. <h1>
  26. turns HTML into a page
  27. Cricket Club
  28. art.html
  29. 4
  30. Our school bus
  31. I love mangoes.
  32. </strong>
  33. 2
  34. a closing tag
  35. in a new tab
  36. opens web pages for us
  37. <a>
  38. a code editor
  39. </b>
  40. <p>

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