← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 157 · 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.🔢 In a basic web page file, which comes first: “<head>” or “<html>”? (a) <head> (b) <html>
  2. 2.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h3> (d) <h1>
  3. 3.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Sky is blue<br>Rivers flow<br>Roses are red<br>Stars shine</p>
  4. 4.🌐 Which one shows pages from the web? (a) a code editor (b) a web server (c) a web browser
  5. 5.🔗 Which address opens when you click this link?
    <a href="https://example.com">Take the quiz</a>
    (a) Take the quiz (b) maths.html (c) art.html (d) https://example.com
  6. 6.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  7. 7.📋 What number does the browser show next to “Litchi”?
    <ol>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Guava</li>
    </ol>
  8. 8.🌐 Which one stores a website’s files? (a) a web server (b) a code editor (c) a web browser
  9. 9.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ol>
    (a) bullets (b) numbers
  10. 10.🔍 One closing tag is missing. Which one?
    <h3>Rain today</h3>
    <h2>Good morning!
    <small>My pets</small>
    (a) </h3> (b) </u> (c) </h2> (d) </small>
  11. 11.True or false: <ul> is one item of a list. (a) True (b) False
  12. 12.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h6>? (a) <h5> (b) <h6> (c) <h1> (d) <h3>
  13. 13.True or false: <li> is an empty tag. (a) True (b) False
  14. 14.💬 Which text will NOT show on the page?
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
    <p>Good morning!</p>
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) Hello, world! (c) Good morning! (d) My pets
  15. 15.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Grapes</li>
      <li>Mango</li>
    </ul>
  16. 16.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  17. 17.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) <html> (b) </head>
  18. 18.True or false: in <img>, src names the picture file. (a) False (b) True
  19. 19.💬 Does the browser show comments on the page? (a) No (b) Yes
  20. 20.💬 How does an HTML comment end? (a) >> (b) */ (c) // (d) -->
  21. 21.True or false: a web browser turns HTML into a page. (a) False (b) True
  22. 22.🏷️ Which is the closing tag for <strong>? (a) <strong> (b) <strong/> (c) </strong> (d) <\strong>
  23. 23.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <link about.html>
  24. 24.True or false: <a> goes in the head. (a) True (b) False
  25. 25.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) src (d) id
  26. 26.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3/> (c) <h3> (d) <\h3>
  27. 27.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>My pets</p>
    <p>My pets</p>
    <h2>The red kite</h2>
  28. 28.🔗 Which words do you click on?
    <a href="https://example.com">Art corner</a>
    (a) https://example.com (b) href (c) Art corner (d) School news
  29. 29.🔍 Which line is missing its closing tag?
    line 1: <h2>I love mangoes.</h2>
    line 2: <i>Hello, world!</i>
    line 3: <p>Our school trip
    (a) line 2 (b) line 3 (c) line 1
  30. 30.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) Take the quiz (b) School news (c) art.html (d) href
  31. 31.Which of these goes in the body? (a) <title> (b) <p> (c) <meta charset="utf-8"> (d) <link rel="stylesheet">
  32. 32.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  33. 33.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Rivers flow<br>Birds sing<br>Roses are red</p>
  35. 35.Which of these is an empty tag? (a) <h1> (b) <b> (c) <hr> (d) <p>
  36. 36.🧱 HTML gives a web page its ___. (a) speed (b) colours (c) sound (d) structure
  37. 37.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h1>? (a) <h2> (b) <h1> (c) <h3> (d) <h4>
  38. 38.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 1 (d) 6
  39. 39.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) HyperText (c) Home Text (d) High Tech
  40. 40.🔗 Which address opens when you click this link?
    <a href="about.html">Art corner</a>
    (a) Art corner (b) https://example.com (c) contact.html (d) about.html

Answer key

  1. <html>
  2. <h6>
  3. 5
  4. a web browser
  5. https://example.com
  6. an empty tag
  7. 5
  8. a web server
  9. numbers
  10. </h2>
  11. False
  12. <h1>
  13. False
  14. My pets
  15. 4
  16. a closing tag
  17. <html>
  18. True
  19. No
  20. -->
  21. True
  22. </strong>
  23. <a href="about.html">
  24. False
  25. href
  26. </h3>
  27. 3
  28. Art corner
  29. line 3
  30. School news
  31. <p>
  32. No
  33. <ul>
  34. 4
  35. <hr>
  36. structure
  37. <h4>
  38. 1
  39. HyperText
  40. about.html

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