← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 683 · 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.True or false: HTML on its own can make tables. (a) True (b) False
  2. 2.True or false: in <img>, width sets how wide it is. (a) True (b) False
  3. 3.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  4. 4.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) < (d) {
  5. 5.Which of these is a closing tag? (a) <body> (b) <li> (c) </b> (d) <h1>
  6. 6.🔗 Where does this link open?
    <a href="art.html">Art corner</a>
    (a) in a new tab (b) in the same tab
  7. 7.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  8. 8.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h3>My best friend</h3>
    <p>Good morning!</p>
    <h2>Cricket is fun.</h2>
    <h3>Cricket is fun.</h3>
  9. 9.Which of these is an empty tag? (a) <meta> (b) <ul> (c) <title> (d) <li>
  10. 10.Which of these goes in the head? (a) <a> (b) <p> (c) <link rel="stylesheet"> (d) <img>
  11. 11.🌐 Which one has an address bar? (a) a web server (b) a web browser (c) a code editor
  12. 12.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>The red kite</p> -->
  13. 13.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
  14. 14.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  15. 15.🔍 Which line is missing its closing tag?
    line 1: <em>Hello, world!</em>
    line 2: <h2>Fun facts
    line 3: <small>My best friend</small>
    (a) line 3 (b) line 2 (c) line 1
  16. 16.True or false: a code editor colours code to help us. (a) True (b) False
  17. 17.📝 What does <br> do? (a) starts a new line (b) makes a list (c) makes text bold (d) adds a picture
  18. 18.📄 Can HTML on its own make a form? (a) Yes (b) No
  19. 19.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
  20. 20.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  21. 21.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>Good morning!</p>
    <p>My best friend</p>
    (a) Good morning! (b) My best friend (c) Rain today
  22. 22.🔗 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
  23. 23.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h6>? (a) <h4> (b) <h6> (c) <h3> (d) <h2>
  24. 24.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  25. 25.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
  26. 26.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Papaya</li>
    </ol>
  27. 27.Which of these is a closing tag? (a) </body> (b) <body> (c) <li> (d) <p>
  28. 28.True or false: HTML on its own cannot keep a high score. (a) True (b) False
  29. 29.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <p> (d) <ol>
  30. 30.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  31. 31.True or false: <ul> is one item of a list. (a) True (b) False
  32. 32.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
  33. 33.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Rain today</p>
    <p>My best friend</p>
  34. 34.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Good morning!</p>
    <p>I love mangoes.</p>
    (a) Good morning! (b) Our school trip (c) I love mangoes.
  35. 35.True or false: <h1> is an empty tag. (a) False (b) True
  36. 36.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  37. 37.🔗 Which address opens when you click this link?
    <a href="contact.html">Contact us</a>
    (a) maths.html (b) contact.html (c) Contact us (d) https://example.com
  38. 38.True or false: <li> lists things in any order. (a) True (b) False
  39. 39.Which of these is true of a web server? (a) shows pages from the web (b) shows line numbers (c) has an address bar (d) answers page requests
  40. 40.True or false: in <img>, src names the picture file. (a) True (b) False

Answer key

  1. True
  2. True
  3. has a closing tag
  4. <
  5. </b>
  6. in the same tab
  7. Yes
  8. 4
  9. <meta>
  10. <link rel="stylesheet">
  11. a web browser
  12. 1
  13. Yes
  14. Yes
  15. line 2
  16. True
  17. starts a new line
  18. Yes
  19. 2
  20. No
  21. Rain today
  22. opens it in a new tab
  23. <h2>
  24. 1
  25. <ul>
  26. 3
  27. </body>
  28. True
  29. <li>
  30. an opening tag
  31. False
  32. 1
  33. 1
  34. Our school trip
  35. False
  36. an opening tag
  37. contact.html
  38. False
  39. answers page requests
  40. True

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