← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 100 · 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.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  2. 2.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h1> (c) <p> (d) <h6>
  3. 3.🏷️ Which is the closing tag for <em>? (a) <\em> (b) </em> (c) <em> (d) <em/>
  4. 4.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>Fun facts</p>
    <h4>My best friend</h4>
    <h2>Cricket is fun.</h2>
  5. 5.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="400">
    (a) kite.png (b) An old fort (c) fort.jpg (d) tiger.jpg
  6. 6.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
  7. 7.📋 Which list tag lists steps in order? (a) <ol> (b) <li> (c) <ul>
  8. 8.True or false: HTML on its own can make links to pages. (a) True (b) False
  9. 9.💾 A web page file usually ends with which extension? (a) .html (b) .png (c) .txt (d) .mp3
  10. 10.🔍 One closing tag is missing. Which one?
    <b>My pets</b>
    <h2>Hello, world!
    <small>Our school trip</small>
    (a) </h3> (b) </small> (c) </h2> (d) </b>
  11. 11.🔗 What does HyperText mean? (a) text with links (b) very big text (c) text in colour (d) secret text
  12. 12.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ul> (c) <ol> (d) <br>
  13. 13.🔗 Which words do you click on?
    <a href="contact.html">About us</a>
    (a) contact.html (b) Contact us (c) About us (d) href
  14. 14.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  15. 15.🔗 Which words do you click on?
    <a href="quiz.html">Art corner</a>
    (a) School news (b) href (c) quiz.html (d) Art corner
  16. 16.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h3>My best friend</h3>
    <h3>Fun facts</h3>
    <h2>The red kite</h2>
  17. 17.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Papaya</li>
    </ol>
  18. 18.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>Fun facts</p>
    <!-- <p>My pets</p> -->
    <!-- <p>Good morning!</p> -->
  19. 19.True or false: <style> goes in the head. (a) False (b) True
  20. 20.🌐 Which one sends pages over the net? (a) a web server (b) a code editor (c) a web browser
  21. 21.🔗 Which words do you click on?
    <a href="contact.html">Maths fun</a>
    (a) href (b) Art corner (c) contact.html (d) Maths fun
  22. 22.True or false: in <img>, height describes the picture. (a) False (b) True
  23. 23.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>The red kite</p> -->
    <!-- <p>My pets</p> -->
    <p>Good morning!</p>
    <p>Hello, world!</p>
  24. 24.Which of these is a closing tag? (a) <p> (b) <h1> (c) <li> (d) </p>
  25. 25.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h4>Our school trip</h4>
    <h2>Rain today</h2>
  26. 26.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <p> (d) <h1>
  27. 27.True or false: a code editor colours code to help us. (a) True (b) False
  28. 28.True or false: <ul> goes inside ul or ol. (a) False (b) True
  29. 29.📄 Can HTML on its own make links to pages? (a) No (b) Yes
  30. 30.True or false: HTML on its own can show paragraphs. (a) True (b) False
  31. 31.True or false: a code editor shows line numbers. (a) True (b) False
  32. 32.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ol> (c) <ul> (d) <hr>
  33. 33.🔗 Which words do you click on?
    <a href="games.html">Contact us</a>
    (a) games.html (b) Contact us (c) href (d) Visit the site
  34. 34.True or false: HTML on its own cannot keep a high score. (a) False (b) True
  35. 35.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h3> or <h5>? (a) <h2> (b) <h5> (c) <h3> (d) <h1>
  36. 36.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h6>? (a) <h1> (b) <h5> (c) <h2> (d) <h6>
  37. 37.🖼️ Which attribute of <img> names the picture file? (a) height (b) width (c) alt (d) src
  38. 38.🔗 Where does this link open?
    <a href="contact.html" target="_blank">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  39. 39.📄 What is the first line of an HTML5 page? (a) <html> (b) <body> (c) <!DOCTYPE html> (d) <head>
  40. 40.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>Hello, world!</p>
    <p>The red kite</p>
    (a) Hello, world! (b) My best friend (c) The red kite

Answer key

  1. Yes
  2. <h1>
  3. </em>
  4. 3
  5. fort.jpg
  6. a web browser
  7. <ol>
  8. True
  9. .html
  10. </h2>
  11. text with links
  12. <ul>
  13. About us
  14. No
  15. Art corner
  16. 4
  17. 3
  18. 1
  19. True
  20. a web server
  21. Maths fun
  22. False
  23. 2
  24. </p>
  25. 3
  26. <h6>
  27. True
  28. False
  29. Yes
  30. True
  31. True
  32. <ol>
  33. Contact us
  34. True
  35. <h5>
  36. <h1>
  37. src
  38. in a new tab
  39. <!DOCTYPE html>
  40. My best friend

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