← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 299 · 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 words do you click on?
    <a href="contact.html">School news</a>
    (a) Take the quiz (b) School news (c) href (d) contact.html
  2. 2.True or false: a web browser turns HTML into a page. (a) False (b) True
  3. 3.True or false: a web browser shows pages from the web. (a) True (b) False
  4. 4.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h5> or <h1>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
  5. 5.🖼️ Which attribute of <img> sets how wide it is? (a) src (b) height (c) width (d) alt
  6. 6.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) < (d) [
  7. 7.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  8. 8.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h4> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h2>
  9. 9.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p/> (c) <p> (d) </p>
  10. 10.Which of these is an opening tag? (a) </li> (b) <body> (c) </title> (d) </b>
  11. 11.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>Good morning!</p>
  12. 12.🔍 Which is the odd one out? (a) is where we type code (b) colours code to help us (c) opens web pages for us (d) shows line numbers
  13. 13.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h5> or <h4>? (a) <h1> (b) <h6> (c) <h4> (d) <h5>
  14. 14.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>Our school trip</p>
    <!-- <p>My pets</p> -->
    <p>Good morning!</p>
    (a) Rain today (b) My pets (c) Good morning! (d) Our school trip
  15. 15.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h3> or <h5>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
  16. 16.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) Space Facts (b) We won by 5 runs. (c) index.html (d) Welcome!
  17. 17.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Mango</li>
    </ol>
  18. 18.🔠 How many headings are in this code?
    <h1>Our school trip</h1>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    <h4>Cricket is fun.</h4>
  19. 19.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
    (a) Good morning! (b) Cricket is fun. (c) Fun facts
  20. 20.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) text with links (d) secret text
  21. 21.🔗 Which words do you click on?
    <a href="quiz.html">Maths fun</a>
    (a) quiz.html (b) Art corner (c) href (d) Maths fun
  22. 22.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  23. 23.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h6> (d) <h1>
  24. 24.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) alt (c) height (d) width
  25. 25.True or false: <ul> lists things in any order. (a) True (b) False
  26. 26.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>I love mangoes.</p>
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->
    (a) I love mangoes. (b) Fun facts (c) Good morning! (d) My pets
  27. 27.🔗 Which address opens when you click this link?
    <a href="contact.html">Art corner</a>
    (a) https://example.com (b) Art corner (c) maths.html (d) contact.html
  28. 28.📄 Which part holds everything you see on the page? (a) the title (b) the head (c) the body (d) the doctype
  29. 29.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a dot . (d) a slash /
  30. 30.🔗 Which words do you click on?
    <a href="games.html">Play games</a>
    (a) About us (b) Play games (c) games.html (d) href
  31. 31.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  32. 32.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
  33. 33.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Rivers flow<br>Roses are red</p>
  34. 34.Which of these is a closing tag? (a) <li> (b) <p> (c) <h1> (d) </title>
  35. 35.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
  36. 36.🔗 Which words do you click on?
    <a href="news.html">School news</a>
    (a) Take the quiz (b) news.html (c) href (d) School news
  37. 37.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) hides the link (d) makes it bold
  38. 38.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <style> (c) <link rel="stylesheet"> (d) <table>
  39. 39.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <link> (d) <p>
  40. 40.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong> (c) </strong> (d) <strong/>

Answer key

  1. School news
  2. True
  3. True
  4. <h5>
  5. width
  6. <
  7. a closing tag
  8. <h4>
  9. </p>
  10. <body>
  11. 1
  12. opens web pages for us
  13. <h1>
  14. My pets
  15. <h5>
  16. Space Facts
  17. 5
  18. 2
  19. Good morning!
  20. text with links
  21. Maths fun
  22. in the body
  23. <h1>
  24. height
  25. True
  26. Fun facts
  27. contact.html
  28. the body
  29. a slash /
  30. Play games
  31. has a closing tag
  32. in the body
  33. 3
  34. </title>
  35. on the browser tab
  36. School news
  37. opens it in a new tab
  38. <table>
  39. <a>
  40. </strong>

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