← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 717 · 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 text will NOT show on the page?
    <p>My pets</p>
    <p>Good morning!</p>
    <!-- <p>I love mangoes.</p> -->
    (a) My pets (b) Good morning! (c) I love mangoes.
  2. 2.🔗 Which address opens when you click this link?
    <a href="art.html">Art corner</a>
    (a) Art corner (b) news.html (c) art.html (d) quiz.html
  3. 3.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
  4. 4.True or false: <style> goes in the body. (a) True (b) False
  5. 5.📝 What does <br> do? (a) makes text bold (b) adds a picture (c) makes a list (d) starts a new line
  6. 6.Which of these is an opening tag? (a) </body> (b) <title> (c) </title> (d) </b>
  7. 7.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>Hello, world!</p>
    <!-- <p>My pets</p> -->
    <p>Good morning!</p>
    (a) Good morning! (b) Hello, world! (c) The red kite (d) My pets
  8. 8.🏷️ Which is the closing tag for <b>? (a) <b> (b) <\b> (c) </b> (d) <b/>
  9. 9.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 6 (d) 10
  10. 10.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) attribute (c) editor (d) element
  11. 11.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Visit the site</a>
    (a) in the same tab (b) in a new tab
  12. 12.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Banana</li>
    </ol>
  13. 13.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <li> (c) <ol>
  14. 14.🔍 Which is the odd one out? (a) answers page requests (b) shows pages from the web (c) stores a website’s files (d) hosts websites online
  15. 15.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
    <p>Rain today</p>
    (a) I love mangoes. (b) Rain today (c) Hello, world!
  16. 16.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="400">
    (a) A red kite (b) Map of India (c) kite.png (d) width
  17. 17.🏷️ Every HTML tag starts with which sign? (a) < (b) ( (c) { (d) [
  18. 18.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h3>My pets</h3>
    <p>My pets</p>
    <p>Good morning!</p>
  19. 19.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="350">
    (a) Birthday cake (b) cake.jpg (c) width (d) A happy dog
  20. 20.Which of these is an opening tag? (a) </body> (b) <h1> (c) </h1> (d) </b>
  21. 21.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h1> or <h4>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
  22. 22.🔗 Where does this link open?
    <a href="news.html">Contact us</a>
    (a) in a new tab (b) in the same tab
  23. 23.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  24. 24.Which of these is true of a web server? (a) colours code to help us (b) is where we type code (c) answers page requests (d) shows line numbers
  25. 25.🔗 Which words do you click on?
    <a href="quiz.html">School news</a>
    (a) School news (b) quiz.html (c) Take the quiz (d) href
  26. 26.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    (a) Cricket is fun. (b) The red kite (c) My best friend
  27. 27.🔗 Which words do you click on?
    <a href="news.html">Contact us</a>
    (a) Contact us (b) news.html (c) href (d) Visit the site
  28. 28.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h1> or <h2>? (a) <h2> (b) <h5> (c) <h1> (d) <h6>
  29. 29.🔤 In “HTML”, what does the L stand for? (a) Line (b) Language (c) Link (d) Laptop
  30. 30.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
  31. 31.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h6> or <h5>? (a) <h2> (b) <h4> (c) <h6> (d) <h5>
  32. 32.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>The red kite</p>
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>My pets</p> -->
  33. 33.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
  34. 34.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h3>? (a) <h5> (b) <h1> (c) <h3> (d) <h6>
  35. 35.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  36. 36.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Riya’s Recipes (b) Thanks for visiting. (c) body (d) Welcome!
  37. 37.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h4>? (a) <h5> (b) <h1> (c) <h4> (d) <h6>
  38. 38.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h2> (d) <h1>
  39. 39.Which of these is true of a web server? (a) sends pages over the net (b) has an address bar (c) is where we type code (d) colours code to help us
  40. 40.True or false: <meta> has a closing tag. (a) False (b) True

Answer key

  1. I love mangoes.
  2. art.html
  3. <ul>
  4. False
  5. starts a new line
  6. <title>
  7. My pets
  8. </b>
  9. 1
  10. element
  11. in a new tab
  12. 2
  13. <li>
  14. shows pages from the web
  15. I love mangoes.
  16. A red kite
  17. <
  18. 2
  19. Birthday cake
  20. <h1>
  21. <h4>
  22. in the same tab
  23. No
  24. answers page requests
  25. School news
  26. My best friend
  27. Contact us
  28. <h6>
  29. Language
  30. Markup
  31. <h6>
  32. 1
  33. <a href="about.html">
  34. <h6>
  35. has a closing tag
  36. Welcome!
  37. <h1>
  38. <h1>
  39. sends pages over the net
  40. False

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