← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 649 · 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 BIGGEST text: <h1>, <h5>, <h6> or <h4>? (a) <h6> (b) <h4> (c) <h5> (d) <h1>
  2. 2.🖼️ Which attribute of <img> describes the picture? (a) width (b) alt (c) src (d) height
  3. 3.🔗 Which words do you click on?
    <a href="https://example.com">Contact us</a>
    (a) Contact us (b) https://example.com (c) href (d) Visit the site
  4. 4.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>My pets</p>
    <p>Hello, world!</p>
    <p>My pets</p>
  5. 5.📄 Where does the text of <title> appear? (a) nowhere (b) on the browser tab (c) in a big heading (d) at the bottom
  6. 6.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the body (d) the head
  7. 7.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  8. 8.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  9. 9.🔢 In a basic web page file, which comes LAST? (a) </head> (b) </html> (c) <head> (d) </body>
  10. 10.🏷️ Which is the closing tag for <small>? (a) <\small> (b) </small> (c) <small/> (d) <small>
  11. 11.True or false: <br> is an empty tag. (a) True (b) False
  12. 12.Which of these has a closing tag? (a) <ul> (b) <br> (c) <img> (d) <hr>
  13. 13.🔗 Which address opens when you click this link?
    <a href="news.html">About us</a>
    (a) About us (b) news.html (c) games.html (d) quiz.html
  14. 14.True or false: HTML on its own can make tables. (a) False (b) True
  15. 15.🔠 Are headings shown in bold by default? (a) Yes (b) No
  16. 16.True or false: HTML on its own can add up two numbers. (a) True (b) False
  17. 17.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) index.html (b) Match report (c) Class 7 Blog (d) Thanks for visiting.
  18. 18.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <p>Rain today</p>
    <p>Good morning!</p>
  19. 19.🔍 One closing tag is missing. Which one?
    <p>Our school trip</p>
    <h1>Hello, world!</h1>
    <u>Fun facts
    (a) </h1> (b) </u> (c) </i> (d) </p>
  20. 20.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
  21. 21.💬 Does the browser show comments on the page? (a) Yes (b) No
  22. 22.True or false: <img> goes in the body. (a) False (b) True
  23. 23.Which of these is true of a web browser? (a) opens web pages for us (b) answers page requests (c) stores a website’s files (d) saves our .html files
  24. 24.🔗 Which words do you click on?
    <a href="maths.html">Contact us</a>
    (a) maths.html (b) href (c) Contact us (d) Visit the site
  25. 25.Which of these goes in the body? (a) <title> (b) <ul> (c) <meta charset="utf-8"> (d) <link rel="stylesheet">
  26. 26.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>I love mangoes.</p>
    <p>Our school trip</p>
    (a) I love mangoes. (b) The red kite (c) Our school trip
  27. 27.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h5> or <h3>? (a) <h1> (b) <h3> (c) <h2> (d) <h5>
  28. 28.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Rain today</p>
    <p>Good morning!</p>
  29. 29.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h4> or <h1>? (a) <h5> (b) <h1> (c) <h4> (d) <h6>
  30. 30.📝 What does <hr> draw? (a) a table (b) a line across the page (c) a picture (d) a link
  31. 31.True or false: HTML on its own cannot make links to pages. (a) True (b) False
  32. 32.Which of these is an opening tag? (a) <title> (b) </body> (c) </li> (d) </h1>
  33. 33.Which of these has a closing tag? (a) <img> (b) <hr> (c) <meta> (d) <h1>
  34. 34.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
  35. 35.🔍 One closing tag is missing. Which one?
    <b>My best friend</b>
    <strong>Good morning!
    <small>I love mangoes.</small>
    (a) </small> (b) </strong> (c) </em> (d) </b>
  36. 36.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="350">
    (a) width (b) Our school bus (c) bus.jpg (d) An old fort
  37. 37.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <ul> (c) <li>
  38. 38.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>My pets</p>
    <!-- <p>Our school trip</p> -->
    <p>Rain today</p>
    (a) Good morning! (b) Our school trip (c) My pets (d) Rain today
  39. 39.📋 Does this list show bullets or numbers?
    <ul>
      <li>Banana</li>
      <li>Papaya</li>
    </ul>
    (a) bullets (b) numbers
  40. 40.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
    <p>Our school trip</p>
    <p>Good morning!</p>
    (a) Hello, world! (b) Fun facts (c) Good morning! (d) Our school trip

Answer key

  1. <h1>
  2. alt
  3. Contact us
  4. 4
  5. on the browser tab
  6. the body
  7. a closing tag
  8. No
  9. </html>
  10. </small>
  11. True
  12. <ul>
  13. news.html
  14. True
  15. Yes
  16. False
  17. Class 7 Blog
  18. 3
  19. </u>
  20. a web browser
  21. No
  22. True
  23. opens web pages for us
  24. Contact us
  25. <ul>
  26. The red kite
  27. <h5>
  28. 2
  29. <h6>
  30. a line across the page
  31. False
  32. <title>
  33. <h1>
  34. in the head
  35. </strong>
  36. Our school bus
  37. <li>
  38. Our school trip
  39. bullets
  40. Hello, world!

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