← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 115 · 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.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 6 (c) 1 (d) 10
  2. 2.🖼️ Which tag puts a picture on a page? (a) <img> (b) <a> (c) <pic> (d) <p>
  3. 3.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h2> (b) <h5> (c) <h6> (d) <h1>
  4. 4.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>My best friend</p>
    <h2>Cricket is fun.</h2>
    <h2>My best friend</h2>
    <h2>Hello, world!</h2>
  5. 5.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  6. 6.🔗 Which address opens when you click this link?
    <a href="quiz.html">Play games</a>
    (a) Play games (b) quiz.html (c) about.html (d) games.html
  7. 7.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h3> or <h6>? (a) <h3> (b) <h4> (c) <h6> (d) <h2>
  8. 8.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
  9. 9.📄 Can HTML on its own make headings? (a) Yes (b) No
  10. 10.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  11. 11.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  12. 12.🔗 Which words do you click on?
    <a href="quiz.html">School news</a>
    (a) School news (b) Take the quiz (c) href (d) quiz.html
  13. 13.💬 Which text will NOT show on the page?
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
    <p>The red kite</p>
    (a) The red kite (b) I love mangoes. (c) My best friend
  14. 14.🔍 One closing tag is missing. Which one?
    <h1>My pets
    <u>The red kite</u>
    <h3>Good morning!</h3>
    (a) </p> (b) </u> (c) </h3> (d) </h1>
  15. 15.🌐 Which one is where we type code? (a) a web server (b) a web browser (c) a code editor
  16. 16.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p> (c) </p> (d) <p/>
  17. 17.🔍 Which line is missing its closing tag?
    line 1: <u>My pets</u>
    line 2: <em>Our school trip
    line 3: <i>I love mangoes.</i>
    (a) line 2 (b) line 3 (c) line 1
  18. 18.🔗 Where does this link open?
    <a href="about.html">About us</a>
    (a) in the same tab (b) in a new tab
  19. 19.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a slash / (c) a hash # (d) a dot .
  20. 20.📋 Which list suits a shopping list in any order? (a) <br> (b) <hr> (c) <ol> (d) <ul>
  21. 21.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
  22. 22.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  23. 23.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h4> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h5>
  24. 24.True or false: in <img>, src sets how tall it is. (a) True (b) False
  25. 25.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
  26. 26.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  27. 27.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h3> or <h2>? (a) <h3> (b) <h1> (c) <h2> (d) <h6>
  28. 28.🔗 Which address opens when you click this link?
    <a href="contact.html">Contact us</a>
    (a) https://example.com (b) Contact us (c) contact.html (d) maths.html
  29. 29.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
  30. 30.🔍 Which is the odd one out? (a) shows line numbers (b) opens web pages for us (c) saves our .html files (d) is where we type code
  31. 31.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>My best friend</p> -->
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
  32. 32.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h6>? (a) <h5> (b) <h2> (c) <h1> (d) <h6>
  33. 33.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h4> or <h6>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
  34. 34.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  35. 35.📄 Can HTML on its own add up two numbers? (a) No (b) Yes
  36. 36.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Orange</li>
    </ul>
  37. 37.💬 How does an HTML comment start? (a) <!-- (b) /* (c) # (d) //
  38. 38.🔍 One closing tag is missing. Which one?
    <small>I love mangoes.</small>
    <h3>The red kite
    <h2>Rain today</h2>
    (a) </strong> (b) </h3> (c) </small> (d) </h2>
  39. 39.📋 Which list tag is an ordered list? (a) <li> (b) <ol> (c) <ul>
  40. 40.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>I love mangoes.</p>
    <p>Rain today</p>
    <p>Fun facts</p>
    (a) Good morning! (b) Fun facts (c) Rain today (d) I love mangoes.

Answer key

  1. 1
  2. <img>
  3. <h1>
  4. 2
  5. 2
  6. quiz.html
  7. <h2>
  8. 1
  9. Yes
  10. Yes
  11. has a closing tag
  12. School news
  13. I love mangoes.
  14. </h1>
  15. a code editor
  16. </p>
  17. line 2
  18. in the same tab
  19. a slash /
  20. <ul>
  21. False
  22. a closing tag
  23. <h5>
  24. False
  25. <a>
  26. has a closing tag
  27. <h6>
  28. contact.html
  29. <li>
  30. opens web pages for us
  31. 1
  32. <h1>
  33. <h1>
  34. in the body
  35. No
  36. 3
  37. <!--
  38. </h3>
  39. <ol>
  40. Good morning!

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