← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 382 · 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 heading shows the SMALLEST text: <h3>, <h1>, <h4> or <h5>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
  2. 2.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Mango</li>
    </ol>
  3. 3.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) HyperText (c) High Tech (d) Home Text
  4. 4.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <h2>Cricket is fun.</h2>
    <p>My best friend</p>
    <p>My pets</p>
  5. 5.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="350">
  6. 6.Which of these is true of a web browser? (a) shows line numbers (b) colours code to help us (c) opens web pages for us (d) is where we type code
  7. 7.🔠 Are headings shown in bold by default? (a) No (b) Yes
  8. 8.🔢 In a basic web page file, which comes first: “<html>” or “<head>”? (a) <head> (b) <html>
  9. 9.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
  10. 10.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  11. 11.🖼️ Why do we add alt text to an image? (a) to describe the image (b) to colour it (c) to load it faster (d) to make it bigger
  12. 12.🔍 One closing tag is missing. Which one?
    <p>Hello, world!</p>
    <b>Our school trip</b>
    <h2>The red kite
    (a) </p> (b) </b> (c) </h2> (d) </small>
  13. 13.True or false: HTML on its own can make links to pages. (a) True (b) False
  14. 14.📛 In <a href="x.html">, what is href? (a) an attribute (b) a closing tag (c) a comment (d) an element name
  15. 15.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h6> or <h2>? (a) <h5> (b) <h6> (c) <h2> (d) <h3>
  16. 16.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
  17. 17.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
  18. 18.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  19. 19.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <!-- <p>Fun facts</p> -->
    <p>My best friend</p>
    (a) Cricket is fun. (b) My best friend (c) Fun facts (d) Hello, world!
  20. 20.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>My pets</p>
    <p>Hello, world!</p>
    <p>Fun facts</p>
    (a) My pets (b) Hello, world! (c) The red kite (d) Fun facts
  21. 21.💬 Does the browser show comments on the page? (a) Yes (b) No
  22. 22.🌐 Which one is where we type code? (a) a web server (b) a web browser (c) a code editor
  23. 23.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .png (d) .html
  24. 24.📋 Does this list show bullets or numbers?
    <ol>
      <li>Papaya</li>
      <li>Jamun</li>
    </ol>
    (a) numbers (b) bullets
  25. 25.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <!-- <p>The red kite</p> -->
    <p>Hello, world!</p>
    (a) Hello, world! (b) Rain today (c) The red kite
  26. 26.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) Class 7 Blog (c) index.html (d) All about me
  27. 27.Which of these goes in the body? (a) <img> (b) <title> (c) <style> (d) <meta charset="utf-8">
  28. 28.Which of these has a closing tag? (a) <img> (b) <input> (c) <li> (d) <br>
  29. 29.🌍 Which program shows a web page to us? (a) a calculator (b) a web browser (c) a paint program (d) a music player
  30. 30.True or false: <li> has a closing tag. (a) True (b) False
  31. 31.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) opens it in a new tab (d) makes it blank
  32. 32.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Kites fly high<br>Stars shine<br>Sky is blue</p>
  33. 33.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) All about me (b) body (c) Cricket Club (d) Here is my best one.
  34. 34.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  35. 35.True or false: a code editor saves our .html files. (a) True (b) False
  36. 36.🌐 Which one stores a website’s files? (a) a code editor (b) a web browser (c) a web server
  37. 37.🔗 Which words do you click on?
    <a href="maths.html">Contact us</a>
    (a) href (b) Visit the site (c) Contact us (d) maths.html
  38. 38.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) <h1/> (c) <\h1> (d) </h1>
  39. 39.True or false: <ol> shows bullet points. (a) True (b) False
  40. 40.True or false: <ol> lists things in any order. (a) True (b) False

Answer key

  1. <h5>
  2. 3
  3. HyperText
  4. 3
  5. 350
  6. opens web pages for us
  7. Yes
  8. <html>
  9. <a href="about.html">
  10. a closing tag
  11. to describe the image
  12. </h2>
  13. True
  14. an attribute
  15. <h6>
  16. 2
  17. a web server
  18. an opening tag
  19. Fun facts
  20. The red kite
  21. No
  22. a code editor
  23. .html
  24. numbers
  25. The red kite
  26. Class 7 Blog
  27. <img>
  28. <li>
  29. a web browser
  30. True
  31. opens it in a new tab
  32. 4
  33. All about me
  34. in the head
  35. True
  36. a web server
  37. Contact us
  38. </h1>
  39. False
  40. False

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