← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 611 · 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 SMALLEST text: <h4>, <h1>, <h6> or <h2>? (a) <h2> (b) <h1> (c) <h6> (d) <h4>
  2. 2.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    <!-- <p>Rain today</p> -->
  3. 3.📝 What does <hr> draw? (a) a link (b) a table (c) a line across the page (d) a picture
  4. 4.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h1> (c) <p> (d) <h6>
  5. 5.🔗 Where does this link open?
    <a href="games.html" target="_blank">School news</a>
    (a) in the same tab (b) in a new tab
  6. 6.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  7. 7.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
  8. 8.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h4>Hello, world!</h4>
    <h4>Cricket is fun.</h4>
  9. 9.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <!-- <p>Good morning!</p> -->
    <!-- <p>My best friend</p> -->
    <p>Our school trip</p>
  10. 10.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <p>Good morning!</p>
    <h3>Our school trip</h3>
  11. 11.True or false: a web server is where we type code. (a) True (b) False
  12. 12.📋 Which list tag is one item of a list? (a) <li> (b) <ul> (c) <ol>
  13. 13.True or false: a web server has an address bar. (a) True (b) False
  14. 14.True or false: a code editor turns HTML into a page. (a) False (b) True
  15. 15.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  16. 16.🔗 Which address opens when you click this link?
    <a href="games.html">School news</a>
    (a) School news (b) games.html (c) about.html (d) contact.html
  17. 17.Which of these is an opening tag? (a) <h1> (b) </b> (c) </li> (d) </title>
  18. 18.True or false: in <img>, alt names the picture file. (a) True (b) False
  19. 19.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  20. 20.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) body (c) Riya’s Recipes (d) My drawings
  21. 21.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
  22. 22.📋 What number does the browser show next to “Banana”?
    <ol start="8">
      <li>Papaya</li>
      <li>Guava</li>
      <li>Banana</li>
      <li>Litchi</li>
    </ol>
  23. 23.📄 Where does the text of <title> appear? (a) in a big heading (b) on the browser tab (c) nowhere (d) at the bottom
  24. 24.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  25. 25.🌍 Which program shows a web page to us? (a) a calculator (b) a web browser (c) a music player (d) a paint program
  26. 26.True or false: HTML on its own cannot show paragraphs. (a) False (b) True
  27. 27.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  28. 28.🌐 Which one hosts websites online? (a) a code editor (b) a web browser (c) a web server
  29. 29.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Jamun</li>
    </ol>
  30. 30.True or false: <li> has a closing tag. (a) False (b) True
  31. 31.📄 Can HTML on its own make headings? (a) Yes (b) No
  32. 32.🔍 Which line is missing its closing tag?
    line 1: <h2>I love mangoes.
    line 2: <small>Hello, world!</small>
    line 3: <h3>Our school trip</h3>
    (a) line 3 (b) line 2 (c) line 1
  33. 33.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <p>Rain today</p>
    <p>Cricket is fun.</p>
    <!-- <p>Good morning!</p> -->
  34. 34.🔗 Where does this link open?
    <a href="art.html">About us</a>
    (a) in the same tab (b) in a new tab
  35. 35.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h4> or <h3>? (a) <h4> (b) <h5> (c) <h3> (d) <h6>
  36. 36.🌐 Which one sends pages over the net? (a) a web browser (b) a web server (c) a code editor
  37. 37.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Good morning!</p> -->
  38. 38.🔍 One closing tag is missing. Which one?
    <h2>Our school trip</h2>
    <h3>I love mangoes.</h3>
    <b>Cricket is fun.
    (a) </small> (b) </h2> (c) </h3> (d) </b>
  39. 39.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    <p>My best friend</p>
    (a) My best friend (b) Good morning! (c) Rain today
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <!-- <p>Rain today</p> -->
    <!-- <p>Hello, world!</p> -->
    <p>Our school trip</p>

Answer key

  1. <h6>
  2. 2
  3. a line across the page
  4. <h1>
  5. in a new tab
  6. No
  7. Yes
  8. 3
  9. 3
  10. 2
  11. False
  12. <li>
  13. False
  14. False
  15. a closing tag
  16. games.html
  17. <h1>
  18. False
  19. an opening tag
  20. My drawings
  21. <ul>
  22. 10
  23. on the browser tab
  24. Yes
  25. a web browser
  26. False
  27. No
  28. a web server
  29. 3
  30. True
  31. Yes
  32. line 1
  33. 3
  34. in the same tab
  35. <h3>
  36. a web server
  37. 1
  38. </b>
  39. Rain today
  40. 1

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