← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 54 · 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 paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Our school trip</p>
    <p>Good morning!</p>
    <!-- <p>My best friend</p> -->
  2. 2.🔗 Which address opens when you click this link?
    <a href="news.html">About us</a>
    (a) About us (b) games.html (c) quiz.html (d) news.html
  3. 3.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="150">
  4. 4.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  5. 5.💬 Does the browser show comments on the page? (a) No (b) Yes
  6. 6.📝 What does <p> make? (a) a picture (b) a paragraph (c) a link (d) a table
  7. 7.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h2> (b) <h3> (c) <h6> (d) <h1>
  8. 8.📋 How many items does this list show?
    <ul>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Mango</li>
      <li>Banana</li>
      <li>Papaya</li>
      <li>Jamun</li>
    </ul>
  9. 9.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
  10. 10.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
  11. 11.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) Take the quiz (b) games.html (c) Play games (d) href
  12. 12.🔍 One closing tag is missing. Which one?
    <strong>Cricket is fun.
    <em>Good morning!</em>
    <small>Fun facts</small>
    (a) </small> (b) </em> (c) </h1> (d) </strong>
  13. 13.Which of these has a closing tag? (a) <br> (b) <hr> (c) <b> (d) <meta>
  14. 14.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h1> or <h3>? (a) <h3> (b) <h5> (c) <h4> (d) <h1>
  15. 15.🔍 One closing tag is missing. Which one?
    <u>I love mangoes.
    <small>The red kite</small>
    <h2>My best friend</h2>
    (a) </small> (b) </u> (c) </h2> (d) </h1>
  16. 16.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <p>Fun facts</p>
    <h2>My pets</h2>
    <p>My best friend</p>
  17. 17.🔗 Which address opens when you click this link?
    <a href="about.html">Visit the site</a>
    (a) about.html (b) contact.html (c) Visit the site (d) https://example.com
  18. 18.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  19. 19.🔍 Which line is missing its closing tag?
    line 1: <small>Our school trip</small>
    line 2: <em>The red kite
    line 3: <strong>Hello, world!</strong>
    (a) line 2 (b) line 3 (c) line 1
  20. 20.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <p> (d) <li>
  21. 21.Which of these is an opening tag? (a) </li> (b) <body> (c) </p> (d) </b>
  22. 22.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server
  23. 23.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <!-- <p>My pets</p> -->
    <p>The red kite</p>
  24. 24.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="400">
  25. 25.🔤 In “HTML”, what does the M stand for? (a) Markup (b) Machine (c) Mouse (d) Modern
  26. 26.Which of these is a closing tag? (a) <p> (b) <li> (c) <body> (d) </li>
  27. 27.💬 How does an HTML comment start? (a) # (b) <!-- (c) /* (d) //
  28. 28.Which of these is an opening tag? (a) </b> (b) <title> (c) </p> (d) </li>
  29. 29.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
  30. 30.📋 Which list tag lists things in any order? (a) <ul> (b) <ol> (c) <li>
  31. 31.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h2> or <h1>? (a) <h3> (b) <h4> (c) <h2> (d) <h1>
  32. 32.True or false: <ul> goes in the body. (a) False (b) True
  33. 33.🔢 In a basic web page file, which comes first: “<head>” or “<!DOCTYPE html>”? (a) <head> (b) <!DOCTYPE html>
  34. 34.💾 A web page file usually ends with which extension? (a) .txt (b) .mp3 (c) .html (d) .png
  35. 35.🔍 Which line is missing its closing tag?
    line 1: <small>Fun facts
    line 2: <h3>Rain today</h3>
    line 3: <strong>Cricket is fun.</strong>
    (a) line 2 (b) line 3 (c) line 1
  36. 36.📋 Which list suits a shopping list in any order? (a) <br> (b) <ul> (c) <ol> (d) <hr>
  37. 37.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h4> or <h1>? (a) <h4> (b) <h6> (c) <h1> (d) <h5>
  38. 38.True or false: <b> is an empty tag. (a) True (b) False
  39. 39.🏷️ Every HTML tag starts with which sign? (a) ( (b) [ (c) < (d) {
  40. 40.🔗 What does target="_blank" do to a link? (a) makes it bold (b) makes it blank (c) opens it in a new tab (d) hides the link

Answer key

  1. 2
  2. news.html
  3. 150
  4. Yes
  5. No
  6. a paragraph
  7. <h6>
  8. 6
  9. 4
  10. 2
  11. Take the quiz
  12. </strong>
  13. <b>
  14. <h1>
  15. </u>
  16. 2
  17. about.html
  18. has a closing tag
  19. line 2
  20. <li>
  21. <body>
  22. a code editor
  23. 2
  24. 400
  25. Markup
  26. </li>
  27. <!--
  28. <title>
  29. in the body
  30. <ul>
  31. <h4>
  32. True
  33. <!DOCTYPE html>
  34. .html
  35. line 1
  36. <ul>
  37. <h1>
  38. False
  39. <
  40. opens it in a new tab

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