← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 142 · 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.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a href="about.html">
  2. 2.True or false: <li> lists steps in order. (a) True (b) False
  3. 3.🔗 Where does this link open?
    <a href="games.html" target="_blank">Contact us</a>
    (a) in a new tab (b) in the same tab
  4. 4.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>Good morning!</h2>
    <p>Hello, world!</p>
    <p>Fun facts</p>
  5. 5.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Orange</li>
    </ol>
  6. 6.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  7. 7.📋 What number does the browser show next to “Jamun”?
    <ol start="6">
      <li>Orange</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  8. 8.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Rivers flow<br>Birds sing<br>Kites fly high</p>
  9. 9.📄 What is the first line of an HTML5 page? (a) <head> (b) <html> (c) <body> (d) <!DOCTYPE html>
  10. 10.📋 Does this list show bullets or numbers?
    <ul>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Banana</li>
    </ul>
    (a) numbers (b) bullets
  11. 11.🔗 Which words do you click on?
    <a href="https://example.com">Art corner</a>
    (a) href (b) Art corner (c) https://example.com (d) School news
  12. 12.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <!-- <p>My best friend</p> -->
    <p>Rain today</p>
    <!-- <p>Hello, world!</p> -->
  13. 13.Which of these is a closing tag? (a) <body> (b) </h1> (c) <b> (d) <title>
  14. 14.🧱 HTML gives a web page its ___. (a) colours (b) speed (c) structure (d) sound
  15. 15.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Guava</li>
    </ul>
  16. 16.True or false: <li> is an ordered list. (a) True (b) False
  17. 17.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  18. 18.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h1> or <h5>? (a) <h5> (b) <h3> (c) <h1> (d) <h4>
  19. 19.True or false: HTML on its own can make bullet lists. (a) True (b) False
  20. 20.Which of these is true of a code editor? (a) sends pages over the net (b) saves our .html files (c) hosts websites online (d) opens web pages for us
  21. 21.🔗 Which words do you click on?
    <a href="news.html">Maths fun</a>
    (a) Art corner (b) href (c) Maths fun (d) news.html
  22. 22.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h6> (c) <h1> (d) <p>
  23. 23.🏷️ Which is the closing tag for <b>? (a) <b> (b) <\b> (c) <b/> (d) </b>
  24. 24.🔍 Which is the odd one out? (a) hosts websites online (b) stores a website’s files (c) shows pages from the web (d) sends pages over the net
  25. 25.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h3>? (a) <h2> (b) <h6> (c) <h1> (d) <h3>
  26. 26.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Rain today</p>
    <p>I love mangoes.</p>
  27. 27.🏷️ Every HTML tag starts with which sign? (a) < (b) { (c) ( (d) [
  28. 28.🔗 Which words do you click on?
    <a href="games.html">Maths fun</a>
    (a) Art corner (b) games.html (c) href (d) Maths fun
  29. 29.📋 What number does the browser show next to “Mango”?
    <ol>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Banana</li>
    </ol>
  30. 30.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
  31. 31.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 3 (d) 6
  32. 32.📋 What number does the browser show next to “Banana”?
    <ol>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Orange</li>
    </ol>
  33. 33.📋 How many items does this list show?
    <ol>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  34. 34.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
  35. 35.🔍 Which is the odd one out? (a) opens web pages for us (b) answers page requests (c) sends pages over the net (d) hosts websites online
  36. 36.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="400">
    (a) An old fort (b) kite.png (c) fort.jpg (d) tiger.jpg
  37. 37.📝 What does <p> make? (a) a paragraph (b) a picture (c) a link (d) a table
  38. 38.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Kites fly high</p>
  39. 39.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <h3>Good morning!</h3>
    <h3>My pets</h3>
    <h4>Rain today</h4>
  40. 40.🏷️ Which is the closing tag for <h2>? (a) </h2> (b) <\h2> (c) <h2> (d) <h2/>

Answer key

  1. <a href="about.html">
  2. False
  3. in a new tab
  4. 3
  5. 4
  6. has a closing tag
  7. 8
  8. 4
  9. <!DOCTYPE html>
  10. bullets
  11. Art corner
  12. 2
  13. </h1>
  14. structure
  15. 5
  16. False
  17. in the head
  18. <h1>
  19. True
  20. saves our .html files
  21. Maths fun
  22. <h1>
  23. </b>
  24. shows pages from the web
  25. <h1>
  26. 2
  27. <
  28. Maths fun
  29. 2
  30. -->
  31. 6
  32. 3
  33. 2
  34. <ol>
  35. opens web pages for us
  36. fort.jpg
  37. a paragraph
  38. 2
  39. 4
  40. </h2>

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