← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 633 · 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: <h4>, <h2>, <h3> or <h1>? (a) <h2> (b) <h1> (c) <h3> (d) <h4>
  2. 2.📄 Which part holds everything you see on the page? (a) the body (b) the head (c) the title (d) the doctype
  3. 3.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
  4. 4.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
  5. 5.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>The red kite</p>
    <p>I love mangoes.</p>
    (a) Rain today (b) I love mangoes. (c) The red kite
  6. 6.🔗 Where does this link open?
    <a href="art.html" target="_blank">Maths fun</a>
    (a) in a new tab (b) in the same tab
  7. 7.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  8. 8.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) element (d) attribute
  9. 9.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) </h1> (c) <h1> (d) <\h1>
  10. 10.True or false: in <img>, width sets how wide it is. (a) False (b) True
  11. 11.🏷️ Which is the closing tag for <b>? (a) <b> (b) <b/> (c) <\b> (d) </b>
  12. 12.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  13. 13.True or false: HTML on its own can make headings. (a) False (b) True
  14. 14.📄 Where does the text of <title> appear? (a) nowhere (b) at the bottom (c) on the browser tab (d) in a big heading
  15. 15.Which of these is an empty tag? (a) <b> (b) <title> (c) <h1> (d) <meta>
  16. 16.Which of these is true of a web server? (a) saves our .html files (b) opens web pages for us (c) answers page requests (d) has an address bar
  17. 17.True or false: <b> has a closing tag. (a) False (b) True
  18. 18.🔗 Which words do you click on?
    <a href="https://example.com">Art corner</a>
    (a) https://example.com (b) School news (c) href (d) Art corner
  19. 19.🔍 One closing tag is missing. Which one?
    <i>Hello, world!</i>
    <h2>The red kite
    <b>Rain today</b>
    (a) </i> (b) </b> (c) </small> (d) </h2>
  20. 20.True or false: a code editor shows line numbers. (a) False (b) True
  21. 21.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  22. 22.True or false: <h1> goes in the body. (a) True (b) False
  23. 23.🔗 Which tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
  24. 24.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h6>? (a) <h6> (b) <h4> (c) <h5> (d) <h3>
  25. 25.Which of these is an opening tag? (a) <b> (b) </h1> (c) </p> (d) </title>
  26. 26.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <p>The red kite</p>
  27. 27.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h1> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h3>
  28. 28.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="350">
    (a) cake.jpg (b) A red kite (c) kite.png (d) map.png
  29. 29.📝 What does <hr> draw? (a) a line across the page (b) a picture (c) a link (d) a table
  30. 30.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  31. 31.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Good morning!</p> -->
    <p>My pets</p>
    <p>Fun facts</p>
    (a) Fun facts (b) Good morning! (c) I love mangoes. (d) My pets
  32. 32.True or false: <img> goes in the body. (a) True (b) False
  33. 33.True or false: <ul> goes in the head. (a) True (b) False
  34. 34.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="fort.jpg" alt="An old fort" width="50">
    (a) width (b) fort.jpg (c) A tiger asleep (d) An old fort
  35. 35.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
  36. 36.🔗 Which address opens when you click this link?
    <a href="news.html">Contact us</a>
    (a) quiz.html (b) games.html (c) news.html (d) Contact us
  37. 37.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
  38. 38.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>I love mangoes.</p>
    <p>My pets</p>
    <p>My best friend</p>
    (a) My pets (b) The red kite (c) I love mangoes. (d) My best friend
  39. 39.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h2>My pets</h2>
    <p>The red kite</p>
  40. 40.True or false: a web server stores a website’s files. (a) False (b) True

Answer key

  1. <h1>
  2. the body
  3. False
  4. <h1>
  5. Rain today
  6. in a new tab
  7. No
  8. element
  9. </h1>
  10. True
  11. </b>
  12. Yes
  13. True
  14. on the browser tab
  15. <meta>
  16. answers page requests
  17. True
  18. Art corner
  19. </h2>
  20. True
  21. an empty tag
  22. True
  23. <a>
  24. <h3>
  25. <b>
  26. 3
  27. <h1>
  28. kite.png
  29. a line across the page
  30. an opening tag
  31. Good morning!
  32. True
  33. False
  34. An old fort
  35. <ul>
  36. news.html
  37. a paragraph
  38. The red kite
  39. 2
  40. True

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