← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 471 · 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.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow<br>Roses are red<br>Stars shine</p>
  2. 2.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Our school trip</p> -->
    <!-- <p>Rain today</p> -->
  3. 3.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 3 (d) 10
  4. 4.Which of these is true of a web browser? (a) is where we type code (b) answers page requests (c) colours code to help us (d) shows pages from the web
  5. 5.📝 How many paragraphs does this code make?
    <p>I love mangoes.</p>
    <h2>Hello, world!</h2>
    <p>Good morning!</p>
    <p>My pets</p>
    <p>Cricket is fun.</p>
  6. 6.🔗 Which address opens when you click this link?
    <a href="quiz.html">About us</a>
    (a) games.html (b) about.html (c) quiz.html (d) About us
  7. 7.🏷️ Which is the closing tag for <b>? (a) </b> (b) <\b> (c) <b> (d) <b/>
  8. 8.🔍 Which line is missing its closing tag?
    line 1: <em>I love mangoes.</em>
    line 2: <p>Cricket is fun.
    line 3: <h1>Our school trip</h1>
    (a) line 3 (b) line 2 (c) line 1
  9. 9.🔍 Which is the odd one out? (a) hosts websites online (b) stores a website’s files (c) sends pages over the net (d) colours code to help us
  10. 10.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h4> or <h1>? (a) <h2> (b) <h4> (c) <h5> (d) <h1>
  11. 11.🔤 In “HTML”, what does the L stand for? (a) Language (b) Line (c) Link (d) Laptop
  12. 12.True or false: HTML on its own can make headings. (a) False (b) True
  13. 13.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
  14. 14.Which of these is an opening tag? (a) </body> (b) </p> (c) </b> (d) <b>
  15. 15.🔍 One closing tag is missing. Which one?
    <b>Good morning!</b>
    <h3>I love mangoes.
    <em>Cricket is fun.</em>
    (a) </em> (b) </b> (c) </h2> (d) </h3>
  16. 16.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h3> or <h5>? (a) <h5> (b) <h3> (c) <h6> (d) <h2>
  17. 17.🖼️ Which attribute of <img> is read by screen readers? (a) src (b) alt (c) height (d) width
  18. 18.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <p>Fun facts</p>
    <!-- <p>The red kite</p> -->
    <p>My pets</p>
    (a) Hello, world! (b) The red kite (c) My pets (d) Fun facts
  19. 19.True or false: <meta> is an empty tag. (a) False (b) True
  20. 20.🔗 Where does this link open?
    <a href="games.html">About us</a>
    (a) in the same tab (b) in a new tab
  21. 21.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="250">
  22. 22.🏷️ Which is the closing tag for <p>? (a) <p> (b) </p> (c) <p/> (d) <\p>
  23. 23.Which of these is true of a code editor? (a) shows line numbers (b) stores a website’s files (c) opens web pages for us (d) shows pages from the web
  24. 24.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h3> or <h6>? (a) <h4> (b) <h3> (c) <h5> (d) <h6>
  25. 25.🔍 Which is the odd one out? (a) shows line numbers (b) shows pages from the web (c) is where we type code (d) colours code to help us
  26. 26.📄 Can HTML on its own pick a random number? (a) Yes (b) No
  27. 27.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>Fun facts</p>
    <h2>Hello, world!</h2>
  28. 28.🔗 Where does this link open?
    <a href="news.html">Maths fun</a>
    (a) in a new tab (b) in the same tab
  29. 29.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  30. 30.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
  31. 31.📄 Can HTML on its own make tables? (a) Yes (b) No
  32. 32.📄 Can HTML on its own make headings? (a) Yes (b) No
  33. 33.True or false: in <img>, src tells which image to load. (a) True (b) False
  34. 34.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ul> (c) <ol> (d) <br>
  35. 35.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
  36. 36.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) in a big heading (d) on the browser tab
  37. 37.📝 What do we need to write HTML? (a) a printer (b) a paintbrush (c) a microphone (d) a plain text editor
  38. 38.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h5>
  39. 39.True or false: HTML on its own can add pictures to a page. (a) False (b) True
  40. 40.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine<br>Rivers flow<br>Roses are red</p>

Answer key

  1. 4
  2. 1
  3. 6
  4. shows pages from the web
  5. 4
  6. quiz.html
  7. </b>
  8. line 2
  9. colours code to help us
  10. <h1>
  11. Language
  12. True
  13. <a>
  14. <b>
  15. </h3>
  16. <h6>
  17. alt
  18. The red kite
  19. True
  20. in the same tab
  21. 250
  22. </p>
  23. shows line numbers
  24. <h3>
  25. shows pages from the web
  26. No
  27. 2
  28. in the same tab
  29. has a closing tag
  30. <a href="about.html">
  31. Yes
  32. Yes
  33. True
  34. <ul>
  35. <h1>
  36. on the browser tab
  37. a plain text editor
  38. <h1>
  39. True
  40. 4

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