← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 207 · 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.🔍 One closing tag is missing. Which one?
    <small>Hello, world!
    <strong>My pets</strong>
    <h2>My best friend</h2>
    (a) </em> (b) </h2> (c) </small> (d) </strong>
  2. 2.🔗 Which address opens when you click this link?
    <a href="quiz.html">Maths fun</a>
    (a) about.html (b) games.html (c) quiz.html (d) Maths fun
  3. 3.True or false: <ol> is an ordered list. (a) False (b) True
  4. 4.🖼️ Which attribute of <img> describes the picture? (a) width (b) alt (c) height (d) src
  5. 5.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Birds sing<br>Rivers flow<br>Roses are red<br>Stars shine</p>
  6. 6.True or false: in <img>, src tells which image to load. (a) True (b) False
  7. 7.True or false: <style> goes in the body. (a) False (b) True
  8. 8.True or false: HTML on its own can make tables. (a) True (b) False
  9. 9.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h5>? (a) <h6> (b) <h1> (c) <h5> (d) <h3>
  10. 10.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h1> or <h6>? (a) <h6> (b) <h2> (c) <h5> (d) <h1>
  11. 11.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red</p>
  12. 12.Which of these goes in the body? (a) <title> (b) <style> (c) <a> (d) <meta charset="utf-8">
  13. 13.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    (a) Hello, world! (b) Our school trip (c) My pets (d) Cricket is fun.
  14. 14.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Fun facts</p> -->
  15. 15.🔢 In a basic web page file, which comes first: “<html>” or “</body>”? (a) <html> (b) </body>
  16. 16.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
  17. 17.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <li> (c) <ul>
  18. 18.🔍 Which is the odd one out? (a) sends pages over the net (b) saves our .html files (c) colours code to help us (d) shows line numbers
  19. 19.💬 Which text will NOT show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    (a) Cricket is fun. (b) I love mangoes. (c) Hello, world!
  20. 20.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="350">
    (a) width (b) The full moon (c) moon.png (d) Our school bus
  21. 21.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  22. 22.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="150">
    (a) A red kite (b) kite.png (c) Map of India (d) width
  23. 23.🔗 Which address opens when you click this link?
    <a href="art.html">Visit the site</a>
    (a) news.html (b) quiz.html (c) art.html (d) Visit the site
  24. 24.🔢 In a basic web page file, which comes LAST? (a) <html> (b) <!DOCTYPE html> (c) </html> (d) </body>
  25. 25.🧱 HTML gives a web page its ___. (a) structure (b) speed (c) sound (d) colours
  26. 26.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="200">
    (a) map.png (b) width (c) Birthday cake (d) Map of India
  27. 27.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
  28. 28.True or false: <style> goes in the head. (a) False (b) True
  29. 29.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>My pets</p>
    <p>Rain today</p>
    (a) My pets (b) Our school trip (c) Rain today
  30. 30.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Rivers flow</p>
  31. 31.Which of these has a closing tag? (a) <hr> (b) <p> (c) <br> (d) <meta>
  32. 32.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <p> (d) <br>
  33. 33.True or false: <ul> lists steps in order. (a) True (b) False
  34. 34.True or false: <img> has a closing tag. (a) False (b) True
  35. 35.🔗 What does target="_blank" do to a link? (a) hides the link (b) opens it in a new tab (c) makes it blank (d) makes it bold
  36. 36.🌐 Which one sends pages over the net? (a) a web server (b) a web browser (c) a code editor
  37. 37.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>Our school trip</p>
    <!-- <p>Hello, world!</p> -->
  38. 38.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h2> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
  39. 39.💬 How does an HTML comment end? (a) // (b) */ (c) --> (d) >>
  40. 40.💬 Which text will NOT show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>My best friend</p>
    <p>The red kite</p>
    (a) Cricket is fun. (b) My best friend (c) The red kite

Answer key

  1. </small>
  2. quiz.html
  3. True
  4. alt
  5. 5
  6. True
  7. False
  8. True
  9. <h6>
  10. <h1>
  11. 2
  12. <a>
  13. Cricket is fun.
  14. 1
  15. <html>
  16. <ul>
  17. <ol>
  18. sends pages over the net
  19. Cricket is fun.
  20. The full moon
  21. Yes
  22. A red kite
  23. art.html
  24. </html>
  25. structure
  26. Map of India
  27. <ul>
  28. True
  29. Our school trip
  30. 2
  31. <p>
  32. <h1>
  33. False
  34. False
  35. opens it in a new tab
  36. a web server
  37. 2
  38. <h1>
  39. -->
  40. Cricket is fun.

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