← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 686 · 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.True or false: a code editor saves our .html files. (a) False (b) True
  2. 2.True or false: a web browser hosts websites online. (a) True (b) False
  3. 3.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h3>? (a) <h6> (b) <h5> (c) <h1> (d) <h3>
  4. 4.🔍 Which line is missing its closing tag?
    line 1: <u>Rain today
    line 2: <b>I love mangoes.</b>
    line 3: <small>My best friend</small>
    (a) line 2 (b) line 3 (c) line 1
  5. 5.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
  6. 6.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h3> or <h5>? (a) <h2> (b) <h3> (c) <h4> (d) <h5>
  7. 7.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Planets (b) Thanks for visiting. (c) body (d) Space Facts
  8. 8.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  9. 9.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Banana</li>
    </ul>
    (a) bullets (b) numbers
  10. 10.Which of these is true of a web browser? (a) sends pages over the net (b) answers page requests (c) shows pages from the web (d) saves our .html files
  11. 11.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Rivers flow</p>
  12. 12.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Good morning!</p>
    <p>Hello, world!</p>
    <p>My pets</p>
  13. 13.🔠 Which tag is the least important heading? (a) <h3> (b) <h1> (c) <p> (d) <h6>
  14. 14.True or false: in <img>, width describes the picture. (a) False (b) True
  15. 15.True or false: <title> goes in the head. (a) False (b) True
  16. 16.📄 Can HTML on its own make a form? (a) Yes (b) No
  17. 17.🖼️ Which attribute of <img> sets how wide it is? (a) height (b) width (c) src (d) alt
  18. 18.🔗 Which address opens when you click this link?
    <a href="news.html">School news</a>
    (a) quiz.html (b) games.html (c) news.html (d) School news
  19. 19.True or false: a web server turns HTML into a page. (a) True (b) False
  20. 20.💬 Why do coders write comments? (a) to show pictures (b) to make links (c) to leave notes (d) to add colour
  21. 21.💬 Which text will NOT show on the page?
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
    <p>Our school trip</p>
    <p>Fun facts</p>
    (a) My pets (b) Hello, world! (c) Our school trip (d) Fun facts
  22. 22.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  23. 23.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h3> or <h5>? (a) <h6> (b) <h3> (c) <h5> (d) <h1>
  24. 24.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 4 (d) 6
  25. 25.True or false: a web server stores a website’s files. (a) False (b) True
  26. 26.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h6>? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
  27. 27.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  28. 28.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Banana</li>
    </ul>
  29. 29.🔗 Where does this link open?
    <a href="https://example.com">School news</a>
    (a) in the same tab (b) in a new tab
  30. 30.Which of these is a closing tag? (a) <title> (b) <li> (c) <body> (d) </body>
  31. 31.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
  32. 32.True or false: <img> goes in the body. (a) True (b) False
  33. 33.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <p>My pets</p>
    <p>Rain today</p>
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <p>Fun facts</p>
  34. 34.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h4>I love mangoes.</h4>
    <h4>My pets</h4>
    <p>My best friend</p>
  35. 35.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) Hot Tags (c) High Tech (d) HyperText
  36. 36.📋 What number does the browser show next to “Mango”?
    <ol start="9">
      <li>Orange</li>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  37. 37.🔍 Which is the odd one out? (a) has an address bar (b) shows pages from the web (c) turns HTML into a page (d) hosts websites online
  38. 38.🔍 Which line is missing its closing tag?
    line 1: <b>Our school trip</b>
    line 2: <h3>Cricket is fun.
    line 3: <em>My best friend</em>
    (a) line 3 (b) line 2 (c) line 1
  39. 39.📋 Does this list show bullets or numbers?
    <ul>
      <li>Mango</li>
      <li>Guava</li>
    </ul>
    (a) bullets (b) numbers
  40. 40.Which of these is an opening tag? (a) </body> (b) <title> (c) </title> (d) </h1>

Answer key

  1. True
  2. False
  3. <h1>
  4. line 1
  5. <ul>
  6. <h2>
  7. Planets
  8. Yes
  9. bullets
  10. shows pages from the web
  11. 2
  12. 3
  13. <h6>
  14. False
  15. True
  16. Yes
  17. width
  18. news.html
  19. False
  20. to leave notes
  21. My pets
  22. in the head
  23. <h6>
  24. 6
  25. True
  26. <h1>
  27. 4
  28. 5
  29. in the same tab
  30. </body>
  31. <a>
  32. True
  33. 6
  34. 3
  35. HyperText
  36. 12
  37. hosts websites online
  38. line 2
  39. bullets
  40. <title>

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