← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 776 · 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 BIGGEST text: <h5>, <h1>, <h2> or <h6>? (a) <h6> (b) <h1> (c) <h5> (d) <h2>
  2. 2.🔗 What does HyperText mean? (a) text with links (b) very big text (c) text in colour (d) secret text
  3. 3.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h1> (d) <h3>
  4. 4.🔍 One closing tag is missing. Which one?
    <h1>My best friend
    <p>Cricket is fun.</p>
    <i>I love mangoes.</i>
    (a) </h1> (b) </small> (c) </p> (d) </i>
  5. 5.🔢 In a basic web page file, which comes first: “<body>” or “<head>”? (a) <head> (b) <body>
  6. 6.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  7. 7.🔍 One closing tag is missing. Which one?
    <b>I love mangoes.</b>
    <em>Cricket is fun.</em>
    <strong>My best friend
    (a) </em> (b) </h3> (c) </strong> (d) </b>
  8. 8.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) </h1> (c) <h1> (d) <\h1>
  9. 9.Which of these is true of a code editor? (a) hosts websites online (b) sends pages over the net (c) opens web pages for us (d) colours code to help us
  10. 10.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Litchi</li>
    </ul>
    (a) numbers (b) bullets
  11. 11.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="300">
    (a) width (b) A happy dog (c) dog.jpg (d) The full moon
  12. 12.🔍 Which is the odd one out? (a) saves our .html files (b) shows line numbers (c) is where we type code (d) answers page requests
  13. 13.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <!-- <p>Rain today</p> -->
    <!-- <p>Good morning!</p> -->
    <!-- <p>I love mangoes.</p> -->
  14. 14.📄 Can HTML on its own make headings? (a) No (b) Yes
  15. 15.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
  16. 16.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="250">
  17. 17.🏷️ Which is the closing tag for <i>? (a) </i> (b) <i/> (c) <\i> (d) <i>
  18. 18.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>My pets</p>
    <p>Hello, world!</p>
    <p>Rain today</p>
    (a) Rain today (b) Hello, world! (c) My best friend (d) My pets
  19. 19.🖼️ Which attribute of <img> names the picture file? (a) height (b) src (c) alt (d) width
  20. 20.Which of these is true of a code editor? (a) stores a website’s files (b) is where we type code (c) shows pages from the web (d) has an address bar
  21. 21.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
  22. 22.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My pets</p> -->
    <!-- <p>Rain today</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Cricket is fun.</p> -->
  23. 23.🌐 Which one sends pages over the net? (a) a web server (b) a code editor (c) a web browser
  24. 24.Which of these is true of a web browser? (a) stores a website’s files (b) answers page requests (c) shows pages from the web (d) colours code to help us
  25. 25.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>The red kite</p> -->
    <p>Hello, world!</p>
    (a) I love mangoes. (b) Hello, world! (c) The red kite
  26. 26.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
  27. 27.🔗 Which address opens when you click this link?
    <a href="maths.html">Take the quiz</a>
    (a) news.html (b) Take the quiz (c) maths.html (d) art.html
  28. 28.True or false: HTML on its own cannot add pictures to a page. (a) False (b) True
  29. 29.True or false: a code editor turns HTML into a page. (a) True (b) False
  30. 30.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Rain today</p> -->
    <p>My pets</p>
    (a) My pets (b) Rain today (c) Cricket is fun.
  31. 31.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h2> or <h5>? (a) <h2> (b) <h6> (c) <h5> (d) <h1>
  32. 32.🔗 Where does this link open?
    <a href="news.html">Art corner</a>
    (a) in a new tab (b) in the same tab
  33. 33.True or false: <p> has a closing tag. (a) True (b) False
  34. 34.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <p>My pets</p>
    <!-- <p>Hello, world!</p> -->
    <p>Rain today</p>
    <p>My best friend</p>
  35. 35.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    <p>My pets</p>
    (a) Good morning! (b) My pets (c) Rain today
  36. 36.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Line (d) Link
  37. 37.True or false: HTML on its own can add pictures to a page. (a) False (b) True
  38. 38.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="250">
    (a) bus.jpg (b) An old fort (c) Our school bus (d) width
  39. 39.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
  40. 40.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="350">
    (a) cake.jpg (b) width (c) Birthday cake (d) A happy dog

Answer key

  1. <h1>
  2. text with links
  3. <h6>
  4. </h1>
  5. <head>
  6. Yes
  7. </strong>
  8. </h1>
  9. colours code to help us
  10. bullets
  11. A happy dog
  12. answers page requests
  13. 1
  14. Yes
  15. on the browser tab
  16. 250
  17. </i>
  18. My best friend
  19. src
  20. is where we type code
  21. -->
  22. 1
  23. a web server
  24. shows pages from the web
  25. The red kite
  26. in the body
  27. maths.html
  28. False
  29. False
  30. Rain today
  31. <h6>
  32. in the same tab
  33. True
  34. 4
  35. Rain today
  36. Language
  37. True
  38. Our school bus
  39. 1
  40. Birthday cake

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