← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 925 · 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.📝 What does <p> make? (a) a table (b) a picture (c) a link (d) a paragraph
  2. 2.🔗 Which address opens when you click this link?
    <a href="games.html">Maths fun</a>
    (a) contact.html (b) about.html (c) Maths fun (d) games.html
  3. 3.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <br> (d) <p>
  4. 4.🔗 What does HyperText mean? (a) very big text (b) secret text (c) text in colour (d) text with links
  5. 5.Which of these is an opening tag? (a) </body> (b) <body> (c) </li> (d) </h1>
  6. 6.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <p>Our school trip</p>
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
    (a) I love mangoes. (b) Our school trip (c) Hello, world! (d) My pets
  7. 7.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <img> (d) <pic>
  8. 8.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Hello, world!</p>
    <p>Good morning!</p>
    <h4>My pets</h4>
  9. 9.📄 Can HTML on its own run a game loop? (a) No (b) Yes
  10. 10.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Rivers flow<br>Birds sing</p>
  11. 11.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
  12. 12.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Sky is blue</p>
  13. 13.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="100">
    (a) A happy dog (b) dog.jpg (c) The full moon (d) width
  14. 14.🔢 In a basic web page file, which comes first: “<head>” or “</html>”? (a) </html> (b) <head>
  15. 15.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <hr> (c) <br> (d) <ul>
  16. 16.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  17. 17.True or false: a web server sends pages over the net. (a) True (b) False
  18. 18.True or false: <ul> is an empty tag. (a) True (b) False
  19. 19.🔍 Which is the odd one out? (a) opens web pages for us (b) has an address bar (c) shows pages from the web (d) answers page requests
  20. 20.True or false: <ol> is an unordered list. (a) False (b) True
  21. 21.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 3 (d) 10
  22. 22.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  23. 23.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  24. 24.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>My best friend</p> -->
    <!-- <p>Hello, world!</p> -->
  25. 25.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  26. 26.True or false: in <img>, height sets how tall it is. (a) False (b) True
  27. 27.🖼️ Which attribute of <img> sets how tall it is? (a) alt (b) height (c) width (d) src
  28. 28.📝 Does <li> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  29. 29.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) About us (b) Contact us (c) games.html (d) href
  30. 30.Which of these is an opening tag? (a) <li> (b) </body> (c) </p> (d) </li>
  31. 31.📋 Does this list show bullets or numbers?
    <ul>
      <li>Grapes</li>
      <li>Mango</li>
    </ul>
    (a) numbers (b) bullets
  32. 32.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <p> (c) <ul> (d) <table>
  33. 33.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Litchi</li>
    </ul>
  34. 34.🔗 Where does this link open?
    <a href="art.html" target="_blank">Contact us</a>
    (a) in a new tab (b) in the same tab
  35. 35.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <p>I love mangoes.</p>
    <p>Rain today</p>
    <h2>My best friend</h2>
    <p>Good morning!</p>
    <p>Good morning!</p>
  36. 36.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
  37. 37.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) hides the link (d) makes it bold
  38. 38.Which of these is true of a web server? (a) shows pages from the web (b) sends pages over the net (c) colours code to help us (d) has an address bar
  39. 39.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h3>
  40. 40.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <link rel="stylesheet"> (c) <style> (d) <h1>

Answer key

  1. a paragraph
  2. games.html
  3. <h1>
  4. text with links
  5. <body>
  6. My pets
  7. <img>
  8. 2
  9. No
  10. 3
  11. Yes
  12. 2
  13. A happy dog
  14. <head>
  15. <ol>
  16. Yes
  17. True
  18. False
  19. answers page requests
  20. False
  21. 6
  22. in the head
  23. a closing tag
  24. 1
  25. an opening tag
  26. True
  27. height
  28. has a closing tag
  29. About us
  30. <li>
  31. bullets
  32. <meta charset="utf-8">
  33. 3
  34. in a new tab
  35. 5
  36. <li>
  37. opens it in a new tab
  38. sends pages over the net
  39. <h2>
  40. <h1>

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