← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 824 · 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 is used for the main title on a page? (a) <h1> (b) <br> (c) <h6> (d) <p>
  2. 2.🔗 Which words do you click on?
    <a href="https://example.com">Maths fun</a>
    (a) https://example.com (b) Art corner (c) href (d) Maths fun
  3. 3.🌐 Which one colours code to help us? (a) a web server (b) a web browser (c) a code editor
  4. 4.🔗 Where does this link open?
    <a href="maths.html">Play games</a>
    (a) in the same tab (b) in a new tab
  5. 5.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Banana</li>
    </ol>
  6. 6.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 6 (d) 10
  7. 7.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h2>Cricket is fun.</h2>
    <h4>I love mangoes.</h4>
    <p>Fun facts</p>
  8. 8.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Guava</li>
    </ul>
  9. 9.🔗 Which words do you click on?
    <a href="games.html">Visit the site</a>
    (a) Maths fun (b) Visit the site (c) games.html (d) href
  10. 10.🔍 One closing tag is missing. Which one?
    <i>The red kite</i>
    <h1>Fun facts
    <u>Hello, world!</u>
    (a) </h1> (b) </i> (c) </u> (d) </b>
  11. 11.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Guava</li>
    </ol>
  12. 12.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an element name (c) an attribute (d) a comment
  13. 13.Which of these is true of a web server? (a) shows line numbers (b) opens web pages for us (c) shows pages from the web (d) answers page requests
  14. 14.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
  15. 15.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
  16. 16.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <h2>Cricket is fun.</h2>
    <p>The red kite</p>
    <p>Cricket is fun.</p>
  17. 17.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <hr> (d) <br>
  18. 18.True or false: a web browser shows pages from the web. (a) False (b) True
  19. 19.True or false: <table> goes in the body. (a) False (b) True
  20. 20.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <!-- <p>Good morning!</p> -->
    <p>Rain today</p>
    <p>My pets</p>
    (a) Our school trip (b) My pets (c) Rain today (d) Good morning!
  21. 21.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Birds sing<br>Stars shine</p>
  22. 22.📝 What does <p> make? (a) a picture (b) a table (c) a link (d) a paragraph
  23. 23.True or false: HTML on its own cannot add up two numbers. (a) False (b) True
  24. 24.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
  25. 25.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <li> (c) <ol>
  26. 26.True or false: <meta> is an empty tag. (a) False (b) True
  27. 27.Which of these is an opening tag? (a) </p> (b) <b> (c) </title> (d) </body>
  28. 28.🔢 In a basic web page file, which comes FIRST? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) </head>
  29. 29.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
  30. 30.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="50">
    (a) width (b) A happy dog (c) dog.jpg (d) The full moon
  31. 31.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) Play games (b) href (c) contact.html (d) About us
  32. 32.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) on the browser tab (d) at the bottom
  33. 33.🔍 Which line is missing its closing tag?
    line 1: <u>Rain today</u>
    line 2: <h2>The red kite</h2>
    line 3: <h1>I love mangoes.
    (a) line 2 (b) line 1 (c) line 3
  34. 34.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
  35. 35.🔗 Which address opens when you click this link?
    <a href="about.html">Visit the site</a>
    (a) Visit the site (b) contact.html (c) https://example.com (d) about.html
  36. 36.📄 What is the first line of an HTML5 page? (a) <body> (b) <html> (c) <!DOCTYPE html> (d) <head>
  37. 37.🔗 Which address opens when you click this link?
    <a href="about.html">About us</a>
    (a) https://example.com (b) about.html (c) About us (d) contact.html
  38. 38.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a href="about.html"> (d) <a alt="about.html">
  39. 39.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h3> or <h1>? (a) <h4> (b) <h1> (c) <h5> (d) <h3>
  40. 40.🏷️ Which is the closing tag for <em>? (a) <em> (b) <\em> (c) </em> (d) <em/>

Answer key

  1. <h1>
  2. Maths fun
  3. a code editor
  4. in the same tab
  5. 5
  6. 6
  7. 3
  8. 4
  9. Visit the site
  10. </h1>
  11. 4
  12. an attribute
  13. answers page requests
  14. <img>
  15. in the head
  16. 3
  17. <ol>
  18. True
  19. True
  20. Good morning!
  21. 3
  22. a paragraph
  23. True
  24. <ul>
  25. <li>
  26. True
  27. <b>
  28. <!DOCTYPE html>
  29. <ol>
  30. A happy dog
  31. Play games
  32. on the browser tab
  33. line 3
  34. <ul>
  35. about.html
  36. <!DOCTYPE html>
  37. about.html
  38. <a href="about.html">
  39. <h1>
  40. </em>

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