← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 337 · 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 show on the page?
    <p>Good morning!</p>
    <p>My best friend</p>
    <p>My pets</p>
    <!-- <p>I love mangoes.</p> -->
  2. 2.🔗 Which words do you click on?
    <a href="news.html">Art corner</a>
    (a) href (b) Art corner (c) School news (d) news.html
  3. 3.True or false: HTML on its own cannot count button clicks. (a) False (b) True
  4. 4.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) has an address bar (d) stores a website’s files
  5. 5.🖼️ Which tag puts a picture on a page? (a) <a> (b) <img> (c) <p> (d) <pic>
  6. 6.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h1>? (a) <h4> (b) <h1> (c) <h6> (d) <h2>
  7. 7.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  8. 8.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h6> (b) <h1> (c) <h2> (d) <h3>
  9. 9.🔗 Which words do you click on?
    <a href="quiz.html">Maths fun</a>
    (a) Art corner (b) Maths fun (c) href (d) quiz.html
  10. 10.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>Hello, world!</p>
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    <p>Fun facts</p>
  11. 11.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="50">
  12. 12.True or false: <ol> is an ordered list. (a) True (b) False
  13. 13.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
  14. 14.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Mango</li>
    </ol>
  15. 15.True or false: in <img>, alt shows if the image fails. (a) True (b) False
  16. 16.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  17. 17.🔗 Which attribute holds the address of a link? (a) src (b) id (c) alt (d) href
  18. 18.True or false: in <img>, height describes the picture. (a) True (b) False
  19. 19.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  20. 20.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) an element name (d) a comment
  21. 21.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
  22. 22.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <body> (c) <!DOCTYPE html> (d) <head>
  23. 23.💬 Does the browser show comments on the page? (a) Yes (b) No
  24. 24.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
  25. 25.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h4>Rain today</h4>
    <p>Good morning!</p>
  26. 26.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h3>? (a) <h2> (b) <h6> (c) <h3> (d) <h1>
  27. 27.Which of these is an empty tag? (a) <li> (b) <hr> (c) <p> (d) <h1>
  28. 28.Which of these is true of a web browser? (a) colours code to help us (b) is where we type code (c) answers page requests (d) turns HTML into a page
  29. 29.True or false: in <img>, src shows if the image fails. (a) True (b) False
  30. 30.True or false: a code editor opens web pages for us. (a) False (b) True
  31. 31.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h3>? (a) <h4> (b) <h3> (c) <h5> (d) <h1>
  32. 32.🔗 Which address opens when you click this link?
    <a href="art.html">Art corner</a>
    (a) news.html (b) art.html (c) quiz.html (d) Art corner
  33. 33.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h1> or <h5>? (a) <h4> (b) <h2> (c) <h1> (d) <h5>
  34. 34.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
    <p>My pets</p>
    <!-- <p>Rain today</p> -->
    <!-- <p>Our school trip</p> -->
  35. 35.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <h3> (d) <p>
  36. 36.True or false: a web browser saves our .html files. (a) True (b) False
  37. 37.True or false: a web browser sends pages over the net. (a) True (b) False
  38. 38.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
  39. 39.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h1> or <h5>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
  40. 40.Which of these has a closing tag? (a) <img> (b) <br> (c) <meta> (d) <ul>

Answer key

  1. 3
  2. Art corner
  3. True
  4. has an address bar
  5. <img>
  6. <h1>
  7. <ul>
  8. <h6>
  9. Maths fun
  10. 3
  11. 50
  12. True
  13. 100
  14. 3
  15. True
  16. in the body
  17. href
  18. False
  19. a closing tag
  20. an attribute
  21. the body
  22. </html>
  23. No
  24. <a>
  25. 2
  26. <h1>
  27. <hr>
  28. turns HTML into a page
  29. False
  30. False
  31. <h1>
  32. art.html
  33. <h5>
  34. 2
  35. <h6>
  36. False
  37. False
  38. a web server
  39. <h1>
  40. <ul>

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