← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 613 · 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.🔗 Where does this link open?
    <a href="news.html">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  2. 2.Which of these is true of a web server? (a) hosts websites online (b) shows pages from the web (c) turns HTML into a page (d) colours code to help us
  3. 3.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>Good morning!</p>
    <p>The red kite</p>
  4. 4.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  5. 5.📋 Which list tag is an ordered list? (a) <ul> (b) <li> (c) <ol>
  6. 6.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    (a) The red kite (b) Hello, world! (c) I love mangoes.
  7. 7.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
  8. 8.🔍 One closing tag is missing. Which one?
    <h3>Cricket is fun.</h3>
    <h1>My best friend</h1>
    <b>The red kite
    (a) </h1> (b) </b> (c) </h3> (d) </u>
  9. 9.🖼️ Which attribute of <img> names the picture file? (a) alt (b) src (c) width (d) height
  10. 10.Which of these goes in the head? (a) <table> (b) <a> (c) <link rel="stylesheet"> (d) <h1>
  11. 11.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="250">
    (a) kite.png (b) A tiger asleep (c) tiger.jpg (d) map.png
  12. 12.Which of these is true of a code editor? (a) answers page requests (b) shows pages from the web (c) shows line numbers (d) has an address bar
  13. 13.📋 How many items does this list show?
    <ol>
      <li>Banana</li>
      <li>Litchi</li>
      <li>Orange</li>
    </ol>
  14. 14.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Hello, world!</p>
    <p>Fun facts</p>
    (a) Our school trip (b) Hello, world! (c) Fun facts
  15. 15.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
  16. 16.📄 What is the first line of an HTML5 page? (a) <html> (b) <!DOCTYPE html> (c) <body> (d) <head>
  17. 17.📝 Does <li> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  18. 18.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
  19. 19.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Banana</li>
    </ol>
  20. 20.🔍 One closing tag is missing. Which one?
    <i>The red kite</i>
    <h2>My best friend
    <u>I love mangoes.</u>
    (a) </i> (b) </em> (c) </u> (d) </h2>
  21. 21.🔍 Which is the odd one out? (a) has an address bar (b) hosts websites online (c) turns HTML into a page (d) opens web pages for us
  22. 22.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h2> or <h1>? (a) <h1> (b) <h4> (c) <h2> (d) <h6>
  23. 23.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="350">
    (a) bus.jpg (b) width (c) Our school bus (d) An old fort
  24. 24.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <!-- <p>My best friend</p> -->
    (a) Cricket is fun. (b) Hello, world! (c) My best friend
  25. 25.🏷️ Every HTML tag starts with which sign? (a) ( (b) < (c) { (d) [
  26. 26.🔗 Which words do you click on?
    <a href="contact.html">About us</a>
    (a) About us (b) Contact us (c) contact.html (d) href
  27. 27.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  28. 28.Which of these is true of a web server? (a) saves our .html files (b) is where we type code (c) sends pages over the net (d) turns HTML into a page
  29. 29.True or false: <title> is an empty tag. (a) True (b) False
  30. 30.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Maths fun</a>
    (a) in a new tab (b) in the same tab
  31. 31.🔍 One closing tag is missing. Which one?
    <h1>My pets</h1>
    <p>The red kite</p>
    <u>I love mangoes.
    (a) </p> (b) </h1> (c) </em> (d) </u>
  32. 32.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <h6> (c) <p> (d) <br>
  33. 33.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <p>Good morning!</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>Fun facts</p>
  34. 34.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="400">
    (a) The full moon (b) fort.jpg (c) bus.jpg (d) moon.png
  35. 35.Which of these has a closing tag? (a) <input> (b) <ul> (c) <meta> (d) <br>
  36. 36.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="300">
  37. 37.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Rain today</p>
    <p>Good morning!</p>
    <p>My pets</p>
    <p>Cricket is fun.</p>
  38. 38.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  39. 39.True or false: <table> goes in the head. (a) True (b) False
  40. 40.True or false: a web server stores a website’s files. (a) True (b) False

Answer key

  1. in the same tab
  2. hosts websites online
  3. 2
  4. <ul>
  5. <ol>
  6. The red kite
  7. False
  8. </b>
  9. src
  10. <link rel="stylesheet">
  11. tiger.jpg
  12. shows line numbers
  13. 3
  14. Our school trip
  15. Yes
  16. <!DOCTYPE html>
  17. has a closing tag
  18. <a>
  19. 6
  20. </h2>
  21. hosts websites online
  22. <h1>
  23. Our school bus
  24. My best friend
  25. <
  26. About us
  27. an opening tag
  28. sends pages over the net
  29. False
  30. in a new tab
  31. </u>
  32. <h1>
  33. 3
  34. moon.png
  35. <ul>
  36. 300
  37. 5
  38. an opening tag
  39. False
  40. True

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