← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 849 · 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.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  2. 2.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <p>Rain today</p>
    <!-- <p>My best friend</p> -->
    (a) Our school trip (b) My best friend (c) Rain today
  3. 3.True or false: HTML on its own cannot count button clicks. (a) False (b) True
  4. 4.📄 Can HTML on its own make headings? (a) Yes (b) No
  5. 5.📋 How many items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Orange</li>
    </ul>
  6. 6.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <p>Good morning!</p>
  7. 7.True or false: <li> is one item of a list. (a) False (b) True
  8. 8.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="400">
    (a) bus.jpg (b) An old fort (c) Our school bus (d) width
  9. 9.🔗 Which words do you click on?
    <a href="maths.html">Maths fun</a>
    (a) maths.html (b) Art corner (c) href (d) Maths fun
  10. 10.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Stars shine<br>Birds sing<br>Kites fly high<br>Roses are red</p>
  11. 11.🔍 One closing tag is missing. Which one?
    <h2>Cricket is fun.
    <em>Good morning!</em>
    <p>The red kite</p>
    (a) </em> (b) </h2> (c) </p> (d) </b>
  12. 12.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <h6> (d) <br>
  13. 13.🔍 Which line is missing its closing tag?
    line 1: <small>Fun facts</small>
    line 2: <u>Rain today</u>
    line 3: <p>Cricket is fun.
    (a) line 3 (b) line 2 (c) line 1
  14. 14.True or false: in <img>, height is read by screen readers. (a) False (b) True
  15. 15.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) Welcome! (c) Here is my best one. (d) body
  16. 16.🔗 Which address opens when you click this link?
    <a href="quiz.html">Contact us</a>
    (a) quiz.html (b) Contact us (c) games.html (d) about.html
  17. 17.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Our school trip</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>My pets</p> -->
  18. 18.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  19. 19.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h1> or <h4>? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
  20. 20.📄 Which part holds everything you see on the page? (a) the body (b) the doctype (c) the title (d) the head
  21. 21.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  22. 22.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) My drawings (b) We won by 5 runs. (c) My Hobbies (d) index.html
  23. 23.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    <!-- <p>My pets</p> -->
  24. 24.True or false: HTML on its own can show paragraphs. (a) True (b) False
  25. 25.💬 How does an HTML comment start? (a) # (b) /* (c) <!-- (d) //
  26. 26.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h4>? (a) <h4> (b) <h6> (c) <h3> (d) <h5>
  27. 27.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Roses are red</p>
  28. 28.True or false: <ol> is an unordered list. (a) False (b) True
  29. 29.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <ol> (c) <li>
  30. 30.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <p>Good morning!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>The red kite</p>
    <p>My best friend</p>
  31. 31.🔗 Where does this link open?
    <a href="https://example.com" target="_blank">About us</a>
    (a) in the same tab (b) in a new tab
  32. 32.🔢 In a basic web page file, which comes FIRST? (a) <html> (b) <!DOCTYPE html> (c) </body> (d) <body>
  33. 33.🔠 Are headings shown in bold by default? (a) Yes (b) No
  34. 34.🏷️ Which is the closing tag for <h3>? (a) <\h3> (b) <h3> (c) <h3/> (d) </h3>
  35. 35.📋 Which list tag lists things in any order? (a) <ol> (b) <ul> (c) <li>
  36. 36.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Banana</li>
    </ol>
  37. 37.🖼️ Which tag puts a picture on a page? (a) <img> (b) <a> (c) <p> (d) <pic>
  38. 38.📝 What do we need to write HTML? (a) a microphone (b) a plain text editor (c) a paintbrush (d) a printer
  39. 39.True or false: a web browser hosts websites online. (a) False (b) True
  40. 40.Which of these is an opening tag? (a) </b> (b) <h1> (c) </p> (d) </h1>

Answer key

  1. Yes
  2. My best friend
  3. True
  4. Yes
  5. 4
  6. 3
  7. True
  8. Our school bus
  9. Maths fun
  10. 5
  11. </h2>
  12. <h1>
  13. line 3
  14. False
  15. Welcome!
  16. quiz.html
  17. 1
  18. a closing tag
  19. <h6>
  20. the body
  21. <ul>
  22. My Hobbies
  23. 2
  24. True
  25. <!--
  26. <h3>
  27. 2
  28. False
  29. <ol>
  30. 4
  31. in a new tab
  32. <!DOCTYPE html>
  33. Yes
  34. </h3>
  35. <ul>
  36. 2
  37. <img>
  38. a plain text editor
  39. False
  40. <h1>

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