← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 354 · 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.🔠 Are headings shown in bold by default? (a) No (b) Yes
  2. 2.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <!-- <p>Fun facts</p> -->
    <p>My pets</p>
    (a) The red kite (b) I love mangoes. (c) Fun facts (d) My pets
  3. 3.Which of these is a closing tag? (a) <title> (b) <li> (c) </h1> (d) <h1>
  4. 4.True or false: HTML on its own can make bullet lists. (a) False (b) True
  5. 5.🔍 One closing tag is missing. Which one?
    <u>I love mangoes.</u>
    <h1>Fun facts</h1>
    <strong>Good morning!
    (a) </u> (b) </h1> (c) </strong> (d) </i>
  6. 6.True or false: <ul> has a closing tag. (a) False (b) True
  7. 7.🔍 Which line is missing its closing tag?
    line 1: <h3>Good morning!</h3>
    line 2: <small>The red kite
    line 3: <b>Hello, world!</b>
    (a) line 1 (b) line 3 (c) line 2
  8. 8.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <br> (c) <p> (d) <h6>
  9. 9.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="200">
    (a) cake.jpg (b) moon.png (c) Birthday cake (d) dog.jpg
  10. 10.True or false: a web browser opens web pages for us. (a) False (b) True
  11. 11.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  12. 12.True or false: a web server hosts websites online. (a) False (b) True
  13. 13.Which of these is true of a web server? (a) turns HTML into a page (b) is where we type code (c) opens web pages for us (d) sends pages over the net
  14. 14.💬 How does an HTML comment end? (a) // (b) */ (c) >> (d) -->
  15. 15.True or false: <ul> is an unordered list. (a) True (b) False
  16. 16.🔍 Which is the odd one out? (a) stores a website’s files (b) turns HTML into a page (c) sends pages over the net (d) hosts websites online
  17. 17.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  18. 18.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h5> (b) <h1> (c) <h6> (d) <h4>
  19. 19.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="300">
    (a) Birthday cake (b) cake.jpg (c) A happy dog (d) width
  20. 20.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="50">
    (a) width (b) bus.jpg (c) An old fort (d) Our school bus
  21. 21.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  22. 22.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) hosts websites online (d) colours code to help us
  23. 23.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
  24. 24.🖼️ Which attribute of <img> tells which image to load? (a) height (b) src (c) alt (d) width
  25. 25.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h5> or <h2>? (a) <h2> (b) <h5> (c) <h3> (d) <h1>
  26. 26.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  27. 27.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Mouse (d) Markup
  28. 28.🔍 One closing tag is missing. Which one?
    <u>My best friend</u>
    <em>Fun facts</em>
    <i>Our school trip
    (a) </u> (b) </p> (c) </em> (d) </i>
  29. 29.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <p> (d) <ul>
  30. 30.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h5> (b) <h3> (c) <h2> (d) <h4>
  31. 31.🔍 Which line is missing its closing tag?
    line 1: <h3>The red kite
    line 2: <u>Hello, world!</u>
    line 3: <h1>Our school trip</h1>
    (a) line 3 (b) line 1 (c) line 2
  32. 32.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 10 (d) 6
  33. 33.🔗 Where does this link open?
    <a href="art.html" target="_blank">Contact us</a>
    (a) in a new tab (b) in the same tab
  34. 34.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) href (b) games.html (c) Take the quiz (d) Play games
  35. 35.🔗 Which words do you click on?
    <a href="games.html">Play games</a>
    (a) games.html (b) About us (c) href (d) Play games
  36. 36.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as one space (b) as 5 spaces (c) as a new line (d) as a dot
  37. 37.Which of these goes in the head? (a) <table> (b) <h1> (c) <p> (d) <meta charset="utf-8">
  38. 38.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>My best friend</p>
    <p>Fun facts</p>
    (a) My best friend (b) Good morning! (c) Fun facts
  39. 39.🔠 Which tag is the least important heading? (a) <h1> (b) <p> (c) <h6> (d) <h3>
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Good morning!</p>
    <p>Fun facts</p>

Answer key

  1. Yes
  2. Fun facts
  3. </h1>
  4. True
  5. </strong>
  6. True
  7. line 2
  8. <h1>
  9. cake.jpg
  10. True
  11. a closing tag
  12. True
  13. sends pages over the net
  14. -->
  15. True
  16. turns HTML into a page
  17. an opening tag
  18. <h1>
  19. Birthday cake
  20. Our school bus
  21. an empty tag
  22. colours code to help us
  23. in the body
  24. src
  25. <h1>
  26. Yes
  27. Markup
  28. </i>
  29. <li>
  30. <h2>
  31. line 1
  32. 1
  33. in a new tab
  34. Take the quiz
  35. Play games
  36. as one space
  37. <meta charset="utf-8">
  38. Good morning!
  39. <h6>
  40. 2

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