← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 256 · 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>, <h6>, <h4> or <h5>? (a) <h1> (b) <h6> (c) <h4> (d) <h5>
  2. 2.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dollar $ (c) a dot . (d) a hash #
  3. 3.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  4. 4.Which of these is a closing tag? (a) </p> (b) <p> (c) <li> (d) <b>
  5. 5.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <link> (d) <p>
  6. 6.True or false: <li> is an unordered list. (a) True (b) False
  7. 7.True or false: a web server has an address bar. (a) True (b) False
  8. 8.🔍 Which is the odd one out? (a) turns HTML into a page (b) saves our .html files (c) opens web pages for us (d) shows pages from the web
  9. 9.💬 Why do coders write comments? (a) to show pictures (b) to add colour (c) to make links (d) to leave notes
  10. 10.📋 What number does the browser show next to “Orange”?
    <ol start="6">
      <li>Grapes</li>
      <li>Banana</li>
      <li>Orange</li>
    </ol>
  11. 11.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  12. 12.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) games.html (b) Art corner (c) about.html (d) contact.html
  13. 13.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  14. 14.🔍 Which is the odd one out? (a) sends pages over the net (b) shows line numbers (c) saves our .html files (d) is where we type code
  15. 15.📋 What number does the browser show next to “Grapes”?
    <ol>
      <li>Guava</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Litchi</li>
    </ol>
  16. 16.🔍 Which is the odd one out? (a) hosts websites online (b) turns HTML into a page (c) stores a website’s files (d) sends pages over the net
  17. 17.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h5> or <h1>? (a) <h3> (b) <h1> (c) <h5> (d) <h4>
  18. 18.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h1>? (a) <h2> (b) <h6> (c) <h4> (d) <h1>
  19. 19.🔍 Which line is missing its closing tag?
    line 1: <strong>Fun facts</strong>
    line 2: <p>My best friend</p>
    line 3: <em>My pets
    (a) line 2 (b) line 3 (c) line 1
  20. 20.🔗 Where does this link open?
    <a href="https://example.com">Maths fun</a>
    (a) in a new tab (b) in the same tab
  21. 21.True or false: HTML on its own can make links to pages. (a) True (b) False
  22. 22.True or false: <title> has a closing tag. (a) True (b) False
  23. 23.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
  24. 24.🖼️ Which attribute of <img> sets how wide it is? (a) height (b) width (c) alt (d) src
  25. 25.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
  26. 26.Which of these goes in the head? (a) <ul> (b) <table> (c) <p> (d) <meta charset="utf-8">
  27. 27.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
  28. 28.🖼️ Which attribute of <img> tells which image to load? (a) alt (b) height (c) width (d) src
  29. 29.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) opens it in a new tab (d) makes it bold
  30. 30.🔠 Are headings shown in bold by default? (a) No (b) Yes
  31. 31.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <br> (d) <ol>
  32. 32.📋 Does this list show bullets or numbers?
    <ol>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Papaya</li>
    </ol>
    (a) bullets (b) numbers
  33. 33.🔍 Which is the odd one out? (a) has an address bar (b) opens web pages for us (c) hosts websites online (d) turns HTML into a page
  34. 34.Which of these is an empty tag? (a) <title> (b) <p> (c) <h1> (d) <meta>
  35. 35.🔗 Where does this link open?
    <a href="about.html" target="_blank">Contact us</a>
    (a) in the same tab (b) in a new tab
  36. 36.📋 How many items does this list show?
    <ol>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  37. 37.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) body (c) We won by 5 runs. (d) Easy snacks
  38. 38.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
  39. 39.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
  40. 40.Which of these is a closing tag? (a) <p> (b) <title> (c) <li> (d) </body>

Answer key

  1. <h1>
  2. a slash /
  3. a closing tag
  4. </p>
  5. <a>
  6. False
  7. False
  8. saves our .html files
  9. to leave notes
  10. 8
  11. Yes
  12. games.html
  13. an opening tag
  14. sends pages over the net
  15. 3
  16. turns HTML into a page
  17. <h5>
  18. <h1>
  19. line 3
  20. in the same tab
  21. True
  22. True
  23. False
  24. width
  25. a web server
  26. <meta charset="utf-8">
  27. a web browser
  28. src
  29. opens it in a new tab
  30. Yes
  31. <ol>
  32. numbers
  33. hosts websites online
  34. <meta>
  35. in a new tab
  36. 2
  37. Easy snacks
  38. <li>
  39. in the body
  40. </body>

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