← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 874 · 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 pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="400">
  2. 2.Which of these is true of a web browser? (a) shows pages from the web (b) stores a website’s files (c) hosts websites online (d) is where we type code
  3. 3.🏷️ HTML marks up text using ___. (a) tags (b) keys (c) pixels (d) wires
  4. 4.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>The red kite</p> -->
    <!-- <p>My best friend</p> -->
    <p>Fun facts</p>
  5. 5.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <p> (d) <ol>
  6. 6.📋 What number does the browser show next to “Litchi”?
    <ol start="7">
      <li>Mango</li>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ol>
  7. 7.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow<br>Stars shine<br>Birds sing<br>Sky is blue</p>
  8. 8.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
  9. 9.🔗 What does HyperText mean? (a) text in colour (b) secret text (c) text with links (d) very big text
  10. 10.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="400">
    (a) cake.jpg (b) A happy dog (c) width (d) Birthday cake
  11. 11.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>Our school trip</p>
    <!-- <p>Fun facts</p> -->
  12. 12.Which of these has a closing tag? (a) <br> (b) <h1> (c) <meta> (d) <img>
  13. 13.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  14. 14.🔍 One closing tag is missing. Which one?
    <h2>Good morning!</h2>
    <strong>Rain today</strong>
    <b>Cricket is fun.
    (a) </h2> (b) </strong> (c) </h3> (d) </b>
  15. 15.Which of these is an opening tag? (a) </p> (b) </body> (c) </li> (d) <h1>
  16. 16.True or false: <title> goes in the body. (a) True (b) False
  17. 17.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
  18. 18.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>Hello, world!</p>
    <p>Our school trip</p>
    (a) Our school trip (b) Cricket is fun. (c) Hello, world! (d) The red kite
  19. 19.💬 How does an HTML comment start? (a) // (b) # (c) /* (d) <!--
  20. 20.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h3>? (a) <h6> (b) <h1> (c) <h3> (d) <h5>
  21. 21.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Rivers flow</p>
  22. 22.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
  23. 23.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <br> (d) <ul>
  24. 24.True or false: <meta> is an empty tag. (a) True (b) False
  25. 25.🏷️ Which is the closing tag for <b>? (a) <\b> (b) <b/> (c) <b> (d) </b>
  26. 26.🔍 One closing tag is missing. Which one?
    <p>Cricket is fun.</p>
    <u>Hello, world!</u>
    <h3>Good morning!
    (a) </h3> (b) </p> (c) </b> (d) </u>
  27. 27.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h3>I love mangoes.</h3>
    <p>Fun facts</p>
    <h2>Good morning!</h2>
  28. 28.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h6> or <h5>? (a) <h1> (b) <h2> (c) <h5> (d) <h6>
  29. 29.🔗 Which address opens when you click this link?
    <a href="art.html">Play games</a>
    (a) news.html (b) Play games (c) art.html (d) quiz.html
  30. 30.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p> (c) <p/> (d) </p>
  31. 31.🔍 Which is the odd one out? (a) is where we type code (b) answers page requests (c) sends pages over the net (d) stores a website’s files
  32. 32.🔗 Which words do you click on?
    <a href="about.html">Play games</a>
    (a) Play games (b) about.html (c) href (d) About us
  33. 33.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h3> or <h2>? (a) <h5> (b) <h6> (c) <h3> (d) <h2>
  34. 34.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
  35. 35.🔍 Which is the odd one out? (a) sends pages over the net (b) opens web pages for us (c) shows pages from the web (d) turns HTML into a page
  36. 36.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2> (c) <h2/> (d) </h2>
  37. 37.🔍 Which line is missing its closing tag?
    line 1: <h3>My pets</h3>
    line 2: <h1>Good morning!</h1>
    line 3: <h2>Fun facts
    (a) line 1 (b) line 2 (c) line 3
  38. 38.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
    <!-- <p>My best friend</p> -->
  39. 39.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <p>Fun facts</p>
    <h2>Rain today</h2>
    <h2>Our school trip</h2>
    <p>Cricket is fun.</p>
  40. 40.True or false: <h1> is an empty tag. (a) True (b) False

Answer key

  1. 400
  2. shows pages from the web
  3. tags
  4. 1
  5. <li>
  6. 8
  7. 5
  8. <img>
  9. text with links
  10. Birthday cake
  11. 2
  12. <h1>
  13. No
  14. </b>
  15. <h1>
  16. False
  17. <a>
  18. Cricket is fun.
  19. <!--
  20. <h1>
  21. 2
  22. <ul>
  23. <ul>
  24. True
  25. </b>
  26. </h3>
  27. 3
  28. <h6>
  29. art.html
  30. </p>
  31. is where we type code
  32. Play games
  33. <h6>
  34. <ol>
  35. sends pages over the net
  36. </h2>
  37. line 3
  38. 1
  39. 3
  40. False

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