← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 602 · 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.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <h2>I love mangoes.</h2>
    <p>Rain today</p>
  2. 2.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
  3. 3.🔠 Are headings shown in bold by default? (a) Yes (b) No
  4. 4.📋 Does this list show bullets or numbers?
    <ul>
      <li>Litchi</li>
      <li>Jamun</li>
    </ul>
    (a) bullets (b) numbers
  5. 5.Which of these is true of a web browser? (a) sends pages over the net (b) shows pages from the web (c) hosts websites online (d) stores a website’s files
  6. 6.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
  7. 7.True or false: in <img>, height sets how tall it is. (a) False (b) True
  8. 8.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Mango</li>
      <li>Orange</li>
      <li>Jamun</li>
    </ol>
  9. 9.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="250">
    (a) tiger.jpg (b) kite.png (c) map.png (d) A tiger asleep
  10. 10.📛 In <a href="x.html">, what is href? (a) a comment (b) an attribute (c) an element name (d) a closing tag
  11. 11.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  12. 12.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p/> (c) </p> (d) <p>
  13. 13.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  14. 14.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  15. 15.True or false: <input> has a closing tag. (a) True (b) False
  16. 16.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab
  17. 17.🌐 Which one is where we type code? (a) a web browser (b) a code editor (c) a web server
  18. 18.🔗 Where does this link open?
    <a href="about.html" target="_blank">About us</a>
    (a) in a new tab (b) in the same tab
  19. 19.True or false: <ul> shows bullet points. (a) False (b) True
  20. 20.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) Space Facts (b) We won by 5 runs. (c) Planets (d) body
  21. 21.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine</p>
  22. 22.🔗 Which address opens when you click this link?
    <a href="art.html">About us</a>
    (a) quiz.html (b) news.html (c) art.html (d) About us
  23. 23.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h6>? (a) <h4> (b) <h6> (c) <h2> (d) <h5>
  24. 24.🔗 Which attribute holds the address of a link? (a) href (b) alt (c) src (d) id
  25. 25.🔗 Which words do you click on?
    <a href="art.html">Play games</a>
    (a) art.html (b) Play games (c) About us (d) href
  26. 26.🔗 Which address opens when you click this link?
    <a href="games.html">About us</a>
    (a) about.html (b) games.html (c) About us (d) contact.html
  27. 27.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
  28. 28.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
  29. 29.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <a> (d) <p>
  30. 30.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
  31. 31.True or false: in <img>, alt shows if the image fails. (a) True (b) False
  32. 32.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Birds sing<br>Sky is blue<br>Stars shine<br>Rivers flow</p>
  33. 33.Which of these has a closing tag? (a) <b> (b) <input> (c) <br> (d) <hr>
  34. 34.📄 Can HTML on its own keep a high score? (a) Yes (b) No
  35. 35.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <h2>Cricket is fun.</h2>
    <p>I love mangoes.</p>
  36. 36.🔍 One closing tag is missing. Which one?
    <h3>The red kite</h3>
    <p>My pets</p>
    <strong>Rain today
    (a) </h3> (b) </h2> (c) </strong> (d) </p>
  37. 37.🧱 HTML gives a web page its ___. (a) speed (b) colours (c) sound (d) structure
  38. 38.🔠 Which tag is the least important heading? (a) <h3> (b) <h6> (c) <h1> (d) <p>
  39. 39.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>My pets</p>
    <p>Fun facts</p>
    <p>The red kite</p>
  40. 40.📄 Where does the text of <title> appear? (a) nowhere (b) on the browser tab (c) at the bottom (d) in a big heading

Answer key

  1. 2
  2. <ol>
  3. Yes
  4. bullets
  5. shows pages from the web
  6. <ol>
  7. True
  8. 3
  9. tiger.jpg
  10. an attribute
  11. a closing tag
  12. </p>
  13. No
  14. Yes
  15. False
  16. in a new tab
  17. a code editor
  18. in a new tab
  19. True
  20. Planets
  21. 2
  22. art.html
  23. <h2>
  24. href
  25. Play games
  26. games.html
  27. <ul>
  28. Yes
  29. <img>
  30. a web browser
  31. True
  32. 5
  33. <b>
  34. No
  35. 2
  36. </strong>
  37. structure
  38. <h6>
  39. 4
  40. on the browser tab

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