← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 456 · 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 BIGGEST text: <h5>, <h4>, <h1> or <h6>? (a) <h6> (b) <h5> (c) <h1> (d) <h4>
  2. 2.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
  3. 3.🔗 Where does this link open?
    <a href="games.html">Maths fun</a>
    (a) in a new tab (b) in the same tab
  4. 4.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a alt="about.html"> (c) <a href="about.html"> (d) <link about.html>
  5. 5.True or false: <li> lists things in any order. (a) True (b) False
  6. 6.True or false: <li> is one item of a list. (a) False (b) True
  7. 7.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    <p>My pets</p>
    (a) My pets (b) The red kite (c) I love mangoes. (d) Cricket is fun.
  8. 8.💬 Does the browser show comments on the page? (a) No (b) Yes
  9. 9.🔍 Which is the odd one out? (a) answers page requests (b) sends pages over the net (c) shows pages from the web (d) stores a website’s files
  10. 10.Which of these is true of a web server? (a) is where we type code (b) opens web pages for us (c) answers page requests (d) shows line numbers
  11. 11.🔗 Which attribute holds the address of a link? (a) src (b) id (c) href (d) alt
  12. 12.🔍 Which line is missing its closing tag?
    line 1: <h2>Hello, world!</h2>
    line 2: <small>Fun facts
    line 3: <em>Cricket is fun.</em>
    (a) line 2 (b) line 1 (c) line 3
  13. 13.True or false: a web browser shows pages from the web. (a) True (b) False
  14. 14.📋 How many items does this list show?
    <ul>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Banana</li>
      <li>Jamun</li>
      <li>Litchi</li>
    </ul>
  15. 15.🖼️ How many pixels wide is the picture drawn?
    <img src="dog.jpg" alt="A happy dog" width="250">
  16. 16.True or false: <br> is an empty tag. (a) False (b) True
  17. 17.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) Take the quiz (b) School news (c) href (d) art.html
  18. 18.📋 How many items does this list show?
    <ul>
      <li>Grapes</li>
      <li>Orange</li>
    </ul>
  19. 19.📋 Does this list show bullets or numbers?
    <ol>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ol>
    (a) numbers (b) bullets
  20. 20.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  21. 21.🔗 Which words do you click on?
    <a href="about.html">School news</a>
    (a) School news (b) Take the quiz (c) href (d) about.html
  22. 22.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Good morning!</p>
    <h4>Cricket is fun.</h4>
    <p>Hello, world!</p>
  23. 23.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h4>? (a) <h6> (b) <h4> (c) <h1> (d) <h2>
  24. 24.📄 Where does the text of <title> appear? (a) on the browser tab (b) at the bottom (c) nowhere (d) in a big heading
  25. 25.True or false: <title> goes in the head. (a) True (b) False
  26. 26.🔗 Which address opens when you click this link?
    <a href="contact.html">Contact us</a>
    (a) contact.html (b) Contact us (c) https://example.com (d) maths.html
  27. 27.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h3>? (a) <h6> (b) <h4> (c) <h3> (d) <h2>
  28. 28.🔗 Which words do you click on?
    <a href="news.html">Visit the site</a>
    (a) news.html (b) Maths fun (c) href (d) Visit the site
  29. 29.📝 What do we need to write HTML? (a) a microphone (b) a paintbrush (c) a plain text editor (d) a printer
  30. 30.🔍 Which is the odd one out? (a) sends pages over the net (b) hosts websites online (c) stores a website’s files (d) turns HTML into a page
  31. 31.🔢 In a basic web page file, which comes first: “<html>” or “<!DOCTYPE html>”? (a) <html> (b) <!DOCTYPE html>
  32. 32.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h3> (d) <h5>
  33. 33.📋 Does this list show bullets or numbers?
    <ul>
      <li>Mango</li>
      <li>Jamun</li>
    </ul>
    (a) bullets (b) numbers
  34. 34.True or false: in <img>, width sets how wide it is. (a) True (b) False
  35. 35.📋 Which list tag is one item of a list? (a) <li> (b) <ol> (c) <ul>
  36. 36.🔍 One closing tag is missing. Which one?
    <h1>Rain today
    <h2>The red kite</h2>
    <h3>Fun facts</h3>
    (a) </h3> (b) </p> (c) </h2> (d) </h1>
  37. 37.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
  38. 38.🏷️ Every HTML tag starts with which sign? (a) < (b) ( (c) { (d) [
  39. 39.🔠 Are headings shown in bold by default? (a) No (b) Yes
  40. 40.🔍 Which is the odd one out? (a) sends pages over the net (b) hosts websites online (c) stores a website’s files (d) has an address bar

Answer key

  1. <h1>
  2. <a>
  3. in the same tab
  4. <a href="about.html">
  5. False
  6. True
  7. I love mangoes.
  8. No
  9. shows pages from the web
  10. answers page requests
  11. href
  12. line 2
  13. True
  14. 6
  15. 250
  16. True
  17. School news
  18. 2
  19. numbers
  20. an opening tag
  21. School news
  22. 2
  23. <h1>
  24. on the browser tab
  25. True
  26. contact.html
  27. <h6>
  28. Visit the site
  29. a plain text editor
  30. turns HTML into a page
  31. <!DOCTYPE html>
  32. <h2>
  33. bullets
  34. True
  35. <li>
  36. </h1>
  37. the body
  38. <
  39. Yes
  40. has an address bar

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