← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 75 · 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.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Stars shine</p>
  2. 2.🧱 HTML gives a web page its ___. (a) colours (b) structure (c) sound (d) speed
  3. 3.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Kites fly high<br>Sky is blue<br>Stars shine<br>Roses are red</p>
  4. 4.🔗 Which address opens when you click this link?
    <a href="contact.html">Art corner</a>
    (a) Art corner (b) https://example.com (c) contact.html (d) maths.html
  5. 5.🔗 Where does this link open?
    <a href="news.html">Play games</a>
    (a) in the same tab (b) in a new tab
  6. 6.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  7. 7.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  8. 8.🔢 In a basic web page file, which comes first: “<head>” or “<html>”? (a) <html> (b) <head>
  9. 9.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) </head> (b) <html>
  10. 10.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
  11. 11.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <p>Hello, world!</p>
    <p>My pets</p>
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
  12. 12.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  13. 13.🔗 Which address opens when you click this link?
    <a href="contact.html">Take the quiz</a>
    (a) maths.html (b) https://example.com (c) contact.html (d) Take the quiz
  14. 14.📝 Does <hr> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  15. 15.True or false: <img> is an empty tag. (a) True (b) False
  16. 16.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h2>Hello, world!</h2>
    <h2>My best friend</h2>
  17. 17.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 10 (d) 3
  18. 18.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  19. 19.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Papaya</li>
    </ol>
    (a) numbers (b) bullets
  20. 20.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  21. 21.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  22. 22.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  23. 23.True or false: <ul> goes inside ul or ol. (a) True (b) False
  24. 24.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>Hello, world!</p>
    <p>The red kite</p>
    <!-- <p>Rain today</p> -->
    <p>Fun facts</p>
  25. 25.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong/> (c) </strong> (d) <strong>
  26. 26.🔗 Which words do you click on?
    <a href="games.html">Play games</a>
    (a) href (b) Play games (c) About us (d) games.html
  27. 27.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <p> (d) <li>
  28. 28.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
  29. 29.Which of these is a closing tag? (a) <h1> (b) </b> (c) <p> (d) <b>
  30. 30.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h3>
  31. 31.💬 Does the browser show comments on the page? (a) No (b) Yes
  32. 32.🔍 Which is the odd one out? (a) shows line numbers (b) saves our .html files (c) colours code to help us (d) turns HTML into a page
  33. 33.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h6> or <h2>? (a) <h2> (b) <h6> (c) <h4> (d) <h3>
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Roses are red<br>Stars shine</p>
  35. 35.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h6> or <h5>? (a) <h5> (b) <h3> (c) <h2> (d) <h6>
  36. 36.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  37. 37.📛 In <a href="x.html">, what is href? (a) an element name (b) a closing tag (c) an attribute (d) a comment
  38. 38.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
  39. 39.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) attribute (d) element
  40. 40.🔍 One closing tag is missing. Which one?
    <p>The red kite
    <h2>Our school trip</h2>
    <strong>Hello, world!</strong>
    (a) </strong> (b) </em> (c) </h2> (d) </p>

Answer key

  1. 2
  2. structure
  3. 5
  4. contact.html
  5. in the same tab
  6. in the head
  7. has a closing tag
  8. <html>
  9. <html>
  10. <a>
  11. 4
  12. an opening tag
  13. contact.html
  14. an empty tag
  15. True
  16. 3
  17. 1
  18. Yes
  19. numbers
  20. an opening tag
  21. a closing tag
  22. No
  23. False
  24. 4
  25. </strong>
  26. Play games
  27. <li>
  28. <ul>
  29. </b>
  30. <h6>
  31. No
  32. turns HTML into a page
  33. <h6>
  34. 3
  35. <h2>
  36. in the body
  37. an attribute
  38. <h6>
  39. element
  40. </p>

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