← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 658 · 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 heading shows the SMALLEST text: <h6>, <h1>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h6> (d) <h1>
  2. 2.🔗 Which words do you click on?
    <a href="art.html">About us</a>
    (a) Contact us (b) art.html (c) href (d) About us
  3. 3.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
  4. 4.True or false: a code editor shows pages from the web. (a) True (b) False
  5. 5.📄 Can HTML on its own make a form? (a) Yes (b) No
  6. 6.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <p>Rain today</p>
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
  7. 7.Which of these is true of a web browser? (a) is where we type code (b) saves our .html files (c) hosts websites online (d) opens web pages for us
  8. 8.Which of these is an opening tag? (a) </body> (b) </p> (c) <li> (d) </h1>
  9. 9.Which of these is true of a web server? (a) sends pages over the net (b) turns HTML into a page (c) saves our .html files (d) opens web pages for us
  10. 10.Which of these is true of a web server? (a) hosts websites online (b) shows line numbers (c) has an address bar (d) saves our .html files
  11. 11.🔗 Which words do you click on?
    <a href="news.html">School news</a>
    (a) href (b) news.html (c) School news (d) Take the quiz
  12. 12.💬 How does an HTML comment start? (a) /* (b) # (c) <!-- (d) //
  13. 13.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>The red kite</p> -->
    <p>Cricket is fun.</p>
    (a) Fun facts (b) Cricket is fun. (c) The red kite
  14. 14.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a dot . (d) a slash /
  15. 15.📋 Does this list show bullets or numbers?
    <ol>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ol>
    (a) numbers (b) bullets
  16. 16.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Sky is blue<br>Stars shine<br>Kites fly high</p>
  17. 17.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  18. 18.True or false: HTML on its own can show paragraphs. (a) False (b) True
  19. 19.🏷️ Which is the closing tag for <i>? (a) <\i> (b) <i/> (c) <i> (d) </i>
  20. 20.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h1> or <h2>? (a) <h2> (b) <h4> (c) <h1> (d) <h3>
  21. 21.📋 What number does the browser show next to “Litchi”?
    <ol start="7">
      <li>Banana</li>
      <li>Litchi</li>
      <li>Jamun</li>
    </ol>
  22. 22.💾 A web page file usually ends with which extension? (a) .html (b) .mp3 (c) .txt (d) .png
  23. 23.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h1> (c) <h6> (d) <p>
  24. 24.Which of these is an opening tag? (a) </b> (b) </li> (c) <title> (d) </title>
  25. 25.Which of these is an empty tag? (a) <p> (b) <br> (c) <ul> (d) <h1>
  26. 26.🔗 Which code links to about.html? (a) <link about.html> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <a href="about.html">
  27. 27.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) contact.html (b) About us (c) Play games (d) href
  28. 28.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  29. 29.🔢 In a basic web page file, which comes LAST? (a) <body> (b) </head> (c) </html> (d) <head>
  30. 30.True or false: <ul> is an unordered list. (a) False (b) True
  31. 31.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>The red kite</p>
    <p>Hello, world!</p>
    <p>Rain today</p>
    <p>Good morning!</p>
    <p>My best friend</p>
  32. 32.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <ul> (d) <p>
  33. 33.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
    <p>Fun facts</p>
    (a) Hello, world! (b) Fun facts (c) Our school trip
  34. 34.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h4> or <h3>? (a) <h3> (b) <h2> (c) <h4> (d) <h6>
  35. 35.True or false: <ol> shows 1, 2, 3 numbers. (a) True (b) False
  36. 36.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    <!-- <p>Rain today</p> -->
    (a) Cricket is fun. (b) The red kite (c) Good morning! (d) Rain today
  37. 37.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
  38. 38.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  39. 39.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h5> or <h2>? (a) <h6> (b) <h5> (c) <h2> (d) <h4>
  40. 40.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h3> or <h5>? (a) <h3> (b) <h6> (c) <h2> (d) <h5>

Answer key

  1. <h6>
  2. About us
  3. <ul>
  4. False
  5. Yes
  6. 3
  7. opens web pages for us
  8. <li>
  9. sends pages over the net
  10. hosts websites online
  11. School news
  12. <!--
  13. The red kite
  14. a slash /
  15. numbers
  16. 4
  17. 3
  18. True
  19. </i>
  20. <h1>
  21. 8
  22. .html
  23. <h1>
  24. <title>
  25. <br>
  26. <a href="about.html">
  27. Play games
  28. No
  29. </html>
  30. True
  31. 6
  32. <meta charset="utf-8">
  33. Our school trip
  34. <h2>
  35. True
  36. Rain today
  37. <img>
  38. an empty tag
  39. <h2>
  40. <h6>

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