← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 984 · 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>My pets</p>
    <!-- <p>Fun facts</p> -->
    <!-- <p>Hello, world!</p> -->
  2. 2.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <ul> (d) <br>
  3. 3.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <link about.html> (d) <a src="about.html">
  4. 4.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>I love mangoes.</p>
    <p>Rain today</p>
    <h4>Rain today</h4>
  5. 5.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h1> or <h6>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
  6. 6.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <p>My pets</p>
    <!-- <p>My best friend</p> -->
    (a) My pets (b) My best friend (c) I love mangoes.
  7. 7.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  8. 8.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h1> (b) <h3> (c) <h2> (d) <h5>
  9. 9.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>I love mangoes.</h2>
    <p>My best friend</p>
    <p>Fun facts</p>
    <h2>Fun facts</h2>
  10. 10.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h3>? (a) <h3> (b) <h1> (c) <h6> (d) <h4>
  11. 11.🔗 Which address opens when you click this link?
    <a href="contact.html">Maths fun</a>
    (a) maths.html (b) contact.html (c) Maths fun (d) https://example.com
  12. 12.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>I love mangoes.</p>
    <p>Good morning!</p>
    <!-- <p>My pets</p> -->
    (a) Good morning! (b) I love mangoes. (c) My pets (d) Rain today
  13. 13.🔍 One closing tag is missing. Which one?
    <h2>I love mangoes.</h2>
    <h3>Cricket is fun.
    <p>Our school trip</p>
    (a) </p> (b) </h1> (c) </h3> (d) </h2>
  14. 14.🌐 Which one stores a website’s files? (a) a web browser (b) a web server (c) a code editor
  15. 15.🔗 Which attribute holds the address of a link? (a) href (b) src (c) id (d) alt
  16. 16.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
  17. 17.🧱 HTML gives a web page its ___. (a) sound (b) colours (c) speed (d) structure
  18. 18.🔠 Which heading shows the SMALLEST text: <h3>, <h2>, <h4> or <h6>? (a) <h4> (b) <h2> (c) <h6> (d) <h3>
  19. 19.True or false: <li> is an unordered list. (a) False (b) True
  20. 20.🔍 Which line is missing its closing tag?
    line 1: <p>My pets
    line 2: <strong>Good morning!</strong>
    line 3: <u>Fun facts</u>
    (a) line 2 (b) line 3 (c) line 1
  21. 21.Which of these is true of a code editor? (a) has an address bar (b) shows pages from the web (c) is where we type code (d) sends pages over the net
  22. 22.🔗 Which address opens when you click this link?
    <a href="news.html">Contact us</a>
    (a) Contact us (b) quiz.html (c) games.html (d) news.html
  23. 23.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="350">
  24. 24.True or false: <li> has a closing tag. (a) False (b) True
  25. 25.🔗 Where does this link open?
    <a href="art.html" target="_blank">Maths fun</a>
    (a) in the same tab (b) in a new tab
  26. 26.True or false: <link rel="stylesheet"> goes in the body. (a) False (b) True
  27. 27.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
  28. 28.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <h2>I love mangoes.</h2>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  29. 29.Which of these is an opening tag? (a) </body> (b) <title> (c) </h1> (d) </p>
  30. 30.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
  31. 31.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
  32. 32.Which of these is true of a web browser? (a) colours code to help us (b) shows line numbers (c) shows pages from the web (d) is where we type code
  33. 33.Which of these has a closing tag? (a) <img> (b) <title> (c) <meta> (d) <hr>
  34. 34.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h5> or <h3>? (a) <h5> (b) <h6> (c) <h4> (d) <h3>
  35. 35.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) index.html (b) Space Facts (c) Easy snacks (d) We won by 5 runs.
  36. 36.🔗 Where does this link open?
    <a href="about.html">Contact us</a>
    (a) in the same tab (b) in a new tab
  37. 37.🔗 Where does this link open?
    <a href="about.html" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab
  38. 38.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Banana</li>
    </ol>
    (a) numbers (b) bullets
  39. 39.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>Hello, world!</h2>
    <p>Our school trip</p>
  40. 40.🔗 Which address opens when you click this link?
    <a href="contact.html">School news</a>
    (a) School news (b) contact.html (c) maths.html (d) https://example.com

Answer key

  1. 1
  2. <ul>
  3. <a href="about.html">
  4. 2
  5. <h1>
  6. My best friend
  7. Yes
  8. <h1>
  9. 3
  10. <h1>
  11. contact.html
  12. My pets
  13. </h3>
  14. a web server
  15. href
  16. <ol>
  17. structure
  18. <h6>
  19. False
  20. line 1
  21. is where we type code
  22. news.html
  23. 350
  24. True
  25. in a new tab
  26. False
  27. 1
  28. 3
  29. <title>
  30. False
  31. a web browser
  32. shows pages from the web
  33. <title>
  34. <h6>
  35. Space Facts
  36. in the same tab
  37. in a new tab
  38. numbers
  39. 2
  40. contact.html

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