← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 934 · 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: <meta> is an empty tag. (a) True (b) False
  2. 2.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h5> or <h1>? (a) <h4> (b) <h1> (c) <h2> (d) <h5>
  3. 3.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  4. 4.True or false: in <img>, width sets how wide it is. (a) False (b) True
  5. 5.🔍 One closing tag is missing. Which one?
    <p>My pets</p>
    <em>Hello, world!
    <b>Rain today</b>
    (a) </i> (b) </em> (c) </b> (d) </p>
  6. 6.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  7. 7.True or false: <h1> goes in the body. (a) False (b) True
  8. 8.📋 Which list suits a shopping list in any order? (a) <ul> (b) <ol> (c) <br> (d) <hr>
  9. 9.📝 What does <p> make? (a) a paragraph (b) a link (c) a table (d) a picture
  10. 10.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h5> or <h1>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
  11. 11.🔗 Where does this link open?
    <a href="art.html">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  12. 12.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) turns HTML into a page (d) stores a website’s files
  13. 13.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h4>? (a) <h6> (b) <h3> (c) <h4> (d) <h2>
  14. 14.🔗 Which attribute holds the address of a link? (a) id (b) src (c) alt (d) href
  15. 15.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  16. 16.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h3> or <h6>? (a) <h5> (b) <h2> (c) <h6> (d) <h3>
  17. 17.🏷️ Every HTML tag starts with which sign? (a) < (b) ( (c) { (d) [
  18. 18.🖼️ Which attribute of <img> is read by screen readers? (a) width (b) alt (c) src (d) height
  19. 19.🔗 Where does this link open?
    <a href="maths.html" target="_blank">School news</a>
    (a) in the same tab (b) in a new tab
  20. 20.🔍 Which is the odd one out? (a) turns HTML into a page (b) opens web pages for us (c) has an address bar (d) saves our .html files
  21. 21.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
  22. 22.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <ol> (d) <p>
  23. 23.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <p> (d) <h3>
  24. 24.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h1> (d) <h4>
  25. 25.🖼️ Which attribute of <img> describes the picture? (a) src (b) width (c) height (d) alt
  26. 26.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
  27. 27.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a slash / (c) a hash # (d) a dot .
  28. 28.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) element (c) address (d) editor
  29. 29.📄 Where does the text of <title> appear? (a) in a big heading (b) on the browser tab (c) at the bottom (d) nowhere
  30. 30.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <p>My pets</p>
    <p>Fun facts</p>
    <!-- <p>Hello, world!</p> -->
    (a) Fun facts (b) Hello, world! (c) Cricket is fun. (d) My pets
  31. 31.🔗 Which address opens when you click this link?
    <a href="art.html">Take the quiz</a>
    (a) Take the quiz (b) quiz.html (c) art.html (d) news.html
  32. 32.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <img> (d) <a>
  33. 33.🔗 Which words do you click on?
    <a href="about.html">Play games</a>
    (a) Play games (b) about.html (c) About us (d) href
  34. 34.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>Our school trip</p> -->
    <p>My best friend</p>
    <p>Good morning!</p>
    (a) Good morning! (b) Our school trip (c) The red kite (d) My best friend
  35. 35.True or false: HTML on its own can pick a random number. (a) False (b) True
  36. 36.🏷️ Which is the closing tag for <strong>? (a) <strong/> (b) </strong> (c) <\strong> (d) <strong>
  37. 37.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  38. 38.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>My pets</p> -->
  39. 39.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
  40. 40.🔗 Which tag makes a clickable link? (a) <link> (b) <img> (c) <a> (d) <p>

Answer key

  1. True
  2. <h5>
  3. 2
  4. True
  5. </em>
  6. a closing tag
  7. True
  8. <ul>
  9. a paragraph
  10. <h6>
  11. in the same tab
  12. turns HTML into a page
  13. <h2>
  14. href
  15. Yes
  16. <h2>
  17. <
  18. alt
  19. in a new tab
  20. saves our .html files
  21. <ul>
  22. <li>
  23. <h6>
  24. <h5>
  25. alt
  26. 4
  27. a slash /
  28. element
  29. on the browser tab
  30. Hello, world!
  31. art.html
  32. <img>
  33. Play games
  34. Our school trip
  35. False
  36. </strong>
  37. an opening tag
  38. 1
  39. a code editor
  40. <a>

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