← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 987 · 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 of these is true of a code editor? (a) opens web pages for us (b) sends pages over the net (c) turns HTML into a page (d) is where we type code
  2. 2.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  3. 3.📝 What does <br> do? (a) makes a list (b) starts a new line (c) adds a picture (d) makes text bold
  4. 4.Which of these is true of a web server? (a) has an address bar (b) saves our .html files (c) stores a website’s files (d) is where we type code
  5. 5.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  6. 6.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h2> or <h3>? (a) <h2> (b) <h1> (c) <h5> (d) <h3>
  7. 7.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>Fun facts</p>
    <p>Fun facts</p>
    <p>Fun facts</p>
    <h2>My pets</h2>
    <h2>My pets</h2>
  8. 8.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
  9. 9.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Jamun</li>
    </ul>
  10. 10.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h1> (d) <h4>
  11. 11.🔗 Which address opens when you click this link?
    <a href="games.html">Contact us</a>
    (a) contact.html (b) games.html (c) Contact us (d) about.html
  12. 12.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>Rain today</p>
    <p>Fun facts</p>
    <p>I love mangoes.</p>
  13. 13.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
  14. 14.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Birds sing</p>
  15. 15.Which of these is an opening tag? (a) </li> (b) </p> (c) <p> (d) </h1>
  16. 16.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  17. 17.🌐 Which one shows line numbers? (a) a code editor (b) a web browser (c) a web server
  18. 18.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h5> (d) <h6>
  19. 19.True or false: in <img>, width tells which image to load. (a) False (b) True
  20. 20.🔍 Which line is missing its closing tag?
    line 1: <h1>I love mangoes.
    line 2: <i>Fun facts</i>
    line 3: <em>Rain today</em>
    (a) line 1 (b) line 2 (c) line 3
  21. 21.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
  22. 22.🔍 One closing tag is missing. Which one?
    <h1>Fun facts</h1>
    <u>I love mangoes.</u>
    <h3>My best friend
    (a) </h1> (b) </h3> (c) </u> (d) </h2>
  23. 23.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  24. 24.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h4> or <h6>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
  25. 25.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Banana</li>
    </ul>
    (a) bullets (b) numbers
  26. 26.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
  27. 27.🔗 Where does this link open?
    <a href="maths.html">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  28. 28.🔗 Where does this link open?
    <a href="https://example.com">School news</a>
    (a) in the same tab (b) in a new tab
  29. 29.🔍 Which line is missing its closing tag?
    line 1: <strong>Good morning!</strong>
    line 2: <h1>I love mangoes.
    line 3: <h3>Fun facts</h3>
    (a) line 1 (b) line 3 (c) line 2
  30. 30.🔗 Where does this link open?
    <a href="about.html">Take the quiz</a>
    (a) in a new tab (b) in the same tab
  31. 31.🔍 Which line is missing its closing tag?
    line 1: <i>The red kite
    line 2: <h2>Rain today</h2>
    line 3: <b>I love mangoes.</b>
    (a) line 3 (b) line 1 (c) line 2
  32. 32.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h6> or <h5>? (a) <h6> (b) <h3> (c) <h5> (d) <h4>
  33. 33.📋 Does this list show bullets or numbers?
    <ul>
      <li>Banana</li>
      <li>Orange</li>
      <li>Mango</li>
    </ul>
    (a) bullets (b) numbers
  34. 34.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Rain today</p> -->
    <p>Hello, world!</p>
    <!-- <p>My pets</p> -->
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="350">
  36. 36.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
  37. 37.🔗 Which words do you click on?
    <a href="contact.html">Take the quiz</a>
    (a) contact.html (b) Take the quiz (c) Play games (d) href
  38. 38.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
  39. 39.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Hot Tags (c) HyperText (d) Home Text
  40. 40.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow<br>Roses are red<br>Birds sing<br>Stars shine</p>

Answer key

  1. is where we type code
  2. has a closing tag
  3. starts a new line
  4. stores a website’s files
  5. Yes
  6. <h5>
  7. 4
  8. <h1>
  9. 2
  10. <h1>
  11. games.html
  12. 3
  13. <a>
  14. 2
  15. <p>
  16. a closing tag
  17. a code editor
  18. <h2>
  19. False
  20. line 1
  21. <ul>
  22. </h3>
  23. Yes
  24. <h1>
  25. bullets
  26. <ul>
  27. in the same tab
  28. in the same tab
  29. line 2
  30. in the same tab
  31. line 1
  32. <h6>
  33. bullets
  34. 1
  35. 350
  36. False
  37. Take the quiz
  38. to describe the image
  39. HyperText
  40. 5

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