← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 452 · 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.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h2>I love mangoes.</h2>
    <h2>The red kite</h2>
  2. 2.🔗 Which words do you click on?
    <a href="art.html">Contact us</a>
    (a) art.html (b) Contact us (c) href (d) Visit the site
  3. 3.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  4. 4.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <br> (d) <h6>
  5. 5.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
  6. 6.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h2>I love mangoes.</h2>
    <p>Our school trip</p>
  7. 7.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="400">
    (a) tiger.jpg (b) bus.jpg (c) Our school bus (d) fort.jpg
  8. 8.True or false: in <img>, width names the picture file. (a) False (b) True
  9. 9.True or false: HTML on its own cannot keep a high score. (a) False (b) True
  10. 10.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h6> (b) <h1> (c) <h2> (d) <h3>
  11. 11.🌐 Which one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
  12. 12.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>Good morning!</p>
    <!-- <p>My pets</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <p>Hello, world!</p>
  13. 13.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
    <p>Cricket is fun.</p>
    (a) Good morning! (b) Fun facts (c) Cricket is fun.
  14. 14.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h3>? (a) <h4> (b) <h6> (c) <h3> (d) <h2>
  15. 15.Which of these is true of a code editor? (a) answers page requests (b) shows pages from the web (c) stores a website’s files (d) saves our .html files
  16. 16.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  17. 17.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) < (d) (
  18. 18.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Kites fly high<br>Birds sing<br>Sky is blue</p>
  19. 19.📋 How many items does this list show?
    <ol>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Orange</li>
      <li>Mango</li>
    </ol>
  20. 20.True or false: <ul> is an empty tag. (a) False (b) True
  21. 21.🔗 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>
  22. 22.True or false: in <img>, alt shows if the image fails. (a) False (b) True
  23. 23.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  24. 24.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <p>The red kite</p>
    <!-- <p>Rain today</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Hello, world!</p> -->
  25. 25.🔍 One closing tag is missing. Which one?
    <strong>My best friend</strong>
    <h3>Good morning!</h3>
    <small>Our school trip
    (a) </strong> (b) </i> (c) </small> (d) </h3>
  26. 26.🔠 Are headings shown in bold by default? (a) Yes (b) No
  27. 27.True or false: a web browser colours code to help us. (a) True (b) False
  28. 28.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  29. 29.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
  30. 30.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>Our school trip</p>
    <p>Good morning!</p>
    <p>Fun facts</p>
    (a) Fun facts (b) Our school trip (c) Good morning! (d) Rain today
  31. 31.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h3>Good morning!</h3>
    <p>I love mangoes.</p>
  32. 32.Which of these is an empty tag? (a) <meta> (b) <p> (c) <b> (d) <title>
  33. 33.🔗 Where does this link open?
    <a href="quiz.html">About us</a>
    (a) in a new tab (b) in the same tab
  34. 34.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
  35. 35.🔍 Which is the odd one out? (a) sends pages over the net (b) shows pages from the web (c) stores a website’s files (d) hosts websites online
  36. 36.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Play games</a>
    (a) in a new tab (b) in the same tab
  37. 37.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
  38. 38.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <p>I love mangoes.</p>
    <h2>I love mangoes.</h2>
    <h3>My best friend</h3>
  39. 39.📄 Where does the text of <title> appear? (a) in a big heading (b) nowhere (c) on the browser tab (d) at the bottom
  40. 40.🔗 Which words do you click on?
    <a href="art.html">Take the quiz</a>
    (a) href (b) Take the quiz (c) art.html (d) Play games

Answer key

  1. 3
  2. Contact us
  3. a closing tag
  4. <h1>
  5. </b>
  6. 2
  7. bus.jpg
  8. False
  9. True
  10. <h1>
  11. a web browser
  12. 2
  13. Good morning!
  14. <h2>
  15. saves our .html files
  16. has a closing tag
  17. <
  18. 4
  19. 6
  20. False
  21. <a href="about.html">
  22. True
  23. a closing tag
  24. 2
  25. </small>
  26. Yes
  27. False
  28. a closing tag
  29. in the body
  30. Rain today
  31. 2
  32. <meta>
  33. in the same tab
  34. 1
  35. shows pages from the web
  36. in a new tab
  37. Yes
  38. 3
  39. on the browser tab
  40. Take the quiz

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