← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 972 · 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.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h5> or <h3>? (a) <h5> (b) <h6> (c) <h3> (d) <h4>
  2. 2.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  3. 3.🔢 In a basic web page file, which comes first: “</body>” or “</html>”? (a) </body> (b) </html>
  4. 4.🌐 Which one colours code to help us? (a) a code editor (b) a web browser (c) a web server
  5. 5.💬 Does the browser show comments on the page? (a) Yes (b) No
  6. 6.🔗 Which address opens when you click this link?
    <a href="quiz.html">Art corner</a>
    (a) games.html (b) quiz.html (c) about.html (d) Art corner
  7. 7.True or false: <li> is an ordered list. (a) True (b) False
  8. 8.🔗 Which words do you click on?
    <a href="https://example.com">Take the quiz</a>
    (a) Play games (b) Take the quiz (c) https://example.com (d) href
  9. 9.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="200">
    (a) width (b) map.png (c) Map of India (d) Birthday cake
  10. 10.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="100">
    (a) fort.jpg (b) bus.jpg (c) Our school bus (d) tiger.jpg
  11. 11.Which of these is an empty tag? (a) <title> (b) <b> (c) <ul> (d) <hr>
  12. 12.🔗 Where does this link open?
    <a href="about.html">Visit the site</a>
    (a) in the same tab (b) in a new tab
  13. 13.Which of these is an opening tag? (a) <title> (b) </li> (c) </title> (d) </b>
  14. 14.Which of these goes in the body? (a) <title> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <h1>
  15. 15.🔢 In a basic web page file, which comes LAST? (a) <body> (b) </body> (c) <!DOCTYPE html> (d) </html>
  16. 16.🌐 Which one stores a website’s files? (a) a web server (b) a code editor (c) a web browser
  17. 17.🔍 Which is the odd one out? (a) answers page requests (b) colours code to help us (c) is where we type code (d) saves our .html files
  18. 18.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h3> or <h2>? (a) <h6> (b) <h5> (c) <h3> (d) <h2>
  19. 19.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Match report (b) Art Gallery (c) Try this poha. (d) index.html
  20. 20.True or false: HTML on its own cannot make tables. (a) True (b) False
  21. 21.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  22. 22.🔗 Which attribute holds the address of a link? (a) src (b) id (c) href (d) alt
  23. 23.True or false: <ul> lists things in any order. (a) True (b) False
  24. 24.📝 What does <hr> draw? (a) a link (b) a picture (c) a line across the page (d) a table
  25. 25.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a href="about.html"> (d) <a alt="about.html">
  26. 26.📝 What does <p> make? (a) a picture (b) a paragraph (c) a link (d) a table
  27. 27.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  28. 28.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h4> or <h6>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
  29. 29.Which of these goes in the body? (a) <style> (b) <title> (c) <img> (d) <meta charset="utf-8">
  30. 30.True or false: <p> goes in the head. (a) False (b) True
  31. 31.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="150">
  32. 32.🔢 In a basic web page file, which comes first: “</html>” or “<!DOCTYPE html>”? (a) </html> (b) <!DOCTYPE html>
  33. 33.📝 Does <img> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  34. 34.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="50">
  36. 36.🔗 Where does this link open?
    <a href="about.html">Play games</a>
    (a) in the same tab (b) in a new tab
  37. 37.True or false: <b> is an empty tag. (a) True (b) False
  38. 38.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Cricket Club (b) Try this poha. (c) index.html (d) Match report
  39. 39.🔗 Which words do you click on?
    <a href="contact.html">About us</a>
    (a) Contact us (b) href (c) contact.html (d) About us
  40. 40.🖼️ Which attribute of <img> names the picture file? (a) src (b) width (c) height (d) alt

Answer key

  1. <h6>
  2. Yes
  3. </body>
  4. a code editor
  5. No
  6. quiz.html
  7. False
  8. Take the quiz
  9. Map of India
  10. bus.jpg
  11. <hr>
  12. in the same tab
  13. <title>
  14. <h1>
  15. </html>
  16. a web server
  17. answers page requests
  18. <h2>
  19. Art Gallery
  20. False
  21. has a closing tag
  22. href
  23. True
  24. a line across the page
  25. <a href="about.html">
  26. a paragraph
  27. an opening tag
  28. <h1>
  29. <img>
  30. False
  31. 150
  32. <!DOCTYPE html>
  33. an empty tag
  34. <li>
  35. 50
  36. in the same tab
  37. False
  38. Cricket Club
  39. About us
  40. src

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