← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 133 · 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 number does the browser show next to “Jamun”?
    <ol>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Litchi</li>
    </ol>
  2. 2.🔗 What does target="_blank" do to a link? (a) makes it bold (b) opens it in a new tab (c) hides the link (d) makes it blank
  3. 3.🔗 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">
  4. 4.Which of these is an opening tag? (a) </p> (b) </h1> (c) </body> (d) <h1>
  5. 5.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <head> (d) <body>
  6. 6.🔠 How many heading levels does HTML have? (a) 10 (b) 4 (c) 6 (d) 3
  7. 7.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="100">
    (a) Map of India (b) A red kite (c) width (d) kite.png
  8. 8.🔍 One closing tag is missing. Which one?
    <small>My best friend
    <h3>Fun facts</h3>
    <h2>Good morning!</h2>
    (a) </h2> (b) </h1> (c) </h3> (d) </small>
  9. 9.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) We won by 5 runs. (b) My drawings (c) Cricket Club (d) index.html
  10. 10.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
  11. 11.Which of these is an opening tag? (a) <b> (b) </li> (c) </p> (d) </title>
  12. 12.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
  13. 13.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    <!-- <p>Fun facts</p> -->
  14. 14.True or false: HTML on its own can make headings. (a) True (b) False
  15. 15.🔗 Which address opens when you click this link?
    <a href="quiz.html">Contact us</a>
    (a) Contact us (b) about.html (c) quiz.html (d) games.html
  16. 16.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Kites fly high<br>Rivers flow<br>Birds sing</p>
  17. 17.True or false: a web server answers page requests. (a) False (b) True
  18. 18.Which of these has a closing tag? (a) <img> (b) <meta> (c) <input> (d) <h1>
  19. 19.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) <\h1> (c) <h1/> (d) </h1>
  20. 20.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an element name (c) an attribute (d) a comment
  21. 21.🏷️ Which is the closing tag for <p>? (a) <p/> (b) <p> (c) </p> (d) <\p>
  22. 22.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  23. 23.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) </head> (b) <html>
  24. 24.True or false: <ul> lists steps in order. (a) False (b) True
  25. 25.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h5> or <h3>? (a) <h5> (b) <h4> (c) <h2> (d) <h3>
  26. 26.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h4> or <h1>? (a) <h4> (b) <h1> (c) <h6> (d) <h5>
  27. 27.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My pets</p> -->
    <!-- <p>Rain today</p> -->
  28. 28.🔢 In a basic web page file, which comes LAST? (a) <head> (b) </body> (c) <html> (d) </html>
  29. 29.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) secret text (d) text with links
  30. 30.📋 Which list tag is one item of a list? (a) <ol> (b) <ul> (c) <li>
  31. 31.True or false: <meta> has a closing tag. (a) True (b) False
  32. 32.🏷️ Which is the closing tag for <em>? (a) <em/> (b) <\em> (c) </em> (d) <em>
  33. 33.Which of these is a closing tag? (a) <body> (b) </li> (c) <h1> (d) <li>
  34. 34.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h1>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
  35. 35.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Grapes</li>
    </ol>
  36. 36.True or false: <link rel="stylesheet"> goes in the head. (a) False (b) True
  37. 37.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) on the browser tab (d) in a big heading
  38. 38.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) </h2> (c) <h2/> (d) <h2>
  39. 39.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="150">
    (a) An old fort (b) fort.jpg (c) kite.png (d) tiger.jpg
  40. 40.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to make links (d) to add colour

Answer key

  1. 2
  2. opens it in a new tab
  3. <a href="about.html">
  4. <h1>
  5. <!DOCTYPE html>
  6. 6
  7. A red kite
  8. </small>
  9. Cricket Club
  10. <ol>
  11. <b>
  12. False
  13. 1
  14. True
  15. quiz.html
  16. 4
  17. True
  18. <h1>
  19. </h1>
  20. an attribute
  21. </p>
  22. an opening tag
  23. <html>
  24. False
  25. <h5>
  26. <h1>
  27. 1
  28. </html>
  29. text with links
  30. <li>
  31. False
  32. </em>
  33. </li>
  34. <h1>
  35. 3
  36. True
  37. on the browser tab
  38. </h2>
  39. fort.jpg
  40. to leave notes

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