← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 578 · 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 items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ol>
  2. 2.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) on the browser tab (d) nowhere
  3. 3.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
  4. 4.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <!-- <p>My best friend</p> -->
    <p>The red kite</p>
  5. 5.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
  6. 6.True or false: in <img>, alt shows if the image fails. (a) False (b) True
  7. 7.Which of these is true of a web browser? (a) has an address bar (b) stores a website’s files (c) is where we type code (d) shows line numbers
  8. 8.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
  9. 9.True or false: <ul> has a closing tag. (a) True (b) False
  10. 10.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Roses are red</p>
  11. 11.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
  12. 12.True or false: a code editor answers page requests. (a) False (b) True
  13. 13.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) Art corner (b) games.html (c) about.html (d) contact.html
  14. 14.True or false: <ul> goes inside ul or ol. (a) False (b) True
  15. 15.Which of these is true of a web server? (a) shows pages from the web (b) has an address bar (c) colours code to help us (d) stores a website’s files
  16. 16.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h6> or <h3>? (a) <h4> (b) <h1> (c) <h3> (d) <h6>
  17. 17.🔗 Where does this link open?
    <a href="contact.html" target="_blank">Play games</a>
    (a) in a new tab (b) in the same tab
  18. 18.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
  19. 19.📄 Can HTML on its own make headings? (a) No (b) Yes
  20. 20.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <p>My pets</p>
    (a) I love mangoes. (b) My pets (c) My best friend
  21. 21.Which of these is an opening tag? (a) </title> (b) </h1> (c) <h1> (d) </p>
  22. 22.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
  23. 23.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  24. 24.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a comment (d) a closing tag
  25. 25.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h2> (b) <h4> (c) <h6> (d) <h3>
  26. 26.🔗 Which words do you click on?
    <a href="about.html">Take the quiz</a>
    (a) about.html (b) href (c) Take the quiz (d) Play games
  27. 27.💬 How does an HTML comment start? (a) <!-- (b) # (c) /* (d) //
  28. 28.🔤 In “HTML”, what does the L stand for? (a) Line (b) Link (c) Language (d) Laptop
  29. 29.Which of these is a closing tag? (a) <b> (b) <p> (c) <body> (d) </b>
  30. 30.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h4> or <h6>? (a) <h1> (b) <h4> (c) <h5> (d) <h6>
  31. 31.Which of these is a closing tag? (a) <p> (b) <body> (c) <b> (d) </li>
  32. 32.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) </h2> (c) <h2> (d) <h2/>
  33. 33.🏷️ Every HTML tag starts with which sign? (a) { (b) [ (c) ( (d) <
  34. 34.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Guava</li>
    </ol>
  35. 35.True or false: <meta charset="utf-8"> goes in the head. (a) False (b) True
  36. 36.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <h4>Rain today</h4>
    <h4>Our school trip</h4>
    <h3>My pets</h3>
    <p>The red kite</p>
  37. 37.True or false: <input> has a closing tag. (a) True (b) False
  38. 38.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
  39. 39.📋 What number does the browser show next to “Papaya”?
    <ol start="8">
      <li>Mango</li>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Jamun</li>
    </ol>
  40. 40.💬 Why do coders write comments? (a) to add colour (b) to leave notes (c) to show pictures (d) to make links

Answer key

  1. 6
  2. on the browser tab
  3. HyperText
  4. 2
  5. a web browser
  6. True
  7. has an address bar
  8. 2
  9. True
  10. 2
  11. 1
  12. False
  13. games.html
  14. False
  15. stores a website’s files
  16. <h6>
  17. in a new tab
  18. <a>
  19. Yes
  20. My best friend
  21. <h1>
  22. <ul>
  23. in the head
  24. an attribute
  25. <h6>
  26. Take the quiz
  27. <!--
  28. Language
  29. </b>
  30. <h6>
  31. </li>
  32. </h2>
  33. <
  34. 2
  35. True
  36. 4
  37. False
  38. <ul>
  39. 11
  40. to leave notes

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