← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 428 · 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 tag makes a clickable link? (a) <link> (b) <img> (c) <a> (d) <p>
  2. 2.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
  3. 3.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  4. 4.True or false: <ul> is one item of a list. (a) True (b) False
  5. 5.📋 What number does the browser show next to “Papaya”?
    <ol start="9">
      <li>Jamun</li>
      <li>Banana</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Guava</li>
    </ol>
  6. 6.True or false: <title> has a closing tag. (a) False (b) True
  7. 7.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
  8. 8.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>My pets</p>
    <p>My pets</p>
    <p>Our school trip</p>
    <p>My best friend</p>
  9. 9.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h4>The red kite</h4>
    <p>I love mangoes.</p>
    <p>My best friend</p>
  10. 10.True or false: <meta charset="utf-8"> goes in the head. (a) True (b) False
  11. 11.📄 Can HTML on its own make headings? (a) Yes (b) No
  12. 12.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Rivers flow<br>Stars shine<br>Sky is blue</p>
  13. 13.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
  14. 14.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="50">
  15. 15.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  16. 16.💬 Does the browser show comments on the page? (a) No (b) Yes
  17. 17.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <h2>I love mangoes.</h2>
    <p>Our school trip</p>
  18. 18.🔍 Which line is missing its closing tag?
    line 1: <u>Fun facts
    line 2: <b>My best friend</b>
    line 3: <small>My pets</small>
    (a) line 1 (b) line 2 (c) line 3
  19. 19.True or false: <table> goes in the body. (a) False (b) True
  20. 20.🔗 Which address opens when you click this link?
    <a href="quiz.html">Take the quiz</a>
    (a) quiz.html (b) games.html (c) Take the quiz (d) about.html
  21. 21.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <link about.html> (d) <a src="about.html">
  22. 22.True or false: <hr> has a closing tag. (a) False (b) True
  23. 23.🔗 Which words do you click on?
    <a href="https://example.com">Take the quiz</a>
    (a) Play games (b) Take the quiz (c) https://example.com (d) href
  24. 24.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  25. 25.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    <p>Rain today</p>
    <!-- <p>My pets</p> -->
    (a) Cricket is fun. (b) My pets (c) Rain today (d) Our school trip
  26. 26.📝 What does <p> make? (a) a link (b) a picture (c) a paragraph (d) a table
  27. 27.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
  28. 28.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
    <!-- <p>The red kite</p> -->
  29. 29.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
  30. 30.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="200">
    (a) bus.jpg (b) fort.jpg (c) moon.png (d) The full moon
  31. 31.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) an attribute (d) a closing tag
  32. 32.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <h3>Good morning!</h3>
    <h2>Rain today</h2>
  33. 33.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h3>? (a) <h6> (b) <h1> (c) <h3> (d) <h5>
  34. 34.📝 Does <input> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  35. 35.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  36. 36.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) body (b) All about me (c) Thanks for visiting. (d) My Hobbies
  37. 37.True or false: <ul> goes in the head. (a) False (b) True
  38. 38.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “<head>”? (a) <head> (b) <!DOCTYPE html>
  39. 39.True or false: a web server turns HTML into a page. (a) False (b) True
  40. 40.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag

Answer key

  1. <a>
  2. <ul>
  3. a closing tag
  4. False
  5. 11
  6. True
  7. True
  8. 5
  9. 2
  10. True
  11. Yes
  12. 4
  13. 1
  14. 50
  15. an opening tag
  16. No
  17. 2
  18. line 1
  19. True
  20. quiz.html
  21. <a href="about.html">
  22. False
  23. Take the quiz
  24. Yes
  25. My pets
  26. a paragraph
  27. <
  28. 2
  29. in the body
  30. moon.png
  31. an attribute
  32. 3
  33. <h6>
  34. an empty tag
  35. a closing tag
  36. All about me
  37. False
  38. <!DOCTYPE html>
  39. False
  40. a closing tag

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